To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=95373
Issue #|95373
Summary|Printing via UNO/Java "number of copies" is defect
Component|Word processor
Version|OOO300m9
Platform|PC
URL|
OS/Version|Linux
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|code
Assigned to|mru
Reported by|bdonauba
------- Additional comments from [EMAIL PROTECTED] Thu Oct 23 13:12:07 +0000
2008 -------
Hello!
I am using OO via UNO and Java. With new versions of oo I have a printing
problem. If the number of copies is 1 everthing is fine. If the number of
copies is 2, 3, ... I get 4, 9, ... copies and between 2, 3, ... blank pages.
Here is my code:
startOO();
Object desktop=xRemoteServiceManager.createInstanceWithContext(
"com.sun.star.frame.Desktop",
xRemoteContext
);
XDesktop xDesktop=(XDesktop)UnoRuntime.queryInterface(
XDesktop.class,
desktop
);
//BD OO Dokument Objekt erzeugen
XComponentLoader xComponentLoader=(XComponentLoader)UnoRuntime.queryInterface(
XComponentLoader.class,
desktop
);
PropertyValue[] probs=new PropertyValue[0];
XComponent ooDoc=null;
ooDoc=xComponentLoader.loadComponentFromURL(
"file:///tmp/test.odt",
"_blank",
0,
probs
);
//BD Druckerbeschreibung
PropertyValue[] printerDesc=new PropertyValue[1];
//BD Name
printerDesc[0]= new PropertyValue();
printerDesc[0].Name="Name";
printerDesc[0].Value="hpjd04";
//BD Druckoptionen
PropertyValue[] printOpts=new PropertyValue[1];
//BD Anzahl
printOpts[0]=new PropertyValue();
printOpts[0].Name="CopyCount";
printOpts[0].Value=3;
XPrintable xPrintable=(XPrintable)UnoRuntime.queryInterface(
XPrintable.class,
ooDoc
);
xPrintable.setPrinter(printerDesc);
xPrintable.print(printOpts);
close();
I will attach the complete example later!
Regards,
Bernhard Donaubauer
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]