473,464 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to show slide show Powrpoint example.pptx on asp.net in C#?

1 New Member
Expand|Select|Wrap|Line Numbers
  1. Microsoft.Office.Interop.PowerPoint.Application oPPT;
  2.             Microsoft.Office.Interop.PowerPoint.Presentations objPresSet;
  3.             Microsoft.Office.Interop.PowerPoint.Presentation objPres;
  4.  
  5.             //the location of your powerpoint presentation
  6.  
  7.             //string strPres = @"filepath";
  8.             tablo = AraBaglantı.sorgula("select DersKonumu from Ders where DersID=" + DropDersAdi.SelectedItem.Value + "");
  9.  
  10.             string strPres = Server.MapPath("~/DOSYA/" + tablo.Rows[0][0].ToString());
  11.  
  12.             //Create an instance of PowerPoint.
  13.             oPPT = ApplicationClass();
  14.  
  15.             // Show PowerPoint to the user.
  16.             oPPT.Visible = Microsoft.Office.Core.MsoTriState.msoTrue;
  17.  
  18.             objPresSet = oPPT.Presentations;
  19.  
  20.             //open the presentation
  21.             objPres = objPresSet.Open(strPres, Microsoft.Office.Core.MsoTriState.msoFalse,
  22.             MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoTrue);
  23.  
  24.             objPres.SlideShowSettings.Run();
Mar 11 '16 #1
0 1315

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Al Davis | last post by:
Note: I tried cross-posting this message to several newsgoups, including comp.lang.perl.misc, c.l.p.moderated, comp.infosystems.www.authoring.cgi, comp.lang.javascript and comp.lang.php. Nothing...
2
by: Mike | last post by:
My code is shown below, I can select * from employees but I cannot get any data back from SHOW FIELDS, I do not receive an error, in fact, something is returned but I'm not sure what. I can execute...
7
by: 7mary4 | last post by:
I am working on a kiosk for a museum, we will be using firefox as the browser, with windows, and a touch screen. We'd like to create a slide show of a small portfolio when the visitors click...
7
by: Rudy | last post by:
Hello All! After working in the television industry, moving to a developing career has been interesting to say the least. 3 years of developing with books, and the help of you fine folks on this...
1
by: Rudy | last post by:
Hello all! Can somebody give me an example of pulling images from SQL into a slide show. I know how to pull into the repeater and stuff. So if I had Container.DataItem ("filePath"), where...
11
by: Adam Sandler | last post by:
Hello, I'd like to do a slide show in VB. I have one in JavaScript but the one in JavaScript always counts on the images to be in a given directory. This doesn't have to be fancy... something...
7
subashini Thiyagarajan
by: subashini Thiyagarajan | last post by:
Hi friends, How do i include photo gallery in my swf file.i wanted to allocate small space for photo gallery in the same place if i press next or like a slide show i want to make all photo's ...
1
by: Ramaboominathan | last post by:
How to view Powrpoint ppt file in show in slide show Method in asp.net C#?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.