Custom Viewer
hello sir, I'm new here. I just try your Report Builder , I'm using my own form with TppViewer, but I dont know how to load report inside TppViewer Control. I'm using this code but nothing happen when the program run, or maybe I'm miss something. Thanks in advance and sorry for my poor english. I'm from Malaysia. TQ
procedure TForm2.FormCreate(Sender: TObject);
begin
//ppViewer is my TppViewer nama
//ppReport is my report name
ppViewer.Report := ppReport;
//ppReport.Print;
end;
end.
procedure TForm2.FormCreate(Sender: TObject);
begin
//ppViewer is my TppViewer nama
//ppReport is my report name
ppViewer.Report := ppReport;
//ppReport.Print;
end;
end.
Comments
Try calling Report.PrintToDevices after assigning the report property to the Viewer. This should display the report inside the view rather than loading a preview form.
I suggest spending some time reading the Developer's Guide and working through some of the provided tutorials. Doing this will give you a great starting point for using ReportBuilder and will make your experience with the product easy and more enjoyable. These can be found in the following location on your machine.
http://rbwiki.digital-metaphors.com/general/installation/tech-tip-demo-location/
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com