Solved

Custom Preview with QR 2.0

Posted on 1997-11-17
2
298 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

809 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