Bug 99099 - Addition of new rows in Spreadsheet in not inheriting previous row attributes in .xlsx but inheriting in .xls
Summary: Addition of new rows in Spreadsheet in not inheriting previous row attributes...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.0.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks:
 
Reported: 2016-04-05 14:15 UTC by jvchbabu
Modified: 2017-10-30 10:51 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Conditional formatting, xls and xlsx files (64.83 KB, application/zip)
2016-04-05 14:19 UTC, jvchbabu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jvchbabu 2016-04-05 14:15:49 UTC
We use LibreOffice to convert .xls documents to .xls and xlsx documents.
 We use MS Excel 97 filter to produce  xls  documents and Calc MS Excel 2007 XML to produce .xlsx documents.

 We use conditional formatting for one column to apply background color for the cell.

It  works fine for .xls with MS Excel 97 filter but fails for .xlsx with Calc MS Excel 2007 XML  filter.It outputs the cells without applying conditional formatting for .xlsx.

The code we use for additions of new rows for both .xls and .xlsx is same.
 So the issue is with Calc MS Excel 2007 XML  filter only as MS Excel 97 filter is working absolutely fine.

Code Snippet used for generating new rows:
-------------------------------------------
public void insertCells(XSpreadsheet xSheet, int left, int top, int right, int bottom, int num, CellInsertMode nMode) {
		try {
			XCellRangeMovement xMovement = (XCellRangeMovement) UnoRuntime.queryInterface(XCellRangeMovement.class,
					xSheet);
			if (num <= 0) {
				// don't do anything
				return;
			}

			if (nMode == CellInsertMode.DOWN || nMode == CellInsertMode.ROWS) {
				// only expand row cells
				top = bottom + 1;
				bottom = top + num - 1;
			} else if (nMode == CellInsertMode.RIGHT || nMode == CellInsertMode.COLUMNS) {
				// only expand column cells
				left = right + 1;
				right = left + num - 1;
			}



CellRangeAddress addrRange = null;

			XCellRangeAddressable xAddr = (XCellRangeAddressable) UnoRuntime.queryInterface(
					XCellRangeAddressable.class, xSheet.getCellRangeByPosition(left, top, right, bottom));
			addrRange = xAddr.getRangeAddress();
			
xMovement.insertCells(addrRange, nMode);
 Please let us know  if more information is required  to reproduce the issue.
Comment 1 jvchbabu 2016-04-05 14:19:44 UTC
Created attachment 124089 [details]
Conditional formatting, xls and xlsx files
Comment 2 Buovjaga 2016-04-13 11:12:51 UTC
(In reply to jvchbabu from comment #1)
> Created attachment 124089 [details]
> Conditional formatting, xls and xlsx files

What should we do with these?
Please give steps.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the information.
Comment 3 jvchbabu 2016-04-14 05:36:52 UTC
The question here is when we try to add more rows using LibreOffice API. its not inheriting the attributes of original row in xlsx .Where as it inheriting  original row attributes such as conditional formatting in xls.
 Is this a bug  for xlsx file ?
Comment 4 jvchbabu 2016-05-11 04:56:05 UTC Comment hidden (off-topic)
Comment 5 jvchbabu 2016-08-08 09:34:24 UTC Comment hidden (no-value)
Comment 6 Aron Budea 2016-08-14 01:33:59 UTC
What Buovjaga meant is that you should provide a complete (and minimal) example someone can use to reproduce the issue you're talking about. Code snippets are not enough, give a complete source file, instructions how to compile and use it, and expected vs. actual results. Be as specific as you can.
Comment 7 jvchbabu 2016-09-20 10:08:41 UTC
Sure I will share the sample program as soon as possible.
Comment 8 jvchbabu 2017-03-20 15:13:16 UTC
We tested it in latest LibreOffice 5.2.3.3 with   and seems to be working in this version. We will confirm  the same soon.
Comment 9 QA Administrators 2017-09-29 08:57:26 UTC Comment hidden (obsolete)
Comment 10 Xisco Faulí 2017-10-30 10:51:00 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20171030