Report Pages *.pg

Stimulsoft Reports.NET discussion
Post Reply
Liewai25
Posts: 5
Joined: Mon Jun 25, 2018 2:47 pm

Report Pages *.pg

Post by Liewai25 »

[img]
Untitled.png
Untitled.png (19.06 KiB) Viewed 1420 times
After click the template we can choose open and select a report pages .pg format thing such as databand and add it into current template.

Is there anyway to do this using code? If there already articles that teach this Pls point me to it. Thanks in Advance.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Report Pages *.pg

Post by HighAley »

Hello.

The Open and Load methods are available for a StiPage component.
Here is where you can call this method:

Code: Select all

report.Pages[0].Load(path)
But a you sure that you need it. The dictionary is non saved in this case.

Thank you.
Liewai25
Posts: 5
Joined: Mon Jun 25, 2018 2:47 pm

Re: Report Pages *.pg

Post by Liewai25 »

Sorry for the dump questions but if I use that code all the components that exist in the page will be ovwrwrited. But if I do it using the above picture way . It will not overwrite the existing components and add what contain inside the report pages.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Report Pages *.pg

Post by HighAley »

Hello.

Than add a new page and load the page content to it from a file.

Thank you.
Post Reply