HTML Undesired information on Meta Content

  • Hi,

    I added a web reference to ReportExecution2005.asmx?WSDL from my ASP.NET MVC application.

    After I render the report to HTML4, I check the source of the HTML with "view source", and

    below is the information that I see. Is there any way to "tell" SSRS not to include all this

    information on the HTML? If not, is there any work around?

    This meta content is giving some information about my internal network, like the Reporting Services server name. It is also giving the parameters' information.

    Thanks in advance,

    qdtb

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    <html><head>

    <title>TESTREPORT</title>

    <META http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <META http-equiv="Content-Style-Type" content="text/css"/>

    <META http-equiv="Content-Script-Type" content="text/javascript"/>

    <META HTTP-EQUIV="Location" CONTENT="http://server/ReportServer?%2fDaily+Queries%2fTESTREPORT"/>

    <META HTTP-EQUIV="Uri" CONTENT="http://server/ReportServer?%2fDaily+Queries%2fTESTREPORT"/>

    <META HTTP-EQUIV="Last-Modified" CONTENT="05/17/2012 14:14:30">

    <META NAME="MONTH" CONTENT="4">

    <META NAME="YEAR" CONTENT="2012">

    <META NAME="Generator" CONTENT="Microsoft Report 8.0 "/>

    <META NAME="Originator" CONTENT="Microsoft Report 8.0 "/>

  • I don't know that you will actually find what you need there, but I would start with the reporting services config files on the server.

  • Thanks Daniel,

    I will be looking into that.

  • Hi all,

    I found the solution. You have to add the device info

    string devInfo = @"<DeviceInfo><HTMLFragment>True</HTMLFragment></DeviceInfo>";

    Then you apply this device info to the render function.

    thanks,

    qdtb

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply