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

Error while load sharedString from file with merged cells #10

Open
baminmru opened this issue Jan 4, 2017 · 0 comments
Open

Error while load sharedString from file with merged cells #10

baminmru opened this issue Jan 4, 2017 · 0 comments
Labels

Comments

@baminmru
Copy link

baminmru commented Jan 4, 2017

test.xlsx

error found in function:
internal SharedStrings(ZipArchive archive)

After load string sequence is worng if Excel file contain vertically merged cells.

I make some changes like this:
foreach (XElement si in document.Descendants().Where(d => d.Name.LocalName == "si") )
{
String s;
s = "";
foreach (String X in si.Descendants().Where(d => d.Name.LocalName == "t"))
{
if (s != "") s += " ";
s = s + X;
}
int i = AddString(s);
System.Diagnostics.Debug.Print(s + ":" + i.ToString());
}

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

No branches or pull requests

2 participants