-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy Coulter
Sent: Thursday, 29 April 1999 19:46
To: Multiple recipients of list delphi
Subject: [DUG]: QR and Previewing *.QRP files

Hi all.
 
I was wondering if anyone else has had this problem.
I have an app. where the client can view a saved *.QRP file.
Now this one report they do that they save is 4500 odd pages, BUT they only want to print say 10 of them, or from say 4000 to 4250, BUT the QRPreview.QRPrinter.Printsetup doesn't fire when I click on the printer setup button i defined, therefore they cant print range of pages.
I am using a viewer that I wrote, so am I missing something here ??
Do I need to do something to make it come up ??
 
The help file for EDS's TPrintSet component says there is a bug in the standard Delphi dialogs. Not sure if it applies or whether Borland have fixed the bug yet.
 
ResetPrinterDialogs Method
 
Applies to
TPrintSet component
 
Declaration
 
procedure ResetPrinterDialogs;
 

Description
Overcomes a Delphi bug by resetting the internal printer structures.  This symptons of this bug are that the PrintDialog and/or PrinterSetupDialog no longer function.  Calling the provided routine prior to PrintDialog1.Execute or PrinterSetupDialog1.Execute insures that they both run correctly.
 
 To duplicate this bug:
  1) Run the PrintDialog1.Execute
  2) Select the Setup button
  3) Select Ok
  4) Select Cancel
  5) Do this one more time
 
The PrintDialog will no longer work (at all).
 
 

============================================
Patrick Dunford, Christchurch, NZ
http://patrick.dunford.com/

Reply via email to