Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
i am making a document viewer. in that i want to open PPT document in iframe,so user can just see it.

i used this code
<iframe id="myframe" src=""></iframe>
code behind i used
in page load
myframe.Attributes["src"]=Request.QueryString["str"];
but its not displaying my ppt file

Please help me soon ..
Regards....
pradeep
Posted 18-Dec-12 17:36pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I'm not sure why you think it should. I am pretty sure there's no standard browser functionality to display PPT files.
  Permalink  
Comments
Member 9305115 at 19-Dec-12 7:08am
   
Thanks for Replying sir But Sujjest me To display ppt files what can i use instead of iframe
Christian Graus at 19-Dec-12 14:52pm
   
If you want to show them in a web page, you might decide to show them in an iframe ( which is just another browser instance on the same page ), but your browser needs to know how. So you'd need to buy a plugin and all your users would need to install it. Or you'd have to find a way to turn a ppt in to HTML, and serve the HTML to the browser, probably also via a commercial plugin

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Dnyaneshwar@Pune 1,300
1 Sergey Alexandrovich Kryukov 660
2 ravikhoda 300
3 OriginalGriff 299
4 Manas Bhardwaj 240
0 Sergey Alexandrovich Kryukov 11,194
1 OriginalGriff 6,867
2 Peter Leow 4,795
3 Abhinav S 3,838
4 Maciej Los 3,575


Advertise | Privacy | Mobile
Web02 | 2.8.140421.2 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid