Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi 7 - previe and print problem

Status
Not open for further replies.

msgopala

Programmer
Oct 30, 2008
43
US
when previewing and then printing from preview only the first half of the page prints. When a straight print, prints the entire report
 
need more info. what report components are you using?
any code?

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Delphi7 , quick report 5.

Code snippet :

if OutputDevice = 'Screen' then
Report.Preview
else
Report.Print;
 
any events on the report?
Do you have qreport source code, if so you can try to debug through the components code...

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Fixed this by commenting code out of QRPrev that was doing qrprinter.print if the said report was of type TQuickreport or if printing from metafile. Otherwise it was redirecting to the TParentform.print and this was printing only half of the first page of my report.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top