Solved

Printing content of DBGrid?

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

Technology Partners: 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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

710 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