SetPrintBackground throws exception on Office 2007

D

Dinesh Ahuja

I am facing a problem with office word automation API SetPrintbackground.I am
trying to print a word document through word automation and trying to call
this API as SetPrintBackground(FALSE).I am executing word application in
Background.Its not visible to the user.
I am facing following two problems
1. This API is throwing an exception incase of WinXP + Office 2007 and
Windows VISTA + Office 2007.This behavior is inconsistent. All other
combinations are working fine.
2. This API is used for Displaying the Printing dialog box while printing is
in Progress.
In all other cases where no exception is thrown, no matter whatever value is
set using this API "'TRUE" or "False", print dialog box is displayed while
printing is in progress.

Anyone can please tell me if they have faced any such problem and what is
the solution for this.

Thanks in Advance
Regards
Dinesh
 

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