Solved

QUICK POINTS- QUICK REPORTS QUESTION

Posted on 1998-02-10
2
140 Views
Last Modified: 2010-04-04

I want to print out 6 edit boxes that are not DB-Edit boxes. How do I print in a report what is exactly in the edit boxes?
0
Comment
Question by:aj85
[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 1

Accepted Solution

by:
millerw earned 50 total points
ID: 1358910
Here is some example code that I have used in my reports:

//Make query point to correct dir
qryInitial.DatabaseName := DataBase;
//Open the query for the report
qryInitial.Open;
//Sents the QuickReport Labels' text to what I want
qrlStrategyCenter.Caption := NameNum;
qrlYear.Caption := Year;
DateTime := Now;
qrlDate.Caption := FormatDateTime ('d mmm yyyy', DateTime);
qrlTime.Caption := FormatDateTime ('h:nn:ss AM/PM', DateTime);
//Calls my custom preview form to run on this report
frmReportPreview.PreviewReport (rptInitial);
//Close up the query
qryInitial.Close;

As you can see, all you need is to put some TQRLabel components on your report and just set their text to what you want.  Do this BEFORE you print or preview, not during or your centering options, etc will not be in effect and the text will be off a little to one side or the other.

NOTE:  qry=TQuery, qrl=TQRLabel, frm=TForm, DateTime is a local TDateTime var

Hope that helps,
Scott
0
 

Author Comment

by:aj85
ID: 1358911

Thanks a lot scott, this answers my question.

Tony
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

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…

738 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