Solved

Printing

Posted on 1998-04-16
2
180 Views
Last Modified: 2010-04-06
I have a simple form with a data base attached.  I have a group of labels and TDbedit boxes that I would like to print, but I can not find any documentation on how to print this form to the print. I can get the print dialog box to come up but when I press the ok button, the print dialog boxes disappears and nothing is printed. ???
0
Comment
Question by:bcarder
2 Comments
 
LVL 3

Accepted Solution

by:
d4jaj1 earned 50 total points
ID: 1361606
The best and easiest way to print anything in Delphi is to use teh Including version of Quickreports.  It is not 'necessary' to use quickreport - but why invent the wheel?

Don't know what version of Delphi your using, but teh general steps are as follows.
 1  Create a new form, click the quickreports tab and select the Qreport icon (should be teh first one).  The form should turn white.
 2  Add a few quickreport DBText fields to the new form
 3 Either add a datasource & table to the new form or connect teh dbtext fields mentioned above to the datasource in your existing form (add it to your uses clause)
 4  Set the qreport properties and set the tables to active.
 5  Call the new form from a button/menu item in your existing form and use the Qreport.print method.

This is really, really high level, but it should give you a general idea and enough to get started.  The is a QuickReport manual somewhere in your Delphi directory (different places for different versions)  Good Luck!  Any questions, please add a comment.
0
 

Author Comment

by:bcarder
ID: 1361607
Thanks alot, that's what I needed to hear.  I'm running Delphi 3. Thanks again!!
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

Suggested Solutions

Title # Comments Views Activity
Thread safe  opinion 7 126
Internet Explorer View Settings Question 15 105
Create a path if not exists 7 67
Delphi...Split view - idea? 1 39
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…
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…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

948 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

22 Experts available now in Live!

Get 1:1 Help Now