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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing from DBgrid??

Status
Not open for further replies.

Jonah86

Programmer
Dec 11, 2003
152
US
I've been asked to revise a program with the ability to print the results of a search. Now currently the results are displayed in a dbgrid where the user can click on a row and view the details of that item...but that's neither here nor there. I have a program that I have a list of values printable from a string grid using the stringgrid.cells[] attribute, but there doesn't seem to be a cells attribute in the dbgrid. So my question is, what is the best way (if possible) to print the fields from a dbgrid? I'll need to only print certain fields, so I need to be able to format the output to a degree. I'm using Delphi7.

I guess it wouldn't be the end of civilization if I had to change it to a string grid...but it would be a lot more work than I was hoping for.

Thanks!!
 
Try QuickReports, link it to the query of table and don't worry anymore about, preview of printer setup, it comes embedded in the report

Steven van Els
SAvanEls@cq-link.sr
 
That sounds great, but I can't seem to find QuickReports anywhere. Delphi help mentions it, but doesn't tell me where to go about opening it. Is it a sperate program, like Rave?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top