Solved

Some questions about QReport

Posted on 2001-07-12
2
275 Views
Last Modified: 2010-04-06
Hi

  I have some problems in QReport.

1.I 've designed a Qreport on a form and i want to call "QReprt.Preview " method
 from another form ,When i do that, Preview is shown but it doesn't give me ant lists.

2-How can i use a function or variable in QReport(not QReport's built in functions or variables)?

Thank you
0
Comment
Question by:s_arb
2 Comments
 
LVL 3

Accepted Solution

by:
MarcG earned 50 total points
ID: 6280120
If you use QReport with SQLs you have to Open these SQLs before showing, best it is done in the QReport OnBeforePrint Event. (Was that your problem for 1.?)
for 2. : What do you mean with 'use functions in QReport'? If you mean doing some calculations when printing your data you can use the QReport events. For example you can add some fields to your query and set them to be calculated fields, in the event OnCalculateFields from the query you can do the things you want with the data of this dataset, this event is fired for all datasets you get. Or in the events of QReport bands you can do things with the data in the bands ... depends on what you want to do ... or just write your own class that inhertits from QReport and add your functions ...
0
 

Author Comment

by:s_arb
ID: 6285726
Yes,You are right,I could use calculated field
Thank you
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

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…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

773 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