Solved

QUICK POINTS- QUICK REPORTS QUESTION

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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…

776 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