Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.5 KB

StartDoc.md

File metadata and controls

53 lines (39 loc) · 1.5 KB

Home

Function name : StartDoc

Group: Printing and Print Spooler - Library: gdi32


The StartDoc function starts a print job.


Code examples:

How to print FoxPro form
How to print a bitmap file
Printing text with the Escape function
How to print picture stored in enhanced-format metafile (*.emf)
How to print FoxPro form -- II
GDI+: printing image file
GDI+: sending image of FoxPro form to printer
Printing Image File, programmatically set print page orientation to landscape

Declaration:

int StartDoc(
  HDC hdc,              // handle to DC
  CONST DOCINFO* lpdi   // contains file names
);  

FoxPro declaration:

DECLARE INTEGER StartDoc IN gdi32;
	INTEGER hdc,;
	STRING @ lpdi  

Parameters:

hdc [in] Handle to the device context for the print job.

lpdi [in] Pointer to a DOCINFO structure containing the name of the document file and the name of the output file.


Return value:

If the function succeeds, the return value is greater than zero. This value is the print job identifier for the document.