Solved

QUICK POINTS- QUICK REPORTS QUESTION

Posted on 1998-02-10
2
135 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
Comment Utility
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
Comment Utility

Thanks a lot scott, this answers my question.

Tony
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 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

15 Experts available now in Live!

Get 1:1 Help Now