Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Export to PDF INSIDE the Browser

Author  Topic 

AjarnMark
SQL Slashing Gunting Master

3246 Posts

Posted - 2005-04-13 : 17:06:40
Doing a lot more work with Reporting Services lately, and running into an odd behavior. When viewing the report in the Report Server (web interface) if I choose Export to PDF, it does so by opening up Acrobat Reader OUTSIDE OF the browser window. I would expect it to open within the browser window, and am told that it used to do that before a Service Pack was applied, but I can't find any confirmation from Microsoft on that. Other PDFs opened online stay inside the browser, but not Reports.

Any ideas?

-------------------------------------------------------------------------
Emerald City Domains: Is there a limit to how many businesses I can own?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-04-13 : 18:02:58
I've been using RS with and without sp1 installed. I don't recall it ever opening in the same browser window.

Tara
Go to Top of Page

jhermiz

3564 Posts

Posted - 2005-04-14 : 16:21:05
quote:
Originally posted by AjarnMark

Doing a lot more work with Reporting Services lately, and running into an odd behavior. When viewing the report in the Report Server (web interface) if I choose Export to PDF, it does so by opening up Acrobat Reader OUTSIDE OF the browser window. I would expect it to open within the browser window, and am told that it used to do that before a Service Pack was applied, but I can't find any confirmation from Microsoft on that. Other PDFs opened online stay inside the browser, but not Reports.

Any ideas?

-------------------------------------------------------------------------
Emerald City Domains: Is there a limit to how many businesses I can own?



I think this is normal behavior, that is exactly what happens to me and what I want. Wouldn't you want the pdf to open in a new window? What if the user wants to go back and do something else on the parent window? If it is covered up the user has to click the back button, and believe it or not some users arent even aware that they can click the back button to get back to the app.

Our reports do the same thing, and to me this is normal behavior.



Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]
Imperfection living for perfection --
[url]http://jhermiz.blogspot.com/[/url]
Go to Top of Page

AjarnMark
SQL Slashing Gunting Master

3246 Posts

Posted - 2005-04-15 : 17:40:39
Thanks for the feedback. As I look at it more closely, it appears to be triggering it as a [b]Download[/] not just opening a URL.

It was the boss who was wanting it to open in the browser window. He believes that it would be less distracting and less clutter for the user that way. Also, unfortunately, Acrobat Reader seems to like to open in a smaller window than the browser is set to, and I end up having to resize it to see more of the document at larger display. The boss is also the one who thought that it used to open in the browser before the SP, but apparently that was wrong.

Thanks again!

-------------------------------------------------------------------------
Emerald City Domains: Is there a limit to how many businesses I can own?
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-04-15 : 19:11:27
Just as long as you put the new cover sheet on the TPS reports BEFORE you send them out...
Go to Top of Page

jhermiz

3564 Posts

Posted - 2005-04-15 : 23:27:21
quote:
Originally posted by robvolk

Just as long as you put the new cover sheet on the TPS reports BEFORE you send them out...



robb must of got the memo.

Accounts payable this is nina speaking...just a moment!
Funny cause we use TPS_REPORTS in SAP and one of our domains is TPS_USA :)




Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]
Imperfection living for perfection --
[url]http://jhermiz.blogspot.com/[/url]
Go to Top of Page

siener
Starting Member

1 Post

Posted - 2005-04-19 : 08:05:17
I'm also looking for a way to get the PDF to open in the browser instead of externally. There is actually a very good reason for this that I will not go into now.

It seems the reason that IE thinks it should download the file instead of opening it in place (as it usually does when you browse to a PDF on the internet), is that it sends the http header: 'Content-Disposition: attachment; filename="MyReport.pdf"'.

Does anyone know of a way to prevent this header from being sent?
Go to Top of Page

jhermiz

3564 Posts

Posted - 2005-04-19 : 09:08:41
Exactly, you can try this with anything on your web server such as a word document. If you send the HTTP:// header you will get either one of two things:

1)if you have SP2 installed in xp you will get a warning asking you to run or save it, opening the document in a new window
2)you will get the document in a new window (externally)

There is no magical way of sending the FILE:// header instead of the HTTP:// header in reporting services. The only thing you can do is open the report in your client application.

Jon



Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]
Imperfection living for perfection --
[url]http://jhermiz.blogspot.com/[/url]
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2005-04-20 : 07:56:10
I believe that Acrobat can be configured to NOT embed in the browser - so if you really REALLY want users to open PDFs in their browsers you may be stymied by users who configure Acrobat to open PDFs within Acrobat, rather than embedded.

Kristen
Go to Top of Page

AjarnMark
SQL Slashing Gunting Master

3246 Posts

Posted - 2005-04-20 : 11:09:42
Ah, right you are Kristen, I had forgotten about that. Good point!

-----------------------------------------------------------------------------------------------
Emerald City Domains: Great deals on Domain Registration, Web Hosting, Custom Email, and more!
Go to Top of Page

AjarnMark
SQL Slashing Gunting Master

3246 Posts

Posted - 2005-04-20 : 11:19:24
Mitch Denny has some notes on how he dealt with this from a desktop application perspective by embedding Acrobat in the application itself. "In my spare time" (whatever that is) I hope to experiment to see if I can imitate this from a web application. But for now, still no joy.

-----------------------------------------------------------------------------------------------
Emerald City Domains: Great deals on Domain Registration, Web Hosting, Custom Email, and more!
Go to Top of Page
   

- Advertisement -