Publisher ActiveDocument PrintOut Signature Not Correct

N

NickP

Hi there,

I am trying to print an ActiveDocument via COM automation using VC++,
according to the following URL

http://msdn2.microsoft.com/en-us/library/aa436842.aspx

The parameters of the PrintOutEx method are all optional. Unfortunately
they aren't for me, the function header is as follows in "mspub.tlh"

HRESULT PrintOutEx (
long From,
long To,
_bstr_t PrintToFile,
long Copies,
VARIANT_BOOL Collate,
enum PbPrintStyle PrintStyle );

I basically just want to print the entire document, but if I attempt to
print and pass an empty string to the PrintToFile parameter, the call
crashes.

Any ideas on how to fix this one?

TIA.

Nick.
 
N

NickP

Hi there,

I managed to get this printing anyway so it is no longer an issue.
Thanks anyway.

Nick.
 

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