There is one thing to note though, if you do not have acrobat reader installed and you are streaming the pdf file, when the system prompts it will prompt with an aspx in the file name. did anyone notice that?
A good Author is one who makes familiar things new and new things familiar.
Hello, sorry for my late response but i wasn´t in my office yesterday... @Ganbhu: Thanks for your answer and the pieces of code. I have tried it and it works fine. But in my case (it is only an intranet application so i can assume that all users have installed
Acrobat Reader in the latest version) the user wants to open "Acrobat Reader" because they want to have the whole functionality of the programm. So i can´t use your way to open the pdf just in a browser window. Anyware i have learned how to open another window
with javascript and that is pretty good ;-) @Daspoo: Thank you for thoughts on 'Response.AddHeader'. I don´t have really think about it because i just have took this piece of code out of another post of this forum. I have now eliminated this line of code and
it works well even without this line. So that is the good thing...but like you i still get the prompt asking me if i want to download the aspx-file. The second prompt doesn´t not appear anymore since i´ve switch the appropriate check box. But this don´t work
for the prompt with the aspx-file...and i dont know why... Thank you very much for your help,
You can fix the .aspx filename extension and change it to a .PDF extension by having the client browser ask for the file with an added path at the end. For example, rather than ask for: http://myserver/generatepdf.aspx ask for: http://myserver/generatepdf.aspx/yourpdf.pdf
ASP.NET will still run your ASP.NET page, but the client browser thinks it's getting a PDF file, and will prompt the user to save it with "yourpdf.pdf" being the suggested filename. From your app, you can even find out what path was added to the end of your
.aspx file by looking at Request.PathInfo. Hope this helps, Andrew
On a related note, has anyone experienced problems with cr pdf exports on machines with adobe 6 and ie 6? For me it always says "done" in the browser and never loads the pdf. It works if I disable viewing pdfs in the browser window from within adobe options.
This is just a general comment since i've used Crystal off and on since 6.0 days. I try to keep my apps as simple as possible. I avoid using the Crystal Viewer if at all possible from now on. I'm assuming this is still an ActiveX control a user needs to download?
Settings on a client browser always tends to muck things up with ActiveX controls. With Crystal .NET, their PDF generation capabilities seems really good. Ok, granted, some of you above are having problems with the export but a PDF file is way better than
the Crystal viewer. Why not have the server generate the PDF and throw that to the user? I'm doing this right now in my apps and it works great. All a user needs is the free Reader....and saves me from having to trouble-shoot exports and activex problems on
the clients. And one more thing, I would not use Crystal for simple reports that you can produce in HTML. I only use Crystal when users absolutely require the printed form to look really spiffy. Crystal Reports is a maintenance nightmare IMHO and will avoid
whereever possible. ;-). LH
The cr that comes with .net does not have any viewer at all as far as I can tell, and only renders in html. This makes the idea of using cr pretty ridiculous, but fortunately you can export to pdf. Truth be told, my problems are with asp and not asp.net in
regards to adobe 6.0 and ie 6.0 but I figured it had something to do with ie and adobe and not crystal reports, since the pdfs open just fine when you disable browser integration. In ASP I just manipulate the report object's exportoptions and tell it to export
to pdf. I then call a vb object which just reads the binary file, and an asp will stream this to the browser. On the adobe support site, there are a lot of reports in the forums of problems with ie6 and adobe 6... somehow i doubt they are all doing crystal
report exports in asp.
Ganbhu
Member
420 Points
84 Posts
Re: open pdf output in acrobat reader
Aug 05, 2003 06:20 PM|LINK
---- Dr. SJ
KBrocksi_SEC
Contributor
3382 Points
627 Posts
Re: open pdf output in acrobat reader
Aug 06, 2003 10:29 AM|LINK
aarnott
Member
366 Points
74 Posts
Re: open pdf output in acrobat reader
Aug 06, 2003 05:23 PM|LINK
Visual Studio Project & Build
AnnieApple
Member
45 Points
9 Posts
still unresolved
Aug 07, 2003 10:45 AM|LINK
jasoncarr
Member
40 Points
8 Posts
Re: still unresolved
Aug 08, 2003 04:36 PM|LINK
Stephen Vaki...
Contributor
2540 Points
508 Posts
Re: still unresolved
Aug 08, 2003 08:32 PM|LINK
Ganbhu
Member
420 Points
84 Posts
Re: still unresolved
Aug 08, 2003 08:36 PM|LINK
---- Dr. SJ
jasoncarr
Member
40 Points
8 Posts
Re: still unresolved
Aug 08, 2003 08:37 PM|LINK
LordHits
Member
520 Points
104 Posts
Re: still unresolved
Aug 08, 2003 09:28 PM|LINK
Stephen Vaki...
Contributor
2540 Points
508 Posts
Re: still unresolved
Aug 08, 2003 10:19 PM|LINK