B
Brent
Problems streaming PDF back to Internet Explorer are well-described here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q305153
The solution, however, is elusive. I thought I was supplying all the
required info with my code*, but it still doesn't work. Any help would
be much appreciated!
--Brent
*Code Snippet
======================================
path = @"c:\pathIsHere\";
filename = "filename.pdf";
long StartPos = 0, FileSize;
FileInfo fi = new FileInfo(path + filename);
FileSize = fi.Length;
Response.ClearContent();
Response.ContentType = "Application/pdf";
Response.AddHeader("Content-Disposition","Filename="+filename);
Response.AddHeader("Content-Length",FileSize.ToString());
Response.WriteFile(path + filename, StartPos, FileSize);
Response.End();
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q305153
The solution, however, is elusive. I thought I was supplying all the
required info with my code*, but it still doesn't work. Any help would
be much appreciated!
--Brent
*Code Snippet
======================================
path = @"c:\pathIsHere\";
filename = "filename.pdf";
long StartPos = 0, FileSize;
FileInfo fi = new FileInfo(path + filename);
FileSize = fi.Length;
Response.ClearContent();
Response.ContentType = "Application/pdf";
Response.AddHeader("Content-Disposition","Filename="+filename);
Response.AddHeader("Content-Length",FileSize.ToString());
Response.WriteFile(path + filename, StartPos, FileSize);
Response.End();