Error while adding a powerpoint presentation to ppt object 
Author Message
 Error while adding a powerpoint presentation to ppt object

I'm creating a Windows NT (server) service that creates a powerpoint
presentation in Visual Basic. I'm using the powerpoint object library
to do this. After declaring an powerpoint.application object I'm using
the following statement

PresNew = PPTapplication.Presentations.Add(msofalse)

For some reason this doesn't always work, but problems only occur at
run-time, NEVER when I step through the code with the de{*filter*}. I found
that a workaround for the problem is to write a loop that tries to
execute the above statement for a couple of times (less than ten) or
until the statement is succesful. This worked well on my development

Now, I'm moving on to a test server on which nothing else runs. I
installed the NT service that executes the code in the dll, but for
some reason, even a loop of 10 million times is not enough to
succesfully execute the statement in question on the server. I also
tried the kernel32 "sleep" function, pausing execution for 100 seconds,
but unfortunately results!

Does anyone know this problem and a solution for it?


Sent via http://www.*-*-*.com/
Before you buy.

Tue, 03 Dec 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Error adding a powerpoint presentation to a ppt object

2. Object reference to Powerpoint presentation

3. PowerPoint presentation as object

4. Opening a presentation object in MS powerpoint

5. opening a presentation object in powerpoint

6. Error trying to set relative path on linked powerpoint presentation

7. identifying the ppt version which created a presentation

8. Open PPT Presentation

9. View a PPT presentation in a visual basic application window

10. View a PPT presentation in a visual basic application window

11. Adding OLE Object to PPT Slide from password-protected Workbook

12. Word 2000 Adding OLE PPT Objects


Powered by phpBB® Forum Software