Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print a general field ?
Message
 
To
14/06/2007 12:47:33
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01232294
Message ID:
01233121
Views:
9
>> You can work with oForm.myOle1.object.Content.TEXT, and modify it as
>needed.
>
>It works for the text, but my Word OLE document is gone. When I print before adding text, my Word OLE document is printed. But after I add text, only the text is printed on the page. How can I merge both together?

In this case I would create the temporary DOC file from the general field content, then close the form, open the temporary DOC file with WOrd.Automation, modify the text, and print it.

Also, instead of working with content.text directly you probably need to do something like:

oWord.Selection.endKey(6) &&go to the document end
oWord.activedocument.content.insertafter("whatever you need")
Previous
Reply
Map
View

Click here to load this message in the networking platform