Page 1 of 1
Automatically launch new report wizard?
Posted: Tue Oct 06, 2009 10:17 am
by Lynn
Is there any way to tell the StiWebDesigner to automatically launch the new report wizard UI when it opens?
This is my code for working with a new report:
StiReport stiReport = new StiReport();
WebDesigner1.Design(stiReport);
Are there any properties on the report or the designer which would cause the wizard to launch without the user needing to initiate the action?
Automatically launch new report wizard?
Posted: Wed Oct 07, 2009 4:27 am
by Edward
Hi,
In the prerelease build from the next week the following options will be available:
Stimulsoft.Report.Web.StiWebDesignerOptions.ShowWizardOnStartup = true;
Thank you.
Automatically launch new report wizard?
Posted: Tue Oct 13, 2009 12:59 pm
by Lynn
Would it be possible to set this on the designer directly rather then as a system wide static property? We need the wizard show on startup for new reports only.
I have wraped the code in a lock statement to prevent cross threading issues with this property, but that isn't a good solution.
Automatically launch new report wizard?
Posted: Wed Oct 14, 2009 2:17 am
by Andrew
Hello,
We will duplicate this feature with appropriate property of the StiWebDesigner component.
Thank you.
Automatically launch new report wizard?
Posted: Wed Oct 21, 2009 9:43 am
by Lynn
I switched our code to use the ShowWizardOnStartup property on the StiWebDesigner and the wizard is not coming up when it is set to true.
Automatically launch new report wizard?
Posted: Thu Oct 22, 2009 10:03 am
by Andrew
Hello,
We have checked the latest prerelease build and the found that the ShowWizardOnStartup="true" property works as expected.
Maybe you set the value of the property directly from the code, but not on the aspx page. Please use the OnPreInit event for this:
protected override void OnPreInit(EventArgs e)
{
base.OnPreInit(e);
StiWebDesigner1.ShowWizardOnStartup = true;
}
Thank you.
Automatically launch new report wizard?
Posted: Fri Oct 23, 2009 11:19 am
by Lynn
Setting the property in OnPreInit does work for me.
Unfortunately at this point I do not have access to the data I need to set the property.
I will continue to use the global setting inside a lock statement for the time being.
Thanks.
Automatically launch new report wizard?
Posted: Tue Oct 27, 2009 1:01 am
by Andrew
Hello,
Unfortunately, there are no other ways to do this, because the Flash application is loaded before the Init event, where there is no access to properties, which are defined be a user.
Thank you.