Hi,
I am trying to conditionally skip code when in design mode, and normally use the following:
However, when previewing reports hooked up to a temporary objectdatasource, this above code does not work. Is there a way to determine if I am in report preview mode? The reason I ask is that I want to bypass the _NeedDataSource event if I am in VS and previewing the report.
Thanks,
David A.
I am trying to conditionally skip code when in design mode, and normally use the following:
if (LicenseManager.UsageMode == LicenseUsageMode.Designtime)
return;
However, when previewing reports hooked up to a temporary objectdatasource, this above code does not work. Is there a way to determine if I am in report preview mode? The reason I ask is that I want to bypass the _NeedDataSource event if I am in VS and previewing the report.
Thanks,
David A.