fabian ,

matbe this comments on a resolved issue <https://issues.apache.org/ooo/show_bug.cgi?id=87495> can helps ?
Hi,

I am facing the problem that a MailMerge adds empty pages to a document. I know 
to avoid those pages the user can select to don't print empty pages in the 
printer settings.

I would like to automatically don't print those pages and tried to start the 
printer dialog myself with:

      PropertyValue[] propertyValueArray = new PropertyValue[1];
             propertyValueArray[0] = new PropertyValue();
             propertyValueArray[0].Name = "PrintEmptyPages";
             propertyValueArray[0].Value = new Boolean(false);

             executeDispatch(xDispatchProvider, ".uno:Print", "", 0, 
propertyValueArray);

Unfortunatly this has no influence on the settings in the print dialog. I have 
also tried to save and load the document with the property:

           property.Name = "IsSkipEmptyPages";
            property.Value = new Boolean(true);

but I guess this works only in case one exports a pdf.


Has anybody a solution in which the user does't have to care about empty pages 
himself?

best,
Fabian



Reply via email to