Solved

Self-Managing Reports

Posted on 1998-11-19
4
145 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
Comment Utility
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
Comment Utility
And what about saving and loading reports?
0
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
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
Comment Utility
Thanks very much!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 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

15 Experts available now in Live!

Get 1:1 Help Now