Pagescount failed
Man'z
Cilegon
Dear All,
I'm using the fast report version 4.6.8.
The report (frxReport) binding into preview (frxPreview), so the toolbar of report did not show.
The question :
1. How to make the report toolbar is showing in the preview (frxPreview).
2. When we want to count the pages, the fr always return 2.
this the snapshot code :
And also, that PagesCount or PageCount already moving before the PrepareReport and after ShowReport ...
The result still same : its count 2 even our data consist 100 records that spent 4 pages.
How to solve this two problems.
Thanks
Man'z
I'm using the fast report version 4.6.8.
The report (frxReport) binding into preview (frxPreview), so the toolbar of report did not show.
The question :
1. How to make the report toolbar is showing in the preview (frxPreview).
2. When we want to count the pages, the fr always return 2.
this the snapshot code :
frxReport1.PrepareReport(true);
totalPage := frxReport1.PagesCount; // already tested with frxPreview1.PageCount;
frxReport1.ShowReport;
cxTextEdit2.Text := inttostr(totalPage);
And also, that PagesCount or PageCount already moving before the PrepareReport and after ShowReport ...
The result still same : its count 2 even our data consist 100 records that spent 4 pages.
How to solve this two problems.
Thanks
Man'z
Comments
when using the custompreview if you want to have a toolbar you need to create it.
frxReport1.PreviewPages.CurPreviewPage and frxReport1.PreviewPages.CurPage ?
What should we use to moving to next custom preview pages
Thank again
Man'z