Issue 118678 - Printing xls from a invisible Window
Summary: Printing xls from a invisible Window
Status: UNCONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 15:16 UTC by michael.ruttka
Modified: 2017-05-20 11:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description michael.ruttka 2011-12-14 15:16:59 UTC
If I open a xls file with the following options:

PropertyValue[] propertyValues = new PropertyValue[1];
propertyValues[0] = new PropertyValue();
propertyValues[0].Name = "Hidden";
propertyValues[0].Value = true;
xComponent = xComponentLoader.loadComponentFromURL(getUrl(xlsFile), "_blank", 0, propertyValues);

And print it after that by the following code:

XPrintable xPrint = (XPrintable) UnoRuntime.queryInterface(XPrintable.class, xComponent);
PropertyValue[] printProperties = new PropertyValue[1];

printProperties[0] = new PropertyValue();
printProperties[0].Name = "Wait";
printProperties[0].Value = true;
xPrint.print(printProperties);

The print wont happen! Somehow it isnt possible to print xls-Files from an invisible Window. Ods, odt and doc are working.
I can just print xls, when the window is visible: (before the print

XModel2 model = (XModel2) UnoRuntime.queryInterface(XModel2.class, xComponent);
model.getCurrentController().getFrame().getContainerWindow().setVisible(true);
model.getCurrentController().getFrame().getContainerWindow().setVisible(true);
Comment 1 Marcus 2017-05-20 11:28:07 UTC
Reset assigne to the default "issues@openoffice.apache.org".