Solved

Printing

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

749 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