Unable to handle Exit Event

Stimulsoft Reports.WEB discussion
Post Reply
pratikmistry
Posts: 11
Joined: Wed Oct 05, 2011 5:02 am
Location: India

Unable to handle Exit Event

Post by pratikmistry »

Hi,

I am using Version 2011.3.1102 from 6 October 2011 of Stimulsoft Reports.Web.

I dont know why its not firing StiWebDesigner1_Exit event for some reason.

I've already added this even in my preInit code as well as in markup.

protected void StiWebDesigner1_PreInit(object sender, StiWebDesigner.StiPreInitEventArgs e)
{
StiWebDesigner1.Exit += new Stimulsoft.Report.Web.StiWebDesigner.StiExitEventHandler(StiWebDesigner1_Exit);
}
This was working perfectly fine with 2011.1 release version but probably some issue with this intriem version.

Please advise.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Unable to handle Exit Event

Post by Vladimir »

Hello,

We couldn't reproduce this issue on the latest version. Please, try to clear your browser cache.

Thank you.
pratikmistry
Posts: 11
Joined: Wed Oct 05, 2011 5:02 am
Location: India

Unable to handle Exit Event

Post by pratikmistry »

HI Vladminir,

Thanks for your reply. Here I have cleared my browser cache also but still problem persist. So let me post my code here which can help you to reproduce the issue.

ASPX:





eCat Report Management












Code Behind:

protected void Page_PreInit(object sender, EventArgs e)
{
#region Designer Configuration Settings

StiSettings.DefaultReportSettingsPath = Server.MapPath("ProjectResources");

StiOptions.Designer.AllowUseDragDrop = true;
StiOptions.Designer.AllowUseWinControl = true;
StiOptions.Designer.TabsContextMenu.ShowFormNew = true;

StiOptions.Designer.PropertyGrid.AllowShowConfiguration = true;
StiOptions.Designer.PropertyGrid.Localizable = true;
StiOptions.Designer.PropertyGrid.ShowDescription = true;
//StiOptions.Designer.PropertyGrid.PropertyLevel = Stimulsoft.Base.StiLevel.Professional;

StiWebDesignerOptions.MainMenu.ShowNew = false;
StiWebDesignerOptions.MainMenu.ShowOpenReport = false;
StiWebDesignerOptions.MainMenu.ShowDeletePage = false;
StiWebDesignerOptions.MainMenu.ShowSaveAs = false;
StiWebDesignerOptions.MainMenu.ShowClose = false;
StiWebDesignerOptions.MainMenu.ShowExitButton = true;


StiWebDesignerOptions.Toolbar.ShowDictionaryTab = true;
StiWebDesignerOptions.Toolbar.ShowPreviewReportTab = true;
StiWebDesignerOptions.Toolbar.ShowCodeTab = true;

}

protected void StiWebDesigner1_PreInit(object sender, StiWebDesigner.StiPreInitEventArgs e)
{
StiWebDesigner1.Exit += new Stimulsoft.Report.Web.StiWebDesigner.StiExitEventHandler(StiWebDesigner1_Exit);
}

protected void StiWebDesigner1_Exit(object sender, StiWebDesigner.StiExitEventArgs e)
{
if (ReportType == ReportType.Summary)
{
StiWebDesigner1.ExitUrl = "~/Report.aspx?Id=" + gid;
}
else if (ReportType == ReportType.Detail)
{
StiWebDesigner1.ExitUrl = "~/ReportDetailType.aspx?Id=" + gid;
}
}
Above code may help you to reproduce the issue. Please assist me if there are any other way to resolve this.

Thank for you co-operation.

Regards,

Pratik
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Unable to handle Exit Event

Post by Vladimir »

Hello,

We have reproduced and fixed this error, please download a new prerelease build from 2011.09.28

Thank you.
Post Reply