Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing problem...
Message
 
 
To
18/05/2002 07:15:36
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00658537
Message ID:
00658645
Views:
35
Hi Alex,

Just curious, are you asked this question at Visual Club as well?

>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 ??
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform