Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing and Print Spooler
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01002173
Message ID:
01002211
Views:
18
The code may look like the following:
DECLARE INTEGER StartDoc IN gdi32 INTEGER hdc, STRING @lpdi

cDocInfo = Chr(20) + Repli(Chr(0), 19)

IF StartDoc(hPrnDC, @cDocInfo) > 0
	= StartPage(hPrnDC)
* ... printing with StretchDIBits or BitBlt ...
	= EndPage(hPrnDC)
	= EndDoc(hPrnDC)
ENDIF
Note that the pointer to DOCINFO is declared in StartDoc as a reference to string variable.

* * *
To get a printer's device context, use CreateDC or PrintDlg.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform