Solved

Some questions about QReport

Posted on 2001-07-12
2
273 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

22 Experts available now in Live!

Get 1:1 Help Now