Solved

QUICK POINTS- QUICK REPORTS QUESTION

Posted on 1998-02-10
2
136 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

18 Experts available now in Live!

Get 1:1 Help Now