Exportasfixedformat - selective pages only

V

Vagabond

I am using the Exportasfixedformat function to pdf a 43 page Word document.
However, I only want to pdf certain pages. I have created a macro that
produces the string used by cutepdf, ("1, 2, 5, 20, 25-30" for example), but
I am not sure if I can apply it, or something similar, to the
ExportAsFixedFormat function. The function does appear to have a parameter
to print only the 'selected' pages. How do I utilise this?

Can anyone help?
 
P

Pesach Shelnitz

Hi,

With the Exportasfixedformat function, you can set the Range parameter equal
to wdExportCurrentPage if you want to export only the current page, to
wdExportFromTo if you want to export a range of pages, or to
wdExportSelection if you want to export the selected portion of your
document. If you set the Range parameter equal to wdExportFromTo, you need to
also set the From parameter equal to the first page that you want to export
and the To parameter equal to the last page that you want to export.

These parameters thus give you some possibilities to export a portion of a
document, but not the more complete freedom of choice that you would like.
 
V

Vagabond

What flexibility do I have within the 'wdExportSelection' portion of the
function?
 
P

Pesach Shelnitz

Hi,

My understanding is that you can select any continuous portion of your
document.
 
V

Vagabond

So what is the best method of pdfing non-contiguous pages of a document?

Thanks for help so far.

V
 

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