Board index » delphi » PRINTING PROBLEM - PRINTING TQRCHART FROM QREPORT PANEL
Rakamsingh Limbu Begha
![]() Delphi Developer |
Mon, 12 Jan 2004 19:14:49 GMT
PRINTING PROBLEM - PRINTING TQRCHART FROM QREPORT PANEL
Dear Sir,
I used TQRChart component available on QRReport Panel, on the form as shown on the listing below. The PrintButton1 component triggers the line "StatsJatQRChart.Print(25, 75);" but I have encountered the error saying : "Access violation at address 004BD9F4 in module 'ChartProject.exe'. Read of During program developement process, testing the printing of the TQRChart is I would most grateful if you could tell me the solution to the above Faithfully, rakamsingh - - - - - unit ChartUnit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, type TChartForm = class(TForm) STATSJATTable: TTable; QRDBChart1: TQRDBChart; StatsJatQRChart: TQRChart; Series1: TPieSeries; PrintButton1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var ChartForm: TChartForm; implementation {$R *.DFM} procedure TChartForm.PrintButton1Click(Sender: TObject); begin StatsJatQRChart.Print(25, 75); end; end. |