I'm working with Delphi 2009 and I really need to create a button that can print all my data in a DBGrid. I appreciate all the help I can get.
由于它是一个数据库网格,因此您可以使用现有的任何报告组件来创建报告,也可以通过使用打印机单元,遍历数据并使用打印机进行打印来不使用它们来创建报告。
Get TxcellentFormPrinter control below and then you can print the Entire Grid.
http://www.code4sale.com/joehecht/
Hope this helps.
I don't know what you want but if you want to set your data into a TDbGrid then set your data into a dataset and link your dataset with the TDbGrid. But if you want to print your data from a DbGrid see Print a TDBGrid
您可以使用SMReport自动生成套件中的TSMPrintData组件: http : //www.scalabium.com/smr
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.