SSRS 2012/2008 - how to show favicon while viewing report

  • Hi,

    we are using SSRS 2012/2008 in projects where we have to display the client logo in the browser through favicon option. I tried by adding the following node within head node in ReportViewer webpage but it didn't work even i have tried by giving the actual machine folder path too but it didn't work it's show IE favicon.

    "<link rel="shortcut icon" href="favicon.ico" />

    please guide me on this, thanks.

    ___
    Known Is An Drop,Unknown Is An Ocean....
    Njoy Programming
    🙂

  • You could create it in the reporting services javascript. Put your favicon in the images folder under report manager (Program Files\Microsoft SQL Server\MSRS11.SQL2012\Reporting Services\ReportManager), then add the following to the top of the ReportingServices.js :

    var link = document.createElement('link');

    link.rel = 'shortcut icon';

    link.type = 'image/x-icon';

    link.href = 'http://myreportserver/Reports_SQL2012/images/favicon.png';

    document.getElementsByTagName('head')[0].appendChild(link);

  • Thanks for the snippet Spiff, after given the complete image url i got favicon displayed in the local machine. If it's didn't works after deployed to server I will try your snippet.

    ___
    Known Is An Drop,Unknown Is An Ocean....
    Njoy Programming
    🙂

  • Did this end up working?  Where is the "ReportViewer webpage"?  I'm using 2008 R2.

  • Spiff - Wednesday, May 11, 2016 7:05 AM

    You could create it in the reporting services javascript. Put your favicon in the images folder under report manager (Program Files\Microsoft SQL Server\MSRS11.SQL2012\Reporting Services\ReportManager), then add the following to the top of the ReportingServices.js :var link = document.createElement('link');link.rel = 'shortcut icon';link.type = 'image/x-icon';link.href = 'http://myreportserver/Reports_SQL2012/images/favicon.png';document.getElementsByTagName('head')[0].appendChild(link);

    This worked. GREAT . Thanks !!!

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

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