Issue 125693 - printing with script and mailmerge does not recognize settings of PrintEmptyPages or EmptyPages by script.
Summary: printing with script and mailmerge does not recognize settings of PrintEmptyP...
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: printing (show other issues)
Version: 4.1.0
Hardware: PC Windows 7
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-30 07:47 UTC by martin.overmeyer
Modified: 2014-10-02 17:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
sample for changing the settings (32.98 KB, application/zip)
2014-09-30 07:47 UTC, martin.overmeyer
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description martin.overmeyer 2014-09-30 07:47:17 UTC
Created attachment 83999 [details]
sample for changing the settings

Changing the printer between duplex and not duplex should insert/remove automatic blank pages. Writer does not regcognize the settings via script of 
- document.settings.PrintEmptyPages
- configuration.ConfigurationUpdateAccess.EmptyPages (Printer)
- Mailmerge.PrintOptions.DuplexMode [-> Exception]

This only works by manual changing the checkbox in the 
- settings - writer - print or 
- print - OpenOffice Writer
Comment 1 Oliver Brinzing 2014-10-02 17:39:30 UTC
i think, i can confirm this problem:

starting mailmerge via file -> print will work as described above

but if one tries to set print options with "oMailMerge.PrintOptions = printProps()"
an exception is thrown:
Type com.sun.star.lang.IllegalArgumentException
Message: Property Type mismatch or property not set: PrintOptions."

see http://de.openoffice.info/viewtopic.php?f=18&t=52104 for example