J
Jin
Dir Sir,
Recently I have developed a ' WelcomeBoard ' system
with VB6.0 .This system is mainly to display some
information on Plasma in the lobby of a building. It has
to automate Powerpoint2000 and instantly open and close
pps file and ppt file with macro with powerpoint object.
It is required to run 24hours a day.
This system could smoothly run usually. But it could
get into dead for about one time in every two weeks.
Followings are part of codes:
dim PPT as new powerpoint.application
set PPT=createobject("powerpoint.application")
...
PPT.Presentations.Open ppsfile ' Here open a
pps file
...
if PPT.Presentations.count>0 then
PPT.Presentations.item(1).close
end if
PPT.Presentations.Open ppsfile
...
if PPT.Presentations.count>0 then
PPT.Presentations.item(1).close
end if
...
It seems that this system is stoped at sentence 'if
PPT.Presentations.Count>0 then' or 'PPT.Presentations.item
(1).close'.
Maybe the PPT viable has lost the reference to
Powerpoint object. But I dont know the true cause.
Please help me!
Thank you! and Happy new year!
Recently I have developed a ' WelcomeBoard ' system
with VB6.0 .This system is mainly to display some
information on Plasma in the lobby of a building. It has
to automate Powerpoint2000 and instantly open and close
pps file and ppt file with macro with powerpoint object.
It is required to run 24hours a day.
This system could smoothly run usually. But it could
get into dead for about one time in every two weeks.
Followings are part of codes:
dim PPT as new powerpoint.application
set PPT=createobject("powerpoint.application")
...
PPT.Presentations.Open ppsfile ' Here open a
pps file
...
if PPT.Presentations.count>0 then
PPT.Presentations.item(1).close
end if
PPT.Presentations.Open ppsfile
...
if PPT.Presentations.count>0 then
PPT.Presentations.item(1).close
end if
...
It seems that this system is stoped at sentence 'if
PPT.Presentations.Count>0 then' or 'PPT.Presentations.item
(1).close'.
Maybe the PPT viable has lost the reference to
Powerpoint object. But I dont know the true cause.
Please help me!
Thank you! and Happy new year!