Solved

Printing content of DBGrid?

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

623 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