OnPrintComponent not working
Posted: Fri Feb 10, 2012 10:31 am
I have this code:
On RVReportHelper OnPrintComponent event is not fired. But if I use RVPrint (see commented code) OnPrintComponent fires OK. What am I missing?
Thanks
Code: Select all
RichViewXml1.RichView := RVReportHelper1.RichView;
RichViewXml1.LoadFromFile('someXMLWithControls.xml');
//RVPrint1.OnPrintComponent := RVPrintComponent;
RVReportHelper1.OnPrintComponent := RVPrintcomponent;
//RVPrint1.AssignSource(RVReportHelper1.RichView);
//RVPrint1.FormatPages(rvdoAll);
//RVPrint1.Print('Test',1,true);
RVReportHelper1.Init(PrinterCanvas,4000);
RVReportHelper1.FormatNextPage(8000);
RVReportHelper1.DrawPageAt(0,0,1,PrinterCanvas,False,RVReportHelper1.GetLastPageHeight);
Thanks