-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 print cell contents #462
Comments
Here is the XML for those cells: <c s="3" t="inlineStr" r="K3">
<is>
<r>
<rPr>
<b></b>
<i val="0"></i>
<strike val="0"></strike>
<u val="none"></u>
<sz val="9"></sz>
<color rgb="FFFFFFFF"></color>
<rFont val="Tahoma"></rFont>
</rPr>
<t xml:space="preserve">Sort Weight (</t>
</r>
<r>
<rPr>
<b></b>
<i val="0"></i>
<strike val="0"></strike>
<u val="none"></u>
<sz val="9"></sz>
<color rgb="FFFFFFFF"></color>
<rFont val="Tahoma"></rFont>
</rPr>
<t xml:space="preserve">Kgs</t>
</r>
<r>
<rPr>
<b></b>
<i val="0"></i>
<strike val="0"></strike>
<u val="none"></u>
<sz val="9"></sz>
<color rgb="FFFFFFFF"></color>
<rFont val="Tahoma"></rFont>
</rPr>
<t xml:space="preserve">)</t>
</r>
</is>
</c> Looks like you can have nested rows within an inline string ( type xlsxIS struct {
T string `xml:"t"`
} We'll need to expand that struct and probably add a method on it to extract the string. For the purpose of reading files I propose that |
What did you use to create this file? The repeated inline formatting instructions seems strange to me. |
The file is generated from our company software. |
Ah some some internal program your company made/uses is making the file? In any case, this will require a PR, we're just not handling this part of the spec yet. |
Try out the code in this PR. It worked for me with your sample file. |
Can you please give me some instruction on how to use your PR code? |
Assuming you are using go modules, you can clone my fork of the repo with that branch and then add a replace directive like this:
Then |
Tested. It works well. |
Fixed #462 Handle multi row inline strings
The inline string struct is actually the same as the shared strings struct, reuse it. Note that Go version 1.10 is required. Fixes qax-os#462
Fixed qax-os#462 Handle multi row inline strings
The following program can't print the contents of the last two cells:
go.mod
Output:
User Metrics.zip
The text was updated successfully, but these errors were encountered: