Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with formatting a table in Word97
Message
 
To
17/10/2000 14:38:33
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00430336
Message ID:
00431981
Views:
13
Tamar,

I am trying to get Word97 to print using VFP and using the following code:

nCopies = 1
cPages = ""
nRange = wdPrintAllDocument
nItem = wdPrintDocumentContent
nPageType = wdPrintAllPages
lCollate = .T.
lBackground = .T.
lPrintToFile = .T.
lAppend = .F.

oWord.ActivePrinter = "Mercury"

cDocName = oWord.ActiveDocument.Name

cPRNFileName = cPDFInPath + LEFT(cDocName,AT(".",cDocName) - 1) + ".PRN"

oWord.Application.PrintOut(cDocName,;
wdPrintAllDocument,;
wdPrintDocumentContent,;
nCopies,;
cPages,;
nPageType,;
lCollate,;
lBackground,;
lPrintToFile,;
cPRNFileName,;
lAppend)

*!* Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
*!* wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages,
*!* Collate:=True, Background:=True, PrintToFile:=True,OuputFileName:="", _
*!* Append:=False

*******************************

It keeps giving me a TYPE MISMATCH ERROR. What am I doing wrong?

Dave :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform