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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QReport printer setup how to? 1

Status
Not open for further replies.

TimSNL

Programmer
Sep 11, 2001
119
AU
Hello [spin]

I am using Quick Reports in D6. When the user presses the "PRINT" button on my form I want to display the "PrintDialog" window, and then actually print the report when the user presses the "Ok" button.

The easiest way to show the "PrintDialog" is to use the TQuickRep.PrinterSetup procedure.

How do I use the "Ok" and "Cancel" buttons that are on the TQuickRep.PrinterSetup window?
How to I get back the user response from a call to TQuickRep.PrinterSetup?

Thanks for your help.

Tim
SNL Computing
 
Use the "Tag" property of the Quickreport.
The Printersetup procedure sets the Quickreport.Tag to 1 if CancelBtn is pressed and to 0 if OKBtn is pressed.

procedure TForm1.PrintBtnClick...
Quickreport1.Printersetup;
if Quickreport1.Tag=0 then Quickreport1.Print;
end;

I think this is since QR Version 2.0j and later.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top