PrintPreview and printing from the other component

Please discuss general Delphi programming topics here.

PrintPreview and printing from the other component

Postby Pawel » August 28th, 2007, 9:37 am

Hello!

I have some (n00b ?) question about PrintPreview component.

I have the the other component (called PrintGrid), which brilliantly print whole grid. The thing is, to use this component I have to use PrintGrid.Print command.

Of course, when I use this command, grid will be immediatelly printed on default printer.

My question is, is there any easy way to send all data from PrintGrid component to PrintPreview component to view the data on PrintPreview instead of immediatelly print it ?


PS: Sorry for my bad English - I hope You will understand my question :)

Best Regards
Pawel
Member
Member
 
Posts: 1
Joined: August 28th, 2007, 9:22 am

Postby Kambiz » August 28th, 2007, 8:55 pm

I guess you have to revise PrintGrid code to use PrintPreview component instead of the Printer object.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 9 guests

cron