Automatically launch new report wizard?

Stimulsoft Reports.WEB discussion
Post Reply
Lynn
Posts: 42
Joined: Tue Oct 06, 2009 9:58 am
Location: United States

Automatically launch new report wizard?

Post 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?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Automatically launch new report wizard?

Post 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.
Lynn
Posts: 42
Joined: Tue Oct 06, 2009 9:58 am
Location: United States

Automatically launch new report wizard?

Post 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.
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Automatically launch new report wizard?

Post by Andrew »

Hello,

We will duplicate this feature with appropriate property of the StiWebDesigner component.

Thank you.
Lynn
Posts: 42
Joined: Tue Oct 06, 2009 9:58 am
Location: United States

Automatically launch new report wizard?

Post 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.
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Automatically launch new report wizard?

Post 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.
Lynn
Posts: 42
Joined: Tue Oct 06, 2009 9:58 am
Location: United States

Automatically launch new report wizard?

Post 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.
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Automatically launch new report wizard?

Post 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.
Post Reply