I am trying to replace the text string in Report Manager from "SQL Server Reporting Services" to something more meaningful for my users. After searching around, I found some Javascript and modified my folder.aspx to look like this:
<%@ Page language="c#" Codebehind="Folder.aspx.cs" AutoEventWireup="false" Inherits="Microsoft.ReportingServices.UI.FolderPage" EnableEventValidation="false" %>
<%@ Register TagPrefix="MSRS" Namespace="Microsoft.ReportingServices.UI" Assembly="ReportingServicesWebUserInterface" %>
<HTML>
<head>
<script type="text/javascript" >
function myscript() {
var input = 'Reporting Services';
var output='My Appication V xxxx';
document.body.innerHTML = document.body.innerHTML.replace(input,output);
}
</script >
</head>
<body OnLoad="myscript();">
test
</body>
</HTML>
This works perfectly, however I have the word "test" at the top of my page as you'd expect. If I remove this word, the formatting on the page is ruined, put it back in, the formatting returns. I'm a SQL developer , so this is all Greek to me....
I've tried putting in " " in the body and that has the desired effect but I'm still left with a blank line at the top of the report which someone will eventually complain about...
To replicate this behaviour, back up your folder.aspx file and replace it with the text above. Take out the body text and refresh your browser and you'll see the formatting disappear as though the stylesheet couldn't be located / loaded.
How do I replace the text without either messing up the formatting or adding a blank line at the top of my report?
Thanks in advance
Andy