quickreports

Generating PDF with Quick Reports behind a Delphi Web Server

*爱你&永不变心* 提交于 2019-12-09 05:38:23
I have a Delphi web server providing some web services*. One of them is supposed to generate and return a PDF report. The PDF creation is done with a QReport that is then exported into a PDF file with the ExportToFilter procedure. The routine works fine when called from within an application, but when called behind a TIdTCPServer, it hangs and never finishes. Debugging it, I got tho the hanging point: (note: I'm home right now and I don't have the source code. I'll try to reproduce quickrpt.pas' source as accurrate as I can remember). procedure TCustomReport.ExportToFilter(TQRDocumentFilter

How to create a QuickReport from the contents of a TStringGrid

妖精的绣舞 提交于 2019-12-08 06:05:39
问题 I'm using Delphi 7 and QuickReports on Windows 7. Normally QuickReports require a DataSet generated by a query, but I want to make a report from the contents of a StringGrid as though the StringGrid is a representation of the results of a query. How? 回答1: Use the QuickReport.OnNeedData event handler. It passes a var parameter called MoreData (a boolean); setting it to True means it gets called again. Leave the QuickReport.DataSource property blank, and use plain TQRText controls rather than

Generating PDF with Quick Reports behind a Delphi Web Server

回眸只為那壹抹淺笑 提交于 2019-12-08 03:17:19
问题 I have a Delphi web server providing some web services*. One of them is supposed to generate and return a PDF report. The PDF creation is done with a QReport that is then exported into a PDF file with the ExportToFilter procedure. The routine works fine when called from within an application, but when called behind a TIdTCPServer, it hangs and never finishes. Debugging it, I got tho the hanging point: (note: I'm home right now and I don't have the source code. I'll try to reproduce quickrpt