| |
ActiveReports for .NET Support
Started by pdan2993 at 03-05-2004 10:45 AM. Topic has 14 replies.
 
 
 
|
|
Sort Posts:
|
|
|
|
03-08-2004, 1:46 PM
|
Scott
Joined on 08-28-2004
Columbus, Ohio
Posts 492

|
Re: PDF Viewer Email Extension
|
|
|
|
|
On the Internet the way to provide a suggested filename for saving the file is done with the content-disposition header. As is described in RFC2183, the filename parameter of the content-disposition header should be used as the basis for the actual filename when the document is stored in a separate file. This works with MSExcel and other applications, just not Acrobat. However, I realize this is not a solution for what you’re asking. I’ve recorded a suggestion and assigned it issue #CR12628 to investigate a way to make Adobe Acrobat’s Save As… dialog display a file ending with extension .pdf. I have a couple of ideas for improving this using the WebViewer in the future. However, there will be a trade off. One goal is to make the configuration of the WebViewer and HttpHandlers as easy as possible (i.e. none), as the WebViewer’s main goal is to provide a very easy way to display reports in ASP.NET applications. However, I think implementing a solution to trick Acrobat into displaying a .PDF file name for a dynamically generated file may require some additional setup (installing ISAPI extensions or other IIS configuration). Your suggestions and comments on this trade-off would be appreciated.
Anyway, for now, I believe the only solution for this would be one of the following: - Save the PDF to a file on the server, and redirect the browser to the file. - Use the Application’s BeginRequest handler as “pdan2993” describes. - Create and install a IHttpModule to attach to attach a BeginRequest handler.
Saving the PDF to a file is certainly the easiest approach, but has the undesirable side-effect of requiring cleanup of the created files. The other two options are more involved and complicated, but enable dynamic generation of the files (no cleanup).
|
|
|
|
|
Report
|
|
|
|
05-07-2004, 12:30 PM
|
cal1ga
Joined on 08-28-2004
Posts 15
|
Re: PDF Viewer Email Extension
|
|
|
|
|
|
Is there any update on this issue. It's too much hassle just get the extension right.
Also, is there a detail write-up on pdan2993's solution. I'm a AR (asp.net as well) newbie .
not familiar at all with "Application BeginRequest"
|
|
|
|
|
Report
|
|
|
|
05-07-2004, 12:39 PM
|
Scott
Joined on 08-28-2004
Columbus, Ohio
Posts 492

|
Re: PDF Viewer Email Extension
|
|
|
|
|
I have taken some time to look for other sites that set the name of a PDF file. So far I’ve only seen Acrobat work with one of the three solutions described in my earlier post which are: - Save the PDF to a file on the server, and redirect the browser to the file. - Use the Application’s BeginRequest handler as “pdan2993” describes. - Create and install a IHttpModule to attach to attach a BeginRequest handler.
I’ve left the suggestion open in case somebody else recommends a workaround to fix Acrobat’s problem of not recognizing the content-disposition header. If we find a reasonable workaround we should implement it.
|
|
|
|
|
Report
|
|
|
|
05-07-2004, 4:27 PM
|
cal1ga
Joined on 08-28-2004
Posts 15
|
Re: PDF Viewer Email Extension
|
|
|
|
|
Tried to implement beginrequest handler, without much success. I got an error on AcquireRequestState. could you post some sample code to the httpmodule!
|
|
|
|
|
Report
|
|
|
|
02-10-2006, 10:27 AM
|
philjmcc
Joined on 08-28-2004
Posts 2
|
Re: PDF Viewer Email Extension
|
|
|
|
|
|
When accessing your report .aspx page add a querystring with value of "/filename.pdf" to the end.
reportPage.aspx?EXT=/filename.PDF
This will work because the PDF viewer will use the text in the URL after the last “/” character for the mailto attachment filename.
For DD to get the WebViewer to work with PDF mailto, could they append a similar querystring to the end of the “.ArCacheItem” extension.
“.ArCacheItem?EXT=/filename.PDF”
I do agree this is a issue with the PDF viewer because if you use “Save a Copy” the PDF viewer automatically appends a “.PDF” exetension.
Anyway I hope this hack helps.
|
|
|
|
|
Report
|
|
|
|
|
GrapeCity » Product Support » ActiveReports f... » Re: PDF Viewer Email Extension
|
|
|
|
|