To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81698
User tbe changed the following:
What |Old value |New value
================================================================================
Assigned to|tbe |lla
--------------------------------------------------------------------------------
------- Additional comments from [EMAIL PROTECTED] Thu Oct 25 08:37:10 +0000
2007 -------
The reason for this issue is that in SRC680 m220 the default
value for the print option 'Print only selected sheets'
(property AllSheets) has been changed. By default this option
is now enabled. As a consequence, if you open a document as
hidden, then the corresponding view is not fully initialized
and especially no sheet is selected. Therefore the print output
is empty.
I propose to fix this issue in the following way. By UNO API
you can set the 'PrintAllSheets' property of the service
'com.sun.star.sheet.GlobalSheetSettings', so that all sheets
of the document are printed. Please see the code below:
Object aSettings = m_xXMultiServiceFactory.createInstance(
"com.sun.star.sheet.GlobalSheetSettings" );
XPropertySet xPropSet = (XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, aSettings );
xPropSet.setPropertyValue( "PrintAllSheets", new Boolean( true ) );
In addition I came across another small problem. You can
improve your test by not only checking for the existence of the
.prn file, but also by checking the file size:
assure( "Result of print is empty.", aPrintFile.length() > 0 );
---------------------------------------------------------------------
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]