Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Write Word file from VFP
Message
From
15/10/1996 11:59:28
 
 
To
15/10/1996 06:35:12
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00009512
Message ID:
00010077
Views:
64
>Dear Remi:
>
>Sorry to bother you again, I tried to use the code you gave me.
>When I run the code, I can see the Word application screen and the first
>line I send, then I got an error message "Function argument value,type, or
>count is invalid". Please tell me what wrong with my code?
>
>BTW, where can I get the menu or the help topic about "WORD.BASIC" object.
>
>************** this is my code.
>PUBLIC lcWordObj
>lcWordObj = CREATEOBJECT('Word.Basic')
>lcWordObj.Filenew()
>lcWordObj.appshow
>lCWordObj.insert('Good luck using this with the general field in a scan')
>
>SELECT table1
>GO TOP
>lCWordObj.insert(table1.question)
>SKIP
>**************
>Thank you very much !!!
>

* This minor adjustment ALLTRIM() works for memo's so it should work for general fields too if not let me know

>SELECT table1
>GO TOP
>lCWordObj.insert(ALLTRIM(table1.question))
>SKIP

* sorry for confusing you with the naming convention but lc should be gc
lc = local character
gc= global character

sicnce i declar the var public it should be gc.

see tom's remark towards this and he is right.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform