Printing through the Power Point Object Library

  • Thread starter Steve Rindsberg, PPTMVP
  • Start date
S

Steve Rindsberg, PPTMVP

My target is quite clear:
1) Open a power point presentation.
2) Print it to a file
3) Copy the file to a new location

Pretty simple, huh? Well, I found it to be a bit tricky.

I am able to automatically do the workflow mentioned above but something is
missing...
In the MS-Word Object Library, the ApplicationClass has a property which is
something like BackgroundPrintingStatus... when that becomes -1 I know that
the printing actions is done. I couldn't find this or a familiar property in
the power point library.

My question is - how can I wait until power point finishes to print the
presentation and only then go on with my code?

If you have control over the PC, turn b/g printing off.

Otherwise, you could force background printing off in PPT (you'd have to do
it with SendKeys, as there's no interface for it).

Or having started the print run, monitor the size of the output file you've
nominated. When it stops changing size for nn seconds, you can figure the
print run is done.
 
S

Shay Friedman

Hi,

My target is quite clear:
1) Open a power point presentation.
2) Print it to a file
3) Copy the file to a new location

Pretty simple, huh? Well, I found it to be a bit tricky.

I am able to automatically do the workflow mentioned above but something is
missing...
In the MS-Word Object Library, the ApplicationClass has a property which is
something like BackgroundPrintingStatus... when that becomes -1 I know that
the printing actions is done. I couldn't find this or a familiar property in
the power point library.

My question is - how can I wait until power point finishes to print the
presentation and only then go on with my code?

Thanks,
Shay
 
S

Shyam Pillai

Shay,
This is an example to turn of background printing and print a presentation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top