Solved

Printing

Posted on 1998-04-16
2
179 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
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…
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

705 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