Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing a Word Document
Message
From
17/11/2000 15:52:42
 
 
To
17/11/2000 15:36:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00443225
Message ID:
00443245
Views:
16
To start you up:
>
>
>oWord = createobject("word.application")
>oWord.Visible = .T. && optional
>oDoc = oWord.Document.Add()
>oDoc.Range.Text = "This is a test"
>oDoc.Printout()
>
>
>There is much more to this of course. Printout() has tons of parameters that allow you to control printing.
>
>HTH

Thanks for your REALLY quick response. I've got a couple of questions.

oDoc = oWord.Document.Add() resulted in a "Member DOCUMENT does not evaluate to an object" error. Am I supposed to supply some kind of parameter to it??? I tried a sring with the name of the file to print but got the same message.


Assume that I want to print "Mydoc.doc" how would I do that.


Finally, so I don't have to keep bothering you and the other respondents, is there any documentation on the methods and properties of oWord.Application??? I've spent most of my life with 2.6 and my brief forays into VFP have merely been extensions of that rather than true upgrades.

Thanks again.............Rich
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform