views:

909

answers:

3

It seems that due to ActiveX that Firefox can't display the print icon/button on the Report Viewer control in SQL Server Reporting services. Has anybody figured out a way to work around this or gotten this to work?

If it's not possible, does anybody know of a way to add a standard button that would trigger the print behavior on the report viewer control?

A: 

As you state, the print functionality is ActiveX, so it will not work in Firefox.

You could place a button in the "msrs-buttonHeaderBackground" div using a javascript button.

I found the div using the firebug firefox extension - it's great.

You could possibly find the other divs you'd like to hide and put them in a print style sheet, so they don't show up when going to print.

http://www.456bereastreet.com/archive/200709/how_to_create_an_unobtrusive_print_this_page_link_with_javascript/

I agree with the author that ctrl-p could simply be pressed for a similar result instead of adding a button - but the print style would still help in that.

You know what...I just realized something. You will not be able to print a page that is more than one page! Ouch.

Sam
Right, I would need to print the report in the report viewer's "print mode". I am going to see if there's a way to tap into the report viewer's event and come up with a solution on my own.
Don
I'd be interested to hear how this works out. You are very brave :)
Sam
A: 

So did you find a way Don?

Gerardo Melendrez
Nope. With it being Active-X there is no way as far as I know. Nobody else seems to have come up with a solution on the web either.
Don
A: 

My best suggestion would be from within Firefox export it to PDF and then print it from your PDF viewer. In my experience this is a better way to print the reports anyway.

Hope that helps!

Joel Mansford
That's what we tell our customers they can do as a work around. Unfortunately, it's just that... a work around.
Don