Jump to content
Software FX Community

RenderToStream not generating cookie field


Diego

Recommended Posts

 Hello! We are just migrating from old servers (2003) to 2012 servers.. and the graphs arent working proberly because the temp .js files generated dont create the "cookie" section...
     

      Chart chart = new Chart();
            chart.RenderFormat = ".NET";

            MemoryStream content = new MemoryStream();
            StringWriter imgMap = new StringWriter(CultureInfo.InvariantCulture);
            StringWriter htmlTag = new StringWriter(CultureInfo.InvariantCulture);

            chart.RenderToStream(content, imgMap, htmlTag);

Sample temp js in old server: 

function cfx_replace() {
document.write('<object codetype="application/octet-stream" id="" classid="/chartfx70/download/ChartFX.NetIEClient.dll#ChartFX.NetIEClient.Chart" standby="Downloading Chart FX control please wait ..."  WIDTH="375px" HEIGHT="250px" >');
document.write('<param name="Cookies" value="QQBTAFAALgBOAEUAVABfAFMAZQBzAHMAaQBvAG4ASQBkAD0AcABmAHUAcwBzAHEAYQBxAG0AcgBhAHAANQBsAGIAawBpAGMAYgBpAGwAZQA1ADUAOwA="/>');
document.write('<param name="DataPath" value=""/>');
document.write('[Chart FX: .NET Active client requires Internet Explorer and .NET Framework 2.0 or greater installed on the client computer.]');
document.write('</object>');
}

Sample in new server:

function cfx_replace() {
document.write('<object codetype="application/octet-stream" id="" classid="/chartfx70/download/ChartFX.NetIEClient.dll#ChartFX.NetIEClient.Chart" standby="Downloading Chart FX control please wait ..."  WIDTH="375px" HEIGHT="250px" >');
document.write('<param name="DataPath" value=""/>');
document.write('[Chart FX: .NET Active client requires Internet Explorer and .NET Framework 2.0 or greater installed on the client computer.]');
document.write('</object>');
}

 

 

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...