Solved

Viewing QuickReports on a form

Posted on 1998-02-02
5
1,744 Views
Last Modified: 2013-11-22
How can I view a quickreport on a form in a QRPreview component instead of the default full screen quick report preview?
0
Comment
Question by:hboys
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1358119
What if you change the form settings of that QRPreview form?
0
 
LVL 2

Author Comment

by:hboys
ID: 1358120
once the report has been added to a form how can i navigate through the pages (i.e. how can i add buttons to change page numbers, print etc.)
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 100 total points
ID: 1358121
Hi hboys,  I already answered such a question, here it is :

                   The Page is defined as the pagenumber. So:

                   First page : QRPreview1.PageNumber := 1;
                   Next page : QRPreview1.PageNumber := QRPreview1.PageNumber + 1;
                   Previous : QRPreview1.PageNumber := QRPreview1.PageNumber -1;
                   Last : QRPreview1.PageNumber := QRPreview1.PageCount;

                   Use Zoom, ZomeToFit, ZoomToWidth to use zoom capabilities.

                   Go to PrintSetup for printersettins : QRPrinter1.PrintSetup.

                   Have fun,
                   c.u. ZifNab;
0
 

Expert Comment

by:buliang
ID: 1358122
1.put a Tqrpreview component on form1

2.add the following code to your quickrep onpreview event.
procedure Tqrform.qr1Preview(Sender: TObject);
begin
  form1.QRPreview1.QRPrinter := TQRPrinter(Sender);
end;

3.zoom in  
QRPreview1.Zoom := QRPreview1.Zoom + 20;

4.zoom out  
QRPreview1.Zoom := QRPreview1.Zoom - 20;

0
 
LVL 2

Author Comment

by:hboys
ID: 1358123
thanks for the help with this problem.

Harry Boys.
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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

860 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