Image bug html5

Stimulsoft Reports.JS discussion
terje.pedersen
Posts: 80
Joined: Thu Aug 18, 2016 7:29 am

Image bug html5

Post by terje.pedersen »

In preview (HTML version) its working aswell as in PDF version but not in the HTML5 version. We have an image inside a pagefooterband and nothing is displayed in the HTML5 version when we have the image on the page.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Image bug html5

Post by HighAley »

Hello.

Could you specify which version of our product you use?
Please, try our latest build.
If you still have an issue, please, send us a sample that will help us to reproduce and solve the issue.

Thank you.
terje.pedersen
Posts: 80
Joined: Thu Aug 18, 2016 7:29 am

Re: Image bug html5

Post by terje.pedersen »

I'm using the latest build JS_2016.08.26
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Image bug html5

Post by Alex K. »

Hello,

Please, send us a sample that will help us to reproduce and solve the issue.

Thank you.
terje.pedersen
Posts: 80
Joined: Thu Aug 18, 2016 7:29 am

Re: Image bug html5

Post by terje.pedersen »

Looking in the browser running with html5 flag we get the following when having a mrt with just one image as attached.
TypeError: Cannot read property 'toString' of null
at Function.Ct.writeImage (:3000/stimulsoft.reports.js:265)
at Function.Ct.writeDocument (:3000/stimulsoft.reports.js:265)
at Function.Ct.saveToString (:3000/stimulsoft.reports.js:266)
at a.renderPage (:3000/stimulsoft.reports.js:267)
at a.exportHtml (:3000/stimulsoft.reports.js:267)
at J.exportTo (:3000/stimulsoft.reports.js:267)
at StimulsoftReportWrapper.showReport (app.bundle.js:9783)
at ReportDefinitionService.onDataFetched (app.bundle.js:9970)
at t._next (app.bundle.js:9961)
at t.__tryOrUnsub (vendors.bundle.js:11839)
Attachments
ResultAndBalance.mrt
Simple mrt with just one image
(21.25 KiB) Downloaded 154 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Image bug html5

Post by HighAley »

Hello.

Sorry, we can't reproduce your issue on our side.
Could you send us a sample site that will help us to reproduce the issue.

Thank you.
terje.pedersen
Posts: 80
Joined: Thu Aug 18, 2016 7:29 am

Re: Image bug html5

Post by terje.pedersen »

You have runned it with settings.htmlType = Stimulsoft.Report.StiHtmlType.Html5?
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Image bug html5

Post by HighAley »

Hello.

Yes, but we still could not reproduce the issue.
Maybe we missed something.
Could you send us a sample site that will help us to reproduce the issue.

Thank you.
terje.pedersen
Posts: 80
Joined: Thu Aug 18, 2016 7:29 am

Re: Image bug html5

Post by terje.pedersen »

This bug is still a showstopper for us. I have tried now with the latest JS_2016.11.04 it works with PDF and HTML but when I use settings.htmlType = Stimulsoft.Report.StiHtmlType.Html5 its not working anymore.

Code: Select all

TypeError: Cannot read property 'toString' of null
    at Function.Ct.writeImage (stimulsoft.reports.js:268)
    at Function.Ct.writeDocument (stimulsoft.reports.js:268)
    at Function.Ct.saveToString (stimulsoft.reports.js:269)
    at s.renderPage (stimulsoft.reports.js:269)
    at s.exportHtml (stimulsoft.reports.js:270)
    at z.exportTo (stimulsoft.reports.js:270)
terje.pedersen
Posts: 80
Joined: Thu Aug 18, 2016 7:29 am

Re: Image bug html5

Post by terje.pedersen »

I have tried with several types of images, different kind of urls (Image Url), directly (Image) but the same result.
Post Reply