https://issues.apache.org/ooo/show_bug.cgi?id=125309

Ariel Constenla-Haile <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Mail Merge using the API    |Mail Merge using the API
                   |ignores the Print Options   |ignores the printer name
                   |                            |set with
                   |                            |css.view.XPrintable or the
                   |                            |document's settings

--- Comment #8 from Ariel Constenla-Haile <[email protected]> ---
Found a workaround.

void SfxViewShell::ExecPrint( const uno::Sequence < beans::PropertyValue >&
rProps, sal_Bool bIsAPI, sal_Bool bIsDirect )
sfx2/source/view/viewprn.cxx

expects the printer name inside rProps, with the css.beans.PropertyValue being
named "PrinterName".

Workaround: add this property to the sequence of "PrintOptions" and set it at
the MailMerge service
http://www.openoffice.org/api/docs/common/ref/com/sun/star/text/MailMerge.html#PrintOptions

The API documentation for this property is incomplete:

"contains the properties that are defined in . 
This property is only evaluated for printer output."

It does not specify where the properties are defined.
These properties seem to be the same as defined in
http://www.openoffice.org/api/docs/common/ref/com/sun/star/view/PrintOptions.html

But there is no "PrinterName" property in css.view.PrintOptions

"PrinterName" is a property in
http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/Settings.html#PrinterName
But setting this property in the document's settings has no effect in mail
merging.

Setting the "Name" in
http://www.openoffice.org/api/docs/common/ref/com/sun/star/view/PrinterDescriptor.html#Name
has no effect in mail merging either.

-- 
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.

Reply via email to