J
Jason
Good day,
I am currently writing an application involving powerpoint, using c#, but if
anybody knows how to do this in VBA, thats cool too.
So, I have the code to change to the slide master view:
application.ActiveWindow.ViewType = PP.PpViewType.ppViewSlideMaster;
(application is a PowerPoint.Application)
then I would like to navigate to a particular slide in the view, however
when I try to do this, I get the following exception:
System.Runtime.InteropServices.COMException (0x80048240): View (unknown
member)
: Invalid request. This view type does not support this action.
at Microsoft.Office.Interop.PowerPoint.View.GotoSlide(Int32 Index)
at TestProject.Program.Main(String[] args) in C:\Documents and
Settings\jpelt
zer\My Documents\Visual Studio
2005\Purifile\PurifileAssistants\TestProject\Prog
ram.cs:line 33
the following is the line of code throwing the exception:
application.ActiveWindow.View.GotoSlide(2);
Is there a way to do this, I am baffled and would love to see an answer.
Thanks in advance,
Jason
I am currently writing an application involving powerpoint, using c#, but if
anybody knows how to do this in VBA, thats cool too.
So, I have the code to change to the slide master view:
application.ActiveWindow.ViewType = PP.PpViewType.ppViewSlideMaster;
(application is a PowerPoint.Application)
then I would like to navigate to a particular slide in the view, however
when I try to do this, I get the following exception:
System.Runtime.InteropServices.COMException (0x80048240): View (unknown
member)
: Invalid request. This view type does not support this action.
at Microsoft.Office.Interop.PowerPoint.View.GotoSlide(Int32 Index)
at TestProject.Program.Main(String[] args) in C:\Documents and
Settings\jpelt
zer\My Documents\Visual Studio
2005\Purifile\PurifileAssistants\TestProject\Prog
ram.cs:line 33
the following is the line of code throwing the exception:
application.ActiveWindow.View.GotoSlide(2);
Is there a way to do this, I am baffled and would love to see an answer.
Thanks in advance,
Jason