BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delphi 3 , QR 2: prevent printing from preview

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
Klaus Uttendorf
Guest





PostPosted: Mon Nov 15, 2004 5:33 pm    Post subject: Delphi 3 , QR 2: prevent printing from preview Reply with 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
Mike Shkolnik
Guest





PostPosted: Mon Nov 15, 2004 6:53 pm    Post subject: Re: Delphi 3 , QR 2: prevent printing from preview Reply with 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

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





PostPosted: Wed Nov 17, 2004 5:22 pm    Post subject: Re: Delphi 3 , QR 2: prevent printing from preview Reply with 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:
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





PostPosted: Wed Nov 17, 2004 8:57 pm    Post subject: Re: Delphi 3 , QR 2: prevent printing from preview Reply with 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

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





PostPosted: Tue Nov 30, 2004 5:14 pm    Post subject: Re: Delphi 3 , QR 2: prevent printing from preview Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.