MS/Word, PDF ?

  • Thread starter Thread starter WJ
  • Start date Start date
W

WJ

I have documents written in MS/Word (Doc), Ascii Text, and Adobe Acrobat
(PDF) formats. They are of type "Image" stored in SQL server. How do I
display these documents to the Asp.Net page ? I retrieve the documents in
byte array using c# via Sql Procedure.

Thanks,

John Webbs
 
Create an empty .aspx page. Then, in Page_Load() you could write something
like:

Response.Clear();
Response.ContentType="application/word";
Response.OutputStream.Write(...)

HTH,
Axel Dahmen
www.sportbootcharter.com
 
Axel Dahmen said:
Create an empty .aspx page. Then, in Page_Load() you could write something
like:

Response.Clear();
Response.ContentType="application/word";
Response.OutputStream.Write(...)
Excellent. Thank you!

John
 
Back
Top