Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP5 and Word 2000
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00310617
Message ID:
00310693
Views:
16
>myDocument = "c:\test.doc"
>oword.documents.open(myDocument)
>
>Nick

Hi Nick,

Thanks, I'm getting closer.

Here's my code now,

store ThisForm.Sttxtcons.value to mcon
repo form strpconsignorstatement for stncwork.cons_no = ThisForm.Sttxtcons.value ;
to file &mcon ascii
oword = createobject("Word.application")
OWORD.VISIBLE = .T.
myDocument = "C:\SALES\GARDEN\JAN\2000\&MCON" + ".TXT"
oword.documents.open(mydocument)
OWORD.selection.TopMargin = 0.5
OWORD.selection.BottomMargin = 0.5
OWORD.Selection.WholeStory
OWORD.selection.Font.Name = "Courier New"
OWORD.selection.Font.Size = 10
ThisForm.Sttxtcons.value = " "
ThisForm.Sttxtcons.SETFOCUS()
thisform.refresh


It's okay until I get to the setting the margins part and, I've tried every variation I could think of. What am I doing wrong?

Thanks,

Jim Harvey
jahrvey@netrax.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform