Solved

Self-Managing Reports

Posted on 1998-11-19
4
146 Views
Last Modified: 2012-05-04
I use QuickReport's object TQRPreview in order to give my reports a personal appearance. But I need to know how to do some things:
1) I know how to go to the next page (Method NewPage).
2) I know how to do zooms (Propertie Zoom).
3) How can I go to the first, previous and last page?
4) How can I save and load reports?

Thanks very much.
0
Comment
Question by:quique
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 20 total points
ID: 1347319
Hi quique,

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.

Zif.
0
 
LVL 1

Author Comment

by:quique
ID: 1347320
And what about saving and loading reports?
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1347321
Oops, sorry forget this one :

use qrpreview1.qrprinter.Load();
and qrpreview1.qrprinter.save();

Just saw that they updated there download page, there is now an example available :

http://www.qusoft.no/scripts/download.dll/getfile?Filename=CUSTPREV.ZIP

Regards, Zif.

0
 
LVL 1

Author Comment

by:quique
ID: 1347322
Thanks very much!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Thread safe  opinion 7 126
Magic Software info 18 125
Dev Express grid collapse 2 39
Error E2158 compiling with Delphi XE10 Seattle 2 88
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now