Solved

Custom Preview with QR 2.0

Posted on 1997-11-17
2
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Reconfigure Delphi Install? 2 64
JAudiorecorder record freezing the app 29 82
How to convert memory stream to PDF file 6 172
FMX TEdit KeyUp handler detecting  "enter" key 4 36
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

740 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