PrintPreview - NewPage

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

PrintPreview - NewPage

Postby konez2k » May 3rd, 2007, 10:47 pm

Hi,

I'm trying to use your component to display pages scanned from a twain source.

I can add the first page but i have problems with NewPage.

My code is:

Code: Select all
   
frmScan.PrintPreview.NewPage;
frmScan.PrintPreview.BeginDoc;
   frmScan.PrintPreview.Canvas.StretchDraw(frmScan.PrintPreview.PageBounds, Image);
frmScan.PrintPreview.EndDoc;


Hope you can give me some hint ;-)

regards,

konez2k
konez2k
Member
Member
 
Posts: 1
Joined: May 3rd, 2007, 10:44 pm

Postby Kambiz » May 4th, 2007, 3:42 am

Code: Select all
frmScan.PrintPreview.BeginDoc;

// Now you can draw on the first page
frmScan.PrintPreview.Canvas.StretchDraw(frmScan.PrintPreview.PageBounds, Image1);

frmScan.PrintPreview.NewPage;
// And, now the second page is initiated and is ready to draw
frmScan.PrintPreview.Canvas.StretchDraw(frmScan.PrintPreview.PageBounds, Image2);

frmScan.PrintPreview.EndDoc;
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest