Web Viewer with JS

Stimulsoft Reports.JS discussion
Post Reply
c3rb
Posts: 6
Joined: Mon Jul 29, 2013 1:35 pm

Web Viewer with JS

Post by c3rb »

Hello there,

I'm trying to update a StiWebViewer from Javascript, everything seems to go smoothly until it gives an error when I debug with Chrome at this line :
viewer.renderHtml("viewerContent");

The specific error is : "Uncaught Sys.FormatException: Sys.FormatException: Format specifier was invalid."

And the error comes from "ScriptResource.axd" I just can't figure out what it is exactly that I'm doing wrong since this is a generated minified script file.

I only know for sure that the error is provoked by the line I mentioned "viewer.renderHtml("viewerContent");" because It disappears if I remove this line.

Thanks for your time.
c3rb
Posts: 6
Joined: Mon Jul 29, 2013 1:35 pm

Re: Web Viewer with JS

Post by c3rb »

Okay so afer debugging in stimulsoft.viewer.js, it seems there is a conflict of format at this line :

"String.format("#{0:X2}{1:X2}{2:X2}"

I'm using Jquery that might be the problem but I don't really know why, in the meantime I'm replacing String.Format by another function of my own to convert rgb color to Hexadecimal color.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Re: Web Viewer with JS

Post by Jan »

Hello,

Its a problem. We overload string.format function and this function used in our code many times.

Thank you.
Post Reply