PrintPreview

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

PrintPreview

Postby nijazicitaku » August 11th, 2009, 3:35 pm

Hi everybody,


I'm trying to use PrintPreview but without success. I'm receiving message "Control has no parent window'' on EndDoc coomand.
Here is the procedure where I use PrintPreview.



Thanks in advance,
Nijazi Citaku
Attachments
PrintPreview.doc
(45 KiB) Downloaded 65 times
nijazicitaku
Member
Member
 
Posts: 4
Joined: August 11th, 2009, 3:23 pm

Re: PrintPreview

Postby nijazicitaku » August 12th, 2009, 7:41 am

Hi,



I have set PrintPreview parent to Form, but still nothing happens.





Cheers,
Nijazi Citaku
nijazicitaku
Member
Member
 
Posts: 4
Joined: August 11th, 2009, 3:23 pm

Re: PrintPreview

Postby Kambiz » August 15th, 2009, 3:10 am

After this line:

Code: Select all
   PrintPreview1 := TPrintPreview.Create(Self);


add these two lines:

Code: Select all
   PrintPreview1.Visible := False;
   PrintPreview1.Parent := Self;
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 2 guests

cron