Solved

Custom Preview with QR 2.0

Posted on 1997-11-17
2
296 Views
Last Modified: 2010-04-04
How to creat a custom preview using the QR 2.0 in Delphi 2.0?
When I used in
Form.Oncreat;
    QrPrint.OnPReview:=OnShow;
The program show an error message.
PS. I have a beta version only.
0
Comment
Question by:halimarcelo
2 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
ID: 1350737
From demo of QR

{Main program}

procedure TMain.CustomerListing1Click(Sender: TObject);
var
  aForm : TReport1Form;
begin
  Application.CreateForm(TReport1Form, aForm);
  aForm.QuickRep1.Preview;
  aForm.Free;
end;


{Report Form}

procedure TReport1Form.QuickRep1Preview(Sender: TObject);
var
  PrevForm : TPreviewForm;
begin
  Application.CreateForm(TPreviewForm, PrevForm);
  PrevForm.QRPreview1.QRPrinter := TQRPrinter(Sender);
end;

{Preview form}

procedure TPreviewForm.FormClose(Sender: TObject;
  var Action: TCloseAction);
begin
  QRPreview1.QRPrinter := nil;
  Free;
end;

Have fun!
c.u. ZifNab;
0
 

Author Comment

by:halimarcelo
ID: 1350738
Thank you.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now