Solved

Printing

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses
Course of the Month4 days, 21 hours left to enroll

635 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