Solved

Some questions about QReport

Posted on 2001-07-12
2
276 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
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…

838 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