Load/View Multiple Pages based on condition

Stimulsoft Reports.NET discussion
Post Reply
yycool
Posts: 3
Joined: Tue Sep 01, 2015 7:38 am

Load/View Multiple Pages based on condition

Post by yycool »

Hi

I have a report (.MRT file), which has multiple pages like "Stocklist"(page1), "Barcode"(page2). The problem is when i select option in the program to preview "Barcode" (page2) the report display blank. If preview "Stocklist" (page1) the report display nicely. Is there way to preview or render only "Stocklist"(page1) or "Barcode"(page2) condition based.

Attached with the .mrt file.

Thanks
Attachments
StockListing.mrt
(40.22 KiB) Downloaded 161 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Load/View Multiple Pages based on condition

Post by Alex K. »

Hello,

Can you please send us a test data for your report for analysis.
Also as a way, you can set the Enabled property for pages to false and use the additional code in BeforePrint event:

Code: Select all

if (yourCondition)
{
   Stocklist.Enabled = true;
}
else
{
   Barcode.Enabled = true;
}
Thank you.
Post Reply