Team,
I have a report (.MRT file), which has multiple pages like "Summary", "Details" if do the preview it's working fine. Is there way to preview or render only "Summary" or "Details" condition based.
Thanks,
Kpmsak
Load/Render/View Multiple Pages based on condition
Re: Load/Render/View Multiple Pages based on condition
Hello,
Please try to add the Conditions for "Summary" and "Details" pages. You can use the aditional variable in Conditions and "Component Is Enabled" option.
Thank you.
Please try to add the Conditions for "Summary" and "Details" pages. You can use the aditional variable in Conditions and "Component Is Enabled" option.
Thank you.
Re: Load/Render/View Multiple Pages based on condition
Thanks Aleksey for swift reply.
I couldn't find the "Component Is Enabled" condition. I belive i have missed some thing. could you please share the sample code.
Stimulsoft.Report.Components.StiPagesCollection stiPagescoll = report.Pages;
Stimulsoft.Report.Components.StiPage sti_page = new Stimulsoft.Report.Components.StiPage();
//int ww = report.pages;
DataSet ds = this.GetData();
ds.Tables[0].TableName = "RecapTestData";
if (stiPagescoll[0].Name == "Summary")
{
sti_page = stiPagescoll[1].Page;
}
I couldn't find the "Component Is Enabled" condition. I belive i have missed some thing. could you please share the sample code.
Stimulsoft.Report.Components.StiPagesCollection stiPagescoll = report.Pages;
Stimulsoft.Report.Components.StiPage sti_page = new Stimulsoft.Report.Components.StiPage();
//int ww = report.pages;
DataSet ds = this.GetData();
ds.Tables[0].TableName = "RecapTestData";
if (stiPagescoll[0].Name == "Summary")
{
sti_page = stiPagescoll[1].Page;
}
Re: Load/Render/View Multiple Pages based on condition
Aleksey,
Thanks I have changed my code like this and now my problem is solved.
report.Pages[1].Enabled=false
kpmsak.
Thanks I have changed my code like this and now my problem is solved.
report.Pages[1].Enabled=false
kpmsak.
Re: Load/Render/View Multiple Pages based on condition
Hello,
Ok.
Let us know if you need any additional help.
Ok.
Let us know if you need any additional help.