Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pasting to Word
Message
 
 
À
25/10/2006 05:31:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01164286
Message ID:
01164327
Vues:
12
This message has been marked as the solution to the initial question of the thread.
Jos,

I put together this little method in my WordHelper class:
* GoBottom()
with this.moWord.Selection
   .MoveEnd( wdStory )         && move to end
   .Collapse( wdCollapseEnd )  && terminate selection
endwith
The wd constants come from the page over on my website.

>I am trying to paste various content, some images and some text, into a Word document using automation. I can create the Word object, add a new document to it, copy the first content from my app, and issue the paste instruction to paste the clipboard into the Word document. However, the cursor in the word doc remains to the left of the image and when I paste the second image from my app it overwrites the first image. How can I move the cursor onto the next line (or a couple of lines down) so that I can paste the next image/text without overwriting the previous content?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform