Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Custom Preview with QR 2.0

Posted on 1997-11-17
2
Medium Priority
?
306 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 100 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Loops Section Overview
Suggested Courses

971 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