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

Can't reopen and save an Excel File, Exception with message : There are multiple root elements. Line 25, position 19.' #913

Open
2 tasks done
Tarboeuf opened this issue Jun 18, 2018 · 2 comments

Comments

@Tarboeuf
Copy link

Do you want to request a feature or report a bug?

  • Bug

Version of ClosedXML

e.g. 0.92.0

Reproducibility

When running the following code, we have an Exception into the method GenerateVmlDrawingPartContent. The file xl/drawings/vmlDrawing9.vml, has 2 root elements.

Code to reproduce problem:

public void Main()
{
            string target = @"D:\temp\Export_closedXml.xlsx";
            using (var wb = new XLWorkbook(@"D:\temp\closedXml\Export1.xlsx"))
            {
               wb.SaveAs(target);
            }

            using (var wb = new XLWorkbook(target))
            {
                wb.SaveAs(target);
            }
}
  • I attached a sample spreadsheet. (You can drag files on to this issue)
    Export1.xlsx
@igitur
Copy link
Member

igitur commented Jun 18, 2018

Please try with the latest pre-release version on NuGet.

@Tarboeuf
Copy link
Author

Thanks for your answer,
I still have the issue with the version 0.93.0-rc3

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

No branches or pull requests

2 participants