saifullah khan

saifullah khan

  • NA
  • 335
  • 301.8k

Can not show the ppt image

Oct 25 2011 8:19 AM

hi
i have a web page and i want to upload ppt file on it,convert it into imgage in show it into an image tag. the ppt file has one slide. here is the code:

protected void Page_Load(object sender, EventArgs e)
    {
 

 
        ApplicationClass pptApplication = new ApplicationClass();
Presentation pptPresentation = pptApplication.Presentations.Open("saifullah.ppt", MsoTriState.msoFalse,MsoTriState.msoFalse, MsoTriState.msoFalse);
       
    pptPresentation.Slides[1].Export("slid.jpg", "jpg", 320, 240);
        Image1.ImageUrl = pptPresentation.ToString();
 
    }
 
when i debug the page it show the following output instead of image.
 
Submit Query
 
can somebody tells me where is the problem?


Answers (2)