Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing problem...
Message
From
18/05/2002 07:15:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Printing problem...
Miscellaneous
Thread ID:
00658537
Message ID:
00658537
Views:
74
here is my source:
---------------------------------------------
Declare Integer OpenPrinter in WinSpool.Drv as WS_OpenPrinter ;
String pPrinterName, ;
Integer @phPrinter, ;
String pDefault

Declare Integer StartDocPrinter in WinSpool.Drv as WS_StartDocPrinter ;
Integer phPrinter, ;
Integer iLevel, ;
String @pDocInfo

Declare Integer EndDocPrinter in WinSpool.Drv as WS_EndDocPrinter ;
Integer phPrinter

Declare Integer StartPagePrinter in WinSpool.Drv as WS_StartPagePrinter ;
Integer phPrinter

Declare Integer EndPagePrinter in WinSpool.Drv as WS_EndPagePrinter ;
Integer phPrinter

Declare Integer ClosePrinter in WinSpool.Drv as WS_ClosePrinter ;
Integer phPrinter

Declare Integer WritePrinter in WinSpool.Drv as WS_WritePrinter ;
Integer phPrinter, ;
String @pBuf, ;
Integer cbBuf, ;
Integer @pcWritten

.....

WS_OpenPrinter(myPrinter, @pPrinter, .NULL.)

WS_StartDocPrinter(pPrinter, 1, .NULL.)
WS_StartPagePrinter(pPrinter)
WS_WritePrinter(pPrinter, @mytext, len(mytext), @Written) &&*
WS_EndPagePrinter(@pPrinter)
WS_EndDocPrinter(pPrinter)

---------------------------------------------
*
on WS_WritePrinter method i have an error: code 2 - The system cannot find the file specified.

do you know what is wrong here ??
Next
Reply
Map
View

Click here to load this message in the networking platform