> > Hei.
> >
[quoted text clipped - 24 lines]
> PPTools: www.pptools.com
> ================================================
> I get an exception when the saveAs method written earlier is called:
> - the exception is a system.runtime.interopServices.COMException
[quoted text clipped - 3 lines]
> I tried your suggestion (theActivePpt.Save) - then I got an exception as
> well :(
FWIW, this in VBA works fine:
Sub TestSave()
ActivePresentation.SaveAs ("q:\support\junk.ppt")
End Sub
and would work equally well as:
oPresentationObject.SaveAs ....
Could it be that theActivePpt holds a reference to something other than a
Presentation object?
> Neoret
>
[quoted text clipped - 26 lines]
> > PPTools: www.pptools.com
> > ================================================
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
neoret - 02 Aug 2006 12:04 GMT
Thanks for helping me getting closer to success!
Could this have anything to do with late bounding?
I found out in debugging that when I run this method from word the
applicationobject = Microsoft.office.interop.word.applicationClass.
When I run it in powerpoint the applicationobject = System_Comobject...
This is probably the problem - but do you know why this happens?
> > I get an exception when the saveAs method written earlier is called:
> > - the exception is a system.runtime.interopServices.COMException
[quoted text clipped - 53 lines]
> PPTools: www.pptools.com
> ================================================
Steve Rindsberg - 02 Aug 2006 17:13 GMT
> Thanks for helping me getting closer to success!
>
> Could this have anything to do with late bounding?
It could, I suspect. Since I don't use C# or .Net I can't easily interpret the results
you're seeing, but if you were doing the same thing in VB/VBA you'd need to declare the
presentation object as a generic object rather than as a presentation.
> I found out in debugging that when I run this method from word the
> applicationobject = Microsoft.office.interop.word.applicationClass.
[quoted text clipped - 60 lines]
> > PPTools: www.pptools.com
> > ================================================
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================