Page 1 of 1

PrintPreview

PostPosted: August 11th, 2009, 3:35 pm
by nijazicitaku
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

Re: PrintPreview

PostPosted: August 12th, 2009, 7:41 am
by nijazicitaku
Hi,



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





Cheers,
Nijazi Citaku

Re: PrintPreview

PostPosted: August 15th, 2009, 3:10 am
by Kambiz
After this line:

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


add these two lines:

Code: Select all
   PrintPreview1.Visible := False;
   PrintPreview1.Parent := Self;