Wednesday, March 28, 2012

How to get the SessionID from the html viewer?

Is there anyway I can get the SessionID of a report viewed in the html viewer?
It seems that the html viewer hides the rs:SessionID from the url?

I need the session ID to pass to a webservice to save the report as MHTML exactly in the state it has in the reportviewer.

Unfortunately I can not take advantage of the export function in the toolbar because, the report has to be saved in a specific place, given a specific filename etc.

/HenrikI believe the ServerReport object has a property called ExecutionID - at least it should have in recent builds.
The ServerReport class should also have the ability to export to other formats by calling Render, you should not have to call the web service APIs directly. What build are you using?

Thanks
Tudor|||Hmm.. I am using the render method.
I need the SesionID to pass to the header.

Does anyone know how to get the SessionID visible in the url?|||The SessionID is not passed in the URL. It is passed back and forth in the HTTP header.

No comments:

Post a Comment