Home General

Create lay-out as writing-paper

edited March 2010 in General
Hi,

Many companie that use a company-style for letters, don't actually use pre-printed
writing-paper.
Therefore I would like to do the following.

My invoice report is pretty complex and allowing users to change the RTM
file, might resolve in many problems. Therefore I'm looking for a multi-level
solution.
The base-level contains a lay-out as it would be on pre-printed writing-paper
(like: logo and company address and such)
The data-level contains the actual data for the report (like: invoice header
and details).

I want to allow the end-user to change the base-level without any limitation,
but the data-level can only be changed by the developer.

Is there any way to accomplish this?

Regards,
Stef

Comments

  • edited March 2010
    Hi Stef,

    There is currently no concept of layering or styles in ReportBuilder.

    One option would be to give your users the ability to alter the "Base Level"
    report and save it as a template. Then, staying within the restrictions of
    a subreport, you can load that template into a subreport on the PageStyle
    band of the "Data Level" report. This would essentially merge the two
    levels together into a single report (granted there is no overlap).

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2010
    Hello Nico,

    Is there some example available on how to do this?

    Regards,
    Stef
  • edited March 2010
    Hi Stef,

    There should be no need for an example. You will simply have two report
    templates. One for the "Base Level" and one for the "Data Level". You will
    load the data level template into the main report's definition. Then inside
    the PageStyle band of the main report, add a subreport and load the base
    level template.

    At runtime you can use the TppReport.Template.LoadFromFile; and
    TppSubreport.Report.Template.LoadFromFile; routine.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2010
    Hello Nico,

    Thank you Nico I will give it a try.

    With kind regards,
    Stef
This discussion has been closed.