how to programmatically convert an onenote page to an xps document

X

xiao

Hi All,

I know we can use ApplicationClass.Publish to convert an onenote page to an
XPS document. However, I don't know how to set the fourth parameter in the
method.

HRESULT Publish(
[in]BSTR bstrHierarchyID,
[in]BSTR bstrTargetFilePath);

[in,defaultvalue(pfOneNote)]PublishFormat pfPublishFormat,
[in,defaultvalue(0)]BSTR bstrCLSIDofExporter);

In other words, what's the value of "bstrCLSIDofExporter" if the output file
is XPS?

Thx,
 
I

Ilya Koulchin

xiao said:
I know we can use ApplicationClass.Publish to convert an onenote page to an
XPS document. However, I don't know how to set the fourth parameter in the
method.

HRESULT Publish(
[in]BSTR bstrHierarchyID,
[in]BSTR bstrTargetFilePath);

[in,defaultvalue(pfOneNote)]PublishFormat pfPublishFormat,
[in,defaultvalue(0)]BSTR bstrCLSIDofExporter);

In other words, what's the value of "bstrCLSIDofExporter" if the output file
is XPS?

If you're exporting to XPS the last parameter should be NULL or the
empty string. It is only used if you wish to implement a custom PDF
exporter.

Ilya
 

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