General information
Category:
Windows API functions
Title:
Printing problem...
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only