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

Create empty template

Hi

How can I create an empty template that I can then SaveToDatabase ?

Like calling Report.template.New but without opening the designer as I want to do that afterwards.
Thanks
Andy

Comments

  • Hi Andy,

    You do not need a designer to create a new template. You can simply call Report.Template.New; in Delphi code :).

    Let me know if I'm misunderstanding the question.

    Best Regards,

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

    I thought that too but when running ppReport1.Template.New ; it opens the designer. I just want it to create a template.
  • Hi Andy,

    Calling Report.Template.New will not load the designer. You can try it with a minimal application. Check your event code to be sure you are not calling ShowModal after creating the new template.


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.