Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in the amount of data saved in sheet.xml #25

Closed
OnilDu39 opened this issue Dec 31, 2019 · 3 comments
Closed

Issue in the amount of data saved in sheet.xml #25

OnilDu39 opened this issue Dec 31, 2019 · 3 comments
Labels
question Further information is requested

Comments

@OnilDu39
Copy link

I found a second issue, which I had after saving an existing xlsx file with only one cell modified : the layout changed.

To reproduce the problem, I reduced my file to the minimum :
good.xlsx
This is a very simple file, with A and B column always visible and a fixed number of columns.

When I execute this code :

int main()
{
  XLDocument doc;

  doc.OpenDocument("./good.xlsx");

  auto wks = doc.Workbook().Worksheet("2019");

  wks.Cell("K11").Value() = 77;

  doc.SaveDocument();
  doc.CloseDocument();

  return 0;
}

I obtain a file that lost the limited column number :
bad.xlsx

You can notice the problem when looking at the horizontal slide bar in both documents.
It also dramatically increases the file size as a consequence.
I am not sure the fact that I modify one cell has something to do with it, since I think I also had the problem without modifying anything (not sure though).

I think that the document should keep its features after being opened and modifed by the lib.

@troldal
Copy link
Owner

troldal commented Jan 9, 2020

Hi @YoannNicod,

I'm afraid I can't re-create the issue on my machine. On my computer the 'good.xlsx' and 'bad.xlsx' are identical, except for the value in cell K11 and the increased file size. I can't see the fixed number of columns in the 'good.xlsx' file. I' using Excel on a Mac...maybe that's the reason...

Can you send a screenshot so I can see what your issue is?

@troldal troldal added the question Further information is requested label Jan 10, 2020
@kevinofsias
Copy link

it is the empty column info in sheet.xml.

@troldal troldal closed this as completed Sep 18, 2021
@kevinofsias
Copy link

Hi @YoannNicod,

I'm afraid I can't re-create the issue on my machine. On my computer the 'good.xlsx' and 'bad.xlsx' are identical, except for the value in cell K11 and the increased file size. I can't see the fixed number of columns in the 'good.xlsx' file. I' using Excel on a Mac...maybe that's the reason...

Can you send a screenshot so I can see what your issue is?

I have the same problem,the bad excel size increased because it has so many empty column。
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants