Solved

Printing content of DBGrid?

Posted on 1997-10-19
2
334 Views
Last Modified: 2010-04-04
Is there a simple method of printing the content of a DBGrid? I tried to use a simple loop to get all the fields in all the selected rows in the Grid. I also tried to justify the fields in the textfile in order to get justified text on the printed paper. I found out that it wasn't easy to do it this way, is there another better way? I read that for some components  there is a Print-method (for example the rich-text memo)..

I use Delphi developer 2.0....

Thanx!!!
Erik N
0
Comment
Question by:Erik N
2 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 30 total points
ID: 1348152
Hi Erik,
Some programmers already made a component which prints a dbgrid:
Here are some examples:

http://carbohyd.siobc.ras.ru/torry/vcl/print/lineprnt.zip
http://carbohyd.siobc.ras.ru/torry/vcl/reports/prncells.zip

http://carbohyd.siobc.ras.ru/torry/vcl/database/prtgrd3b.zip (D1)

Have a look.
c.u. ZifNab;



0
 

Author Comment

by:Erik N
ID: 1348153
Thank you for this!!!

Erik N.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

12 Experts available now in Live!

Get 1:1 Help Now