Setting Device Info Settings

Hello-

Is it possible to set the HTML device information settings ( such as StreamRoot, Replacementroot, HTMLFragment ) through the URL or by config files (like rsreportserver.config)

I'm able to access settings such as JavaScript and Toolbar using the URL like this : rc:Toolbar=false , but it does not seem to be working for other settings.

If these are not available via the URL is there a list of which settings are available and which aren't

As this is the bane of my existence right now any information would be REALLY appreciated,

Tristan



Answer this question

Setting Device Info Settings

  • s_k80

    All of the device info settings can be passed on the url with the rc: prefix. The HTML 4 renderer has a slightly special case with rc:toolbar in Report Server 2005. rc:toolbar effectively controls whether the ReportViewer.aspx page (parameter prompting, toolbar, doc map, etc) is used. In this case, the viewer control supplies its own device info parameters for the actually rendering. For example, the viewer wouldn't working correctly if the report was rendered with javascript = false, so it ignores that value. So when rc:toolbar=true, the default case, only some of the device info settings are applied. Things that can control viewer functionality, like rc:docmap, will still work, but things that control the actual report content will be ignored. When rc:toolbar=false, there is no viewer, so all device info settings are sent directly to the renderer.
  • ronaldst

    Replacementroot should work through the url, but streamroot will not. When using toolbar=true, you are essentially using the ReportViewer control embedded in the server, which uses its own streamroot.

    Can you provide any more detail on what you are trying to accomplish It seems like a strange scenario to be using the viewer embedded on the server but want your own source for images. Have you considered embedded in the ReportViewer control directly in your application This is generally a cleaner design.

    Also, using a username as a parameter is generally not a secure thing to do. If you are using this parameter for anything other than just displaying the name in the report, I highly recommend a different approach.


  • Gogada

    Brian,

    First off, thanks much for the response!!

    Next another quick one for you. I'm attempting to use the ReplacementRoot functionality, but I have yet to get it to work. I am setting the Toolbar to true, so I don't know if that invalidates the ability to use the ReplacementRoot functionality. For example :

    http://otherserver/ReportServer/Pages/ReportViewer.aspx %2fDEV_60%2fCertification&rs%3aCommand=Render&rc%3atoolbar=true&rc%3aparameters=false&rc%3aReplacementRoot=http://localhost/reportingserver&rc%3aStreamRoot=http://localhost/images&HistoryID=1222&UserName=ttt

    I would expect this to be redirecting to my box (localhost) for both images and all drill down functionality, but all images and links are being pulled from the remote server (otherserver). Does anything stick out to you

    Thanks again!

    Tristan


  • Setting Device Info Settings