I am trying to design a new report online.
This does not work:
Code: Select all
StiWebDesigner1.Report = new StiReport();
StiWebDesigner1.Design();
Thanks !
Michel
Code: Select all
StiWebDesigner1.Report = new StiReport();
StiWebDesigner1.Design();
Code: Select all
private void DesignerLoadReport(string reportFile)
{
try
{
StiWebDesigner1.Report = new StiReport();
if (File.Exists(reportFile))
{
// load report in control
StiWebDesigner1.Report.Load(reportFile);
}
StiWebDesigner1.Design();
}
catch (Exception ex)
{
Master.MsgBox(ex.Message);
}
}
Code: Select all
private void DesignerLoadReport(string reportFile)
{
try
{
if (File.Exists(reportFile))
{
// load report in control
StiReport report = new StiReport();
report.Load(reportFile);
StiWebDesigner1.Design(report);
}
else
{
StiWebDesigner1.Design();
}
}
catch (Exception ex)
{
Master.MsgBox(ex.Message);
}
}
Jan wrote:Hello,
Please try to use following code:
Thank you.Code: Select all
private void DesignerLoadReport(string reportFile) { try { if (File.Exists(reportFile)) { // load report in control StiReport report = new StiReport(); report.Load(reportFile); StiWebDesigner1.Design(report); } else { StiWebDesigner1.Design(); } } catch (Exception ex) { Master.MsgBox(ex.Message); } }