Maintain control Values after on click of exit buton

Stimulsoft Reports.WEB discussion
Post Reply
cfmartinez83
Posts: 2
Joined: Tue Aug 03, 2010 11:14 am
Location: sisem

Maintain control Values after on click of exit buton

Post by cfmartinez83 »

After onclick of exit button it does not retain values of controls:

Textbox, lost text value after on exit
Dropdownlist: selected value lost after on exit


selected item of "DropDownListReport" it lost "on exit" from "StiWebDesigner1".








Untitled Page











&nbsp&nbsp&nbsp













using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Stimulsoft.Report.Dictionary;
using Stimulsoft.Report;
using Stimulsoft.Report.Web;

public partial class WebDesignerFxDemo : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}


// Design Report
protected void Button1_Click(object sender, EventArgs e)
{
string appDirectory = HttpContext.Current.Server.MapPath(string.Empty);

// Load report
StiReport report = new StiReport();
string reportPath = string.Format("{0}\\Reports\\{1}", appDirectory, DropDownListReport.Text);
report.Load(reportPath);

// Assign data
StiXmlDatabase database = new StiXmlDatabase("Demo", appDirectory + "\\Data\\Demo.xsd", appDirectory + "\\Data\\Demo.xml");
report.Dictionary.Databases.Add(database);
report.Dictionary.Synchronize();

// Design report
StiWebDesigner1.Design(report);
}


// Create New Report
protected void Button2_Click(object sender, EventArgs e)
{
StiWebDesigner1.Design();
}


// Save Report
protected void StiWebDesigner1_SaveReport(object sender, StiWebDesigner.StiSaveReportEventArgs e)
{
// Web Designer return StiReport class in e.Report

// You can set an error code which will be displayed by the designer after saving
// e.ErrorCode = 1;

// -1: default value, the message is not displayed
// 0: display 'Report is successfully saved' message
}
}



any suggestions

thanks a lot =)
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Maintain control Values after on click of exit buton

Post by Jan »

Hello,

Sorry at this moment we don't have solution for this problem.

Thank you.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Maintain control Values after on click of exit buton

Post by Andrew »

Hello,

Unfortunately, on the current moment, it works "as is" and we cannot offer you the way of solving the issue.

Thank you.
fernandoftorres
Posts: 23
Joined: Thu Jan 13, 2011 7:50 am

Maintain control Values after on click of exit buton

Post by fernandoftorres »

Na versão mais atual, tem alguma solução para esse problema?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Maintain control Values after on click of exit buton

Post by Vladimir »

Hello,

Unfortunately, no.

Thank you.
Post Reply