Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How I can appy the following code in powerbuilder 11.2 version? I want to print powerbuilder datawindow into pdf file without user involvement.

Any idea appreciate.
C#
CCutePDFWriter PDF_Printer;
CDC *pDC = PDF_Printer.GetDC(_T("C:\\My_PDF_Folder\\"));
 
pDC->StartDoc(_T("My_PDF_File"));
pDC->StartPage();
 
pDC->Ellipse(100, 200, 300, 400);
 
pDC->EndPage();
pDC->EndDoc();
 
PDF_Printer.ReleaseDC();
Posted
Updated 18-Jul-12 8:41am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900