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 18: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 Zoltán Zörgő 330
1 Peter Leow 120
2 BillWoodruff 120
3 CHill60 110
4 bling 80
0 Sergey Alexandrovich Kryukov 9,423
1 OriginalGriff 6,891
2 Peter Leow 4,637
3 Zoltán Zörgő 4,304
4 CHill60 2,932


Advertise | Privacy | Mobile
Web03 | 2.8.150129.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100