Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Formatting strings for MS-Word Date: Tue, 24 Apr 2018 13:44:44 +0200 Lines: 41 Message-ID: References: <0a78b658-58b7-49d2-9906-65fe70ab3dee@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net h4tuvTh4vtwQeoy/mQ4ptAvy34TLDxCwxZlpvvfa4EPBLRxM0= Cancel-Lock: sha1:vaX4CfBxw7HuQGzRH+VywnbdduY= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:11556 Hi Jack, this should be possible copying RTF strings. Unfortunately I don't know how they need to be formatted to be recognized as them. Also browsers copy formatting to che clipboard sometimes, so it should be possible. Wolfgang glados.1964@gmail.com wrote: > Hi, > > One of our applicatins uses MS-Word to printout some simple data. For > this MS-Word is opened (via OLEAutoObject{'word.application'}) and a > template is loaded (oword:documents:add(template)). Then some strings > are send to the Word document (oword:selection:Find:Execute). This > works good for our needs. The resulting text is formatted (like > bold/italic) as defined in the template. > > Now our IT-departement moved this application to a VM on a server. On > this server there is no MS-Word (or any MS-office products) allowed. > As a (partly) solution we are now copying the strings > programmatically to the clipboard which enables us (via remote > desktop on a local computer) to paste it in a MS Word document again. > Only thing that remains is that the formatting is lost. > > The question is; Does anybody know if the strings can modified in > some way to do some simple formatting? Like bold and italic would be > fine. > > > TIA, > > Jack --