To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=53558
Issue #:|53558
Summary:|full-column print range import from 1.1.x
Component:|Spreadsheet
Version:|680m123
Platform:|All
URL:|
OS/Version:|All
Status:|NEW
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|PATCH
Priority:|P3
Subcomponent:|code
Assigned to:|spreadsheet
Reported by:|mmeeks
------- Additional comments from [EMAIL PROTECTED] Fri Aug 19 13:20:46 -0700
2005 -------
So - the attached file shows a nasty with print ranges - whereby if you print it
- you get hundreds of pages. This is because the .sxc file has:
<table:table table:name="Sheet1" table:style-name="ta1"
table:print-ranges="Sheet1.A1:Sheet1.A32000">
where an equivalent .ods has:
<table:table table:name="Sheet1" table:style-name="ta1"
table:print-ranges="Sheet1.A1:Sheet1.A65536">
ie. the size of the sheet is an implicit part of this - ie. changing that breaks
this. Of course - due to the highly 31337 design of the oasis importer it's not
possible^Weasy to detect & fix this at import time.
Instead this patch slightly improves the situation (for me) - not obvious if
it's correct / free of unpleasant side-effects. This yields only 2 sheets 1 of
them ~blank for me for the test file. The approach is to clobber
ScTable::UpdatePageBreaks:
--- sc/source/core/data/table5.cxx 29 Mar 2005 13:31:48 -0000 1.9
+++ sc/source/core/data/table5.cxx 19 Aug 2005 20:30:44 -0000
@@ -142,6 +142,13 @@ void ScTable::UpdatePageBreaks( const Sc
} // sonst alles
}
+ // Crop to real print area
+ SCCOL nPAEndCol;
+ SCROW nPAEndRow;
+ GetPrintArea (nPAEndCol, nPAEndRow, TRUE);
+ nEndRow = Min( nPAEndRow, nEndRow );
+ nEndCol = Min( nPAEndCol, nEndCol );
+
// bSkipBreaks holen:
BOOL bSkipBreaks = FALSE;
advice appreciated.
---------------------------------------------------------------------
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]