Groups > Asp .Net > HttpHandlers and HttpModules > Re: Office 2003 PPT files is not opening in the system having office 2007




Office 2003 PPT files is not opening in the system having
office 2007

Office 2003 PPT files is not opening in the system having office 2007
Wed, 12 Mar 2008 10:36:56 +000
Hi 

I Have used the Below Code to open the 2003  PPt  files in the system having
office 2007  but  when the file is opened  it shows the Junk Values instead of 
the actual values 


 HttpContext.current.Response.AddHeader("Content-Disposition",
"attachment; filename=" + objFileDTO.FileName)

HttpContext.current.Response.ContentType =
"application/vnd.ms-powerpoint"


HttpContext.current.Response.AddHeader("Content-Length",
objFileDTO.Filecontent.Length.ToString())
 HttpContext.current.Response.BinaryWrite(objFileDTO.Filecontent)
  

Here objFileDTO is the Class object which contains the data  

 

 

Can u Please  Help  me out in this case 

 

Thanks in Advance
Post Reply
Re: Office 2003 PPT files is not opening in the system having office 2007
Tue, 18 Mar 2008 08:17:16 +000
Hi, 

chandru_b2004:Here objFileDTO is the Class object which contains the data  

The data should be stream of the ppt file. Make sure the client recognize the
encoding of the ppt file.
Post Reply
about | contact