Pagescount failed

Man'zMan'z Cilegon
edited 2:14AM in FastReport 4.0
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 :
  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

  • gordkgordk St.Catherines On. Canada.
    edited 2:14AM
    after prepare report try frxreport1.previewpages.count.
    when using the custompreview if you want to have a toolbar you need to create it.
  • Man'zMan'z Cilegon
    edited 2:14AM
    Thanks Mr. Gordk its work , but what different of :

    frxReport1.PreviewPages.CurPreviewPage and frxReport1.PreviewPages.CurPage ?

    What should we use to moving to next custom preview pages

    Thank again

    Man'z
    gordk wrote: »
    after prepare report try frxreport1.previewpages.count.
    when using the custompreview if you want to have a toolbar you need to create it.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.