Solved

Printing content of DBGrid?

Posted on 1997-10-19
2
342 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

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…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

831 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