redheadpgr
Programmer
I'm using the following VB code to view a pdf file in a browser:
The problem is that this will show fine when I'm running this on my PC. When I put this on the web server, however, it doesn't show the PDF file. Instead, it shows the Crystal Report (in a Crystal Report Viewer control), from which the PDF file was exported.
I've used the folder to which it is exporting many times. Do I need to make sure that Acrobat Reader is installed on the web server?
Any help would be appreciated. Thanks.
Code:
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile "c:\inetpub\[URL unfurl="true"]wwwroot\reports\myreport.pdf")[/URL]
Response.Flush()
Response.Close()
The problem is that this will show fine when I'm running this on my PC. When I put this on the web server, however, it doesn't show the PDF file. Instead, it shows the Crystal Report (in a Crystal Report Viewer control), from which the PDF file was exported.
I've used the folder to which it is exporting many times. Do I need to make sure that Acrobat Reader is installed on the web server?
Any help would be appreciated. Thanks.