Solved

Custom Preview with QR 2.0

Posted on 1997-11-17
2
301 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

752 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