 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Klaus Uttendorf Guest
|
Posted: Mon Nov 15, 2004 5:33 pm Post subject: Delphi 3 , QR 2: prevent printing from preview |
|
|
Hello,
the standard 'preview' of Quickreport 2.0 (using Delphi 3 prof) has a
printing button. Is there any possibility to prevent from printing. I
need this for a demo.
best regards
Klaus Uttendorf
|
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Mon Nov 15, 2004 6:53 pm Post subject: Re: Delphi 3 , QR 2: prevent printing from preview |
|
|
Just create own preview form and use this form instead standard one
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"Klaus Uttendorf" <klaus.uttendorf (AT) web (DOT) de> wrote
| Quote: | Hello,
the standard 'preview' of Quickreport 2.0 (using Delphi 3 prof) has a
printing button. Is there any possibility to prevent from printing. I
need this for a demo.
best regards
Klaus Uttendorf
|
|
|
| Back to top |
|
 |
Klaus Uttendorf Guest
|
Posted: Wed Nov 17, 2004 5:22 pm Post subject: Re: Delphi 3 , QR 2: prevent printing from preview |
|
|
Fine, but how to crate an own preview form? I used in Delphi2 QRprt1 but
this doesn't work under Delphi3 QRpt2
Best regards
Klaus J. Uttendorf
Mike Shkolnik schrieb:
| Quote: | Just create own preview form and use this form instead standard one
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"Klaus Uttendorf" <klaus.uttendorf (AT) web (DOT) de> wrote in message
news:4198E861.2050309 (AT) web (DOT) de...
Hello,
the standard 'preview' of Quickreport 2.0 (using Delphi 3 prof) has a
printing button. Is there any possibility to prevent from printing. I
need this for a demo.
best regards
Klaus Uttendorf
|
|
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Wed Nov 17, 2004 8:57 pm Post subject: Re: Delphi 3 , QR 2: prevent printing from preview |
|
|
1. create a form with TQRPreview control
2. for your TQuickRep in OnPreview event you must create this custom form:
procedure TfrmMyReport.QuickRep1Preview(Sender: TObject);
begin
with TfrmCustomPreview.Create(Application) do
begin
QRPreview.QRPrinter := TQRPrinter(Sender);
Show;
end
end;
Just check the help file for QR
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"Klaus Uttendorf" <klaus.uttendorf (AT) web (DOT) de> wrote
| Quote: | Fine, but how to crate an own preview form? I used in Delphi2 QRprt1 but
this doesn't work under Delphi3 QRpt2
Best regards
Klaus J. Uttendorf
Mike Shkolnik schrieb:
Just create own preview form and use this form instead standard one
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"Klaus Uttendorf" <klaus.uttendorf (AT) web (DOT) de> wrote in message
news:4198E861.2050309 (AT) web (DOT) de...
Hello,
the standard 'preview' of Quickreport 2.0 (using Delphi 3 prof) has a
printing button. Is there any possibility to prevent from printing. I
need this for a demo.
best regards
Klaus Uttendorf
|
|
|
| Back to top |
|
 |
Klaus Uttendorf Guest
|
Posted: Tue Nov 30, 2004 5:14 pm Post subject: Re: Delphi 3 , QR 2: prevent printing from preview |
|
|
Hello
I have tried the QRPreview example in Delphi help:
It works but the preview-form cannot be closed wether by the system
x-button nor by an explicite button.
What is going wrong?
Klaus J. Uttendorf
Mike Shkolnik schrieb:
| Quote: | 1. create a form with TQRPreview control
2. for your TQuickRep in OnPreview event you must create this custom form:
procedure TfrmMyReport.QuickRep1Preview(Sender: TObject);
begin
with TfrmCustomPreview.Create(Application) do
begin
QRPreview.QRPrinter := TQRPrinter(Sender);
Show;
end
end;
Just check the help file for QR
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"Klaus Uttendorf" <klaus.uttendorf (AT) web (DOT) de> wrote in message
news:419B88DE.6070400 (AT) web (DOT) de...
Fine, but how to crate an own preview form? I used in Delphi2 QRprt1 but
this doesn't work under Delphi3 QRpt2
Best regards
Klaus J. Uttendorf
Mike Shkolnik schrieb:
Just create own preview form and use this form instead standard one
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"Klaus Uttendorf" <klaus.uttendorf (AT) web (DOT) de> wrote in message
news:4198E861.2050309 (AT) web (DOT) de...
Hello,
the standard 'preview' of Quickreport 2.0 (using Delphi 3 prof) has a
printing button. Is there any possibility to prevent from printing. I
need this for a demo.
best regards
Klaus Uttendorf
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|