Git Product home page Git Product logo

ssrs-in-google-chrome's Introduction

SSRS-in-Google-Chrome

An extension for Google Chrome for viewing SSRS reports.

SSRS reports are designed specifically for Internet Explorer and don't work in Google Chrome. The underlying reason for this is pretty simple: the report is rendered in the browser with the overflow style attribute set to auto. Internet Explorer interprets this differently than Google Chrome, so while the report appears in IE, it is effectively hidden in Chrome.

There are a few existing extensions that partially fix this issue, including:

These extensions can be a big help, but also have some limitations. Specifically one or more of the following requirements:

  • The report must load automatically, not allowing for modifications of any report parameters.
  • The user must click the extension's icon in order for the report to appear.
  • The extension looks to modify specific element that may not be universal to all SSRS servers.

My attempt at a solution to these issues involves querying the DOM for the element that will be the parent of the report:

var reportViewer = document.querySelectorAll("span[id$='ReportViewer']")[0]

Attaching an event listener to watch for new elements being created when the finished report is rendered:

reportViewer.addEventListener("DOMNodeInserted", function() {...})

And finally cycling through all <div> elements within the new report and setting their overflow style attribute to visible.

The event listener remains for any successive reports that the user may choose to run.

ssrs-in-google-chrome's People

Contributors

alexmacy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.