if(m_pptapp.m_lpDispatch == NULL)
{
if(!m_pptapp.CreateDispatch("Powerpoint.Application"))
{
AfxMessageBox("Could not create Powerpoint object.");
return;
}
}
m_pptapp.SetVisible((long)1);
Presentations presentations;
SlideShowSettings slideshow;
presentations = m_pptapp.GetPresentations();
m_pptpresentation = presentations.Open("R:\\Internals.ppt",(long)0,
(long)-1,(long)1 );
slideshow = m_pptpresentation.GetSlideShowSettings();
slideshow.SetShowType(1);
slideshow.Run();
but it is not helpful for me
Could some flash some light on how to show powerpoint slides inside
dialog, Dialog should act as a container for powerpoint slides.
Thanks,
Ajay
http://support.microsoft.com/kb/q180616/
http://support.microsoft.com/kb/237554
AliR.
"Roland" <ajay.s...@gmail.com> wrote in message
news:1175859167.5...@w1g2000hsg.googlegroups.com...
-Ajay
On Apr 6, 8:50 pm, "AliR \(VC++ MVP\)" <A...@online.nospam> wrote:
> This might be a good start
>
> http://support.microsoft.com/kb/q180616/http://support.microsoft.com/kb/237554
>
> AliR.
>
> "Roland" <ajay.sonaw...@gmail.com> wrote in message
>
> news:1175859167.5...@w1g2000hsg.googlegroups.com...
>
>
>
> > Hi All,
> > I am trying to display powerpoint slides in a dialog create by my
> > application.
>
> > if(m_pptapp.m_lpDispatch == NULL)
> > {
> > if(!m_pptapp.CreateDispatch("Powerpoint.Application"))
> > {
> > AfxMessageBox("Could not create Powerpoint object.");
> > return;
> > }
> > }
>
> > m_pptapp.SetVisible((long)1);
>
> > Presentations presentations;
> > SlideShowSettings slideshow;
>
> > presentations = m_pptapp.GetPresentations();
> > m_pptpresentation = presentations.Open("R:\\Internals.ppt",(long)0,
> > (long)-1,(long)1 );
>
> > slideshow = m_pptpresentation.GetSlideShowSettings();
> > slideshow.SetShowType(1);
> > slideshow.Run();
>
> > but it is not helpful for me
>
> > Could some flash some light on how to show powerpoint slides inside
> > dialog, Dialog should act as a container for powerpoint slides.
>
> > Thanks,
> >Ajay- Hide quoted text -
>
> - Show quoted text -
The articles that I pointed you to tells you how to embed the presentation
into your window using Automation. That means that it shows up in your
application.
what do YOU mean by attach?
AliR.
"Roland" <ajay.s...@gmail.com> wrote in message
news:1176092958.6...@y66g2000hsf.googlegroups.com...
You will need to use Automation and use PP's object model to do this.
All this involves using COM on your side(client). Its relatively
simple to do this in .Net as you avoid COM altogether.
---
Ajay
Thanks,
Ajay
Yes, you should be able to do this as well. Sample is using the PP's
object model and you can do the same in MF/C++. As I had mentioned
earlier, its much easier to do this in VB or .Net.
---
Ajay