Page 1 of 1

Maintain control Values after on click of exit buton

Posted: Wed Aug 04, 2010 9:40 am
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 =)

Maintain control Values after on click of exit buton

Posted: Wed Aug 11, 2010 2:31 am
by Jan
Hello,

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

Thank you.

Maintain control Values after on click of exit buton

Posted: Wed Aug 11, 2010 2:41 am
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.

Maintain control Values after on click of exit buton

Posted: Tue Mar 01, 2011 7:05 am
by fernandoftorres
Na versão mais atual, tem alguma solução para esse problema?

Maintain control Values after on click of exit buton

Posted: Thu Mar 03, 2011 12:25 am
by Vladimir
Hello,

Unfortunately, no.

Thank you.