Solved

Self-Managing Reports

Posted on 1998-11-19
4
148 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Title # Comments Views Activity
Newbie Thread Programming 1 161
Dev express lookupcombo 3 34
Delphi: sending SMS on android platform 1 32
DBCtrlGrid, Delphi, Scroll 7 24
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…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

792 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