2002 and automation doubt

  • Thread starter Thread starter zidansoft
  • Start date Start date
Z

zidansoft

In my program I use powerpoint objects like
presentation,slides,pagesetup etc..working fine in 2000,2003,2007
but in 2002 version always hang ,i take object like this
1 ApplicationObject
2 ActivePresentation
3 SlideShowSettings
4 slides
5 PageSetup
6 shapes
7 shape
etc...
when i try to get pagesetup it hangs
if i comment that line ,it hang when take shapes(means next line)
if i call Activate function of ApplicationObject before each
call ,it is working fine..why this happening?
any alternative?
NB: i am using c++ ..
 
thanks for reply..i messed up with this issue,my addin creating
buttons on OnStartupComplete event,even though i am calling
activate,it is not working in some machine
i use savecopyas function,when i removed this code it starts working.
i guess problem might be from addin because, same exe
(automation)executing from another place,it is working fine.when i
start executing from addin(button click) it is hanging.
my doubt ..if i am doing anything wrong ,why this problem happening
only in 2002 version?
 
Back
Top