Solved

Some questions about QReport

Posted on 2001-07-12
2
277 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

735 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