images dissapear

Stimulsoft Reports.WEB discussion
Post Reply
J_S
Posts: 49
Joined: Mon Sep 22, 2008 3:10 am
Location: Netherlands

images dissapear

Post 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
Anton Lozovskiy
Posts: 135
Joined: Tue Aug 11, 2009 9:38 am

images dissapear

Post 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.
J_S
Posts: 49
Joined: Mon Sep 22, 2008 3:10 am
Location: Netherlands

images dissapear

Post 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();
        }
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

images dissapear

Post by Vladimir »

Hello,

We have fixed this error, please download the latest prerelease build with our website.

Thank you.
Post Reply