Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print a DBGRID

Status
Not open for further replies.

RTKean

Programmer
Jan 2, 2002
6
BE
Hello all,

I try to print ad DBgrid , but i can't do that simply. Do i have to use a special interface for that?

Thanks
RTKEAN
 
Can you not replicate the grid in a QuickReport ?
Or are you doing it dynamically against given DBGrid (not fixed) ?
Steve
 
Well,

First of all thanks for your reply,
In fact i'm creating that DBgrid dynamically after a request.
If you have any idea...
Thanks

RTKEAN
 
If you're just wanting to print the visible contents of the grid on the form (in which case 10 of 20 fields, 12 of 100 rows may only be on show in the form) then you could output the graphics of the form to a TQRImage (or TQRPicture ?) on a QuickReport form.
Alternatively you could dynamically create a representation of the DBGrid using TQRShapes for vertical and horizontal lines, using TQRTexts or TQRDBTexts to output the data results on the page to preview. This method might get heavy if you have many columns but might be an ideal solution if you limit the number of columns to something like 5.
Hope that this helps.
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top