Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

[RB18] Can i to have a preview of Template ?

edited June 2017 in General
Hi

i have 10 differents template report, i have a form with vcl listbox
with "Report 1" , "Report 2"... for to select my prefered template report.

When i select a templante i would to see a readonly preview (ppViewer?)

i need preview panel in my form, not external standard preview form, no
modal.


i can 't send to real print, i don't have tables opened, i want see a
preview of template

is it possibile ?

---
Questa email è stata esaminata alla ricerca di virus da AVG.
http://www.avg.com

Comments

  • edited June 2017
    Are you saying that you want to give your users a "sample view" of what
    each report might look like? If so, then you would want to be loading
    report "archives" that you would have "pre-made" by running the reports
    yourself with real data and saving them to archive files/blobs. Look up
    report archives in the help.


  • edited June 2017
    Hi Mauro,

    1. UI

    You can create a form with a listbox or compbo box for the report templates
    and a TppViewer the report sample.

    2.Report Sample

    a. I like Paul Toms idea for using .raf files to display the report sample.

    b. If instead you want to generate a blank report, set each
    report/childreport AutoStop True and NoDataBehaviors [ndBlankReport]

    example:

    uses
    ppTypes;

    myReport.AutoStop := True;
    myReport.NoDataBehaviors := [ndBlankReport];

    mySubreport.Report.AutoStop := True;
    mySubreport.Report.NoDataBehaviors := [ndBlankReport];




    Best regards,

    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.