Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Printing content of DBGrid?

Posted on 1997-10-19
2
Medium Priority
?
371 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 120 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

704 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