Solved

Some questions about QReport

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 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