Click here to Skip to main content
15,888,816 members
Home / Discussions / C#
   

C#

 
AnswerRe: Android Day of Week Calculator Pin
Eddy Vluggen9-Feb-17 10:50
professionalEddy Vluggen9-Feb-17 10:50 
AnswerRe: Android Day of Week Calculator Pin
Richard MacCutchan9-Feb-17 21:02
mveRichard MacCutchan9-Feb-17 21:02 
AnswerRe: Android Day of Week Calculator Pin
Gerry Schmitz10-Feb-17 12:55
mveGerry Schmitz10-Feb-17 12:55 
QuestionChange the height PopupMenu ? Pin
Member 24584678-Feb-17 17:58
Member 24584678-Feb-17 17:58 
AnswerRe: Change the height PopupMenu ? Pin
Mycroft Holmes8-Feb-17 20:15
professionalMycroft Holmes8-Feb-17 20:15 
QuestionWCF Transport Security And SSL Pin
Liagapi8-Feb-17 17:34
Liagapi8-Feb-17 17:34 
AnswerRe: WCF Transport Security And SSL Pin
Richard Deeming8-Feb-17 22:06
mveRichard Deeming8-Feb-17 22:06 
QuestionC# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
svpmirashi8-Feb-17 1:51
svpmirashi8-Feb-17 1:51 
Hello,

Before coming to the problem statement, let me brief on the task I am working on.
I want to:
1. Add slide to a presentation
2. Insert video from external file to the slide, and then
3. Set PLAYBACK options of a video like Play Full Screen & Start Automatically.

So that, during the slide show, the video will be played fully before continuing to the next slide.

I could do tasks in point 1 & 2, but am stuck in point 3. I have referred MSDN documentation but too less information to accomplish my need.

Sharing snippet of code with appropriate comments:

C#
using PowerPoint = Microsoft.Office.Interop.PowerPoint;
.
.
.
PowerPoint.Application pptApp;
PowerPoint.Presentations oPresentations;
PowerPoint.Presentation oPresentation;
string sPath = @"C:\sample.avi"; // Dummy path for this example

pptApp = new PowerPoint.Application();
pptApp.Visible = MCore.MsoTriState.msoTrue;
oPresentations = pptApp.Presentations;

oPresentation = oPresentations.Add(MCore.MsoTriState.msoTrue); 

PowerPoint.Slide slide = oPresentation.Slides.AddSlide(oPresentation.Slides.Count, oPresentation.Slides[oPresentation.Slides.Count].CustomLayout); // 1. Add slide - works well

PowerPoint.Shape video = slide.Shapes.AddMediaObject2(sPath, MCore.MsoTriState.msoFalse, MCore.MsoTriState.msoTrue, 0f, 0f, -1f, -1f);  // 2. Add video from external file - works well

/* 3. Trying to set Start Automatically for video - but not producing expected result*/
video.AnimationSettings.PlaySettings.PlayOnEntry = MCore.MsoTriState.msoTrue; 

/* Clueless for how to set a video to Full Screen while slide show is running */


Kindly help me with this. Let me know if you need more information.
Thanks in advance.

-Shree
AnswerRe: C# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
Gerry Schmitz9-Feb-17 7:53
mveGerry Schmitz9-Feb-17 7:53 
GeneralRe: C# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
svpmirashi9-Feb-17 20:48
svpmirashi9-Feb-17 20:48 
GeneralRe: C# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
Gerry Schmitz9-Feb-17 21:17
mveGerry Schmitz9-Feb-17 21:17 
GeneralRe: C# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
svpmirashi9-Feb-17 20:50
svpmirashi9-Feb-17 20:50 
GeneralRe: C# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
Gerry Schmitz9-Feb-17 21:20
mveGerry Schmitz9-Feb-17 21:20 
Question(C#) How to make this kind of design and functions Pin
JeezyWonder7-Feb-17 19:27
JeezyWonder7-Feb-17 19:27 
AnswerRe: (C#) How to make this kind of design and functions Pin
Richard MacCutchan7-Feb-17 21:44
mveRichard MacCutchan7-Feb-17 21:44 
QuestionHow do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
Member 102589347-Feb-17 3:10
Member 102589347-Feb-17 3:10 
QuestionRe: How do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
Richard MacCutchan7-Feb-17 3:15
mveRichard MacCutchan7-Feb-17 3:15 
AnswerRe: How do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
Eddy Vluggen7-Feb-17 3:32
professionalEddy Vluggen7-Feb-17 3:32 
AnswerRe: How do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
Jochen Arndt7-Feb-17 3:56
professionalJochen Arndt7-Feb-17 3:56 
AnswerRe: How do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
Nathan Minier7-Feb-17 5:54
professionalNathan Minier7-Feb-17 5:54 
AnswerRe: How do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
CHill607-Feb-17 6:44
mveCHill607-Feb-17 6:44 
QuestionLoad Assembly At Run Time if Implements Interface Pin
Kevin Marois6-Feb-17 12:41
professionalKevin Marois6-Feb-17 12:41 
AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Richard Andrew x646-Feb-17 12:55
professionalRichard Andrew x646-Feb-17 12:55 
GeneralRe: Load Assembly At Run Time if Implements Interface Pin
Kevin Marois6-Feb-17 13:00
professionalKevin Marois6-Feb-17 13:00 
AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Garth J Lancaster6-Feb-17 14:05
professionalGarth J Lancaster6-Feb-17 14:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.