Solved

Printing

Posted on 1998-04-16
2
185 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

752 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