Page 1 of 1
images dissapear
Posted: Mon Apr 18, 2011 7:11 am
by J_S
Hello,
In your newest version images are gone when I open the web designer. When I click on preview (in the designer) the images are there, but on the designer surface they are gone. Only the selection rectangle is visible when I click on the area where the image is/should be.
Regards
images dissapear
Posted: Mon Apr 18, 2011 8:00 am
by Anton Lozovskiy
Hello,
We can not reproduce the problem. Please send us video which step-by-step demonstrates how the problem can be reproduced.
Thank you.
images dissapear
Posted: Mon Apr 18, 2011 9:20 am
by J_S
See the attachment for a video, here is the code:
Code: Select all
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
if (!IsPostBack && Request.QueryString["stimulsoft_webdesigner"] == null)
{
ReportIdObject report = GetCurrentReport();
if (report != null)
{
StiReport stiReport = ReportHelper.CreatePackedReport(report.PackedReport);
stiReport.ReportAlias = report.Name;
ReportHelper.RegisterDataSource(stiReport);
reportDesigner.Design(stiReport);
}
}
}
ReportHelper:
Code: Select all
public static StiReport CreatePackedReport(string packedReport)
{
StiReport report = new StiReport();
if (!string.IsNullOrEmpty(packedReport))
{
report.LoadPackedReportFromString(packedReport);
}
SetReportSettings(report);
return report;
}
public static void SetReportSettings(StiReport report)
{
report.Unit = StiUnit.Centimeters;
report.ReportUnit = StiReportUnitType.Centimeters;
foreach (StiPage page in report.Pages)
{
page.PaperSize = PaperKind.A4;
page.Margins = new StiMargins(1.5, 1.5, 1.5, 1.5);
}
foreach (StiReport subReport in report.SubReports)
{
SetReportSettings(subReport);
}
}
public static void RegisterDataSource(StiReport report)
{
RegisterDataSource(report, AcademyDataSet.Create());
}
public static void RegisterDataSource(StiReport report, DataSet dataSet)
{
report.DataSources.Clear();
report.RegData(dataSet);
report.Dictionary.Synchronize();
}
images dissapear
Posted: Tue Apr 19, 2011 8:02 am
by Vladimir
Hello,
We have fixed this error, please download the latest prerelease build with our website.
Thank you.