Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy WITH formatting in Word2000
Message
De
02/08/2002 10:30:53
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Copy WITH formatting in Word2000
Divers
Thread ID:
00685427
Message ID:
00685427
Vues:
91
Hi Everyone,
I was recently given the task of allowing a client to make their own template coversheets & title pages in Word, and then appending these pages to my reports which are being written into word via automation. I have chosen to do this by opening their template, selecting all, copying and pasting into the new document (again, through code, not manually). The problem is that Word seems to use the font already selected in the destination document instead of the font that the copied text originally had.

Now, I have looked at several things in word that I thought may fix this. PasteSpecial as RTF does not help. CopyFormat() does indeed copy formatting to be pasted on another piece of text using PasteFormat(), but there are multiple formattings in their selection and those functions can only use 1. I also tried setting oWord.options.smartCutPaste which SOUNDED like my solution, but I still cannot get the original formatting to come with the cut and paste. Any suggestions from the Automation gurus?
Paul A. Busbey
Victoria Insurance
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform