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.
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.