We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Merging/Copying Two Excel sheets - Spaces in the beginning of the cells are not getting retained

Hi Team,

**** This is really urgent ****
We have a valid purchased license (Order ID: 170323160208)
Version used : aspose-cells-17.4.0.jar

Currently we are encountering a strange problem. The requirement is to merge two spreadsheets in a single Workbook but we are loosing the leading “spaces” (if there is any for the cells).

For example I am attaching 2 spreadsheets Other_Budget_R2-en_1.xlsx (Lets call it SS1) & PE_Budget_R2-en_1.xlsx (lets call it SS2) and copying the first sheet of SS1 into SS2. Below is the Java code snippet

try {
Workbook excelWorkbook0 = new Workbook(“C:\FAST\eclipse\workspaces\default\TestAspose\Other_Budget_R2-en_1.xlsx”);
Workbook excelWorkbook1 = new Workbook(“C:\FAST\eclipse\workspaces\default\TestAspose\PE_Budget_R2-en_1.xlsx”);

System.out.println(“new Test Done… bogus !”);

} catch (Exception e) {

For example : In the SS1
Column A
Row 10,11,13,14,15,16
has leading spaces before the data. But the output test_it.xlsx don’t have those spaces anymore.

Need a fix for this indentation issue urgently !!!


Thanks for sharing the sample code and template files.

We managed to reproduce the issue on our end. We found it is an issue of reading string value with
leading spaces. I have logged a ticket with an id “CELLSJAVA-42281” for your issue. We will look into it soon.

Once we have an uypdate on it, we will let you know here.

Thank you.


We are pleased to inform you that we have fixed your issue (logged earlier as “CELLSJAVA-42281”) now. Hopefully, we will provide you the fix in the next week early after performing QA and incorporating other enhancements and fixes.

Keep in touch.

Thank you.

This is really excellent !! Can you please let me know by when will it be ready? Our production go live is on hold since users are not satisfied due to the indentation issue.


I think by Wednesday (this week) you should have received the fix. Please contact us if you still could not get the fix (we will share the Download link here) by that time.

Thank you.

Ok Great. We will be looking forward to the hot fix tomorrow (wednesday)


Thanks for your posting and considering Aspose.Cells.

We again checked your issue status and found, it is marked as fixed but the fix is not released yet. We have logged your comment for product team consideration so that you could get it on Wednesday or at the earliest. Once, it will be available for you, we will provide you a download link of the fix in this thread asap.


When can we expect a fix today?

We have been waiting for this indentation issue to be fixed in order for us to go live.

Please let us know at the earliest.


Please try our latest fix/version: Aspose.Cells for Java v17.4.6 (attached).

Your issue should be fixed in it.

Let us know your feedback.

Thank you.

The issues you have found earlier (filed as CELLSJAVA-42281) have been fixed in Aspose.Cells for Java 17.5.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.