Click here to Skip to main content
11,712,270 members (64,790 online)
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 CHill60 335
1 Sergey Alexandrovich Kryukov 244
2 OriginalGriff 230
3 Andy Lanng 160
4 Maciej Los 130
0 CHill60 335
1 Sergey Alexandrovich Kryukov 245
2 OriginalGriff 230
3 Andy Lanng 160
4 Maciej Los 130


Advertise | Privacy | Mobile
Web03 | 2.8.150819.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