-
Notifications
You must be signed in to change notification settings - Fork 279
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
Unable to correctly handle the situation where different parts of text within a single cell have different styles #1653
Comments
You have an empty element in the beginning of all your si-elements in the shared strings table. <si>
<t/>
<r>
<rPr>
<sz val="9.75"/>
<color rgb="FF000000"/>
<rFont val="Calibri"/>
<family val="2"/>
</rPr>
<t>{"any_</t>
</r>
<r>
<rPr>
<sz val="10.5"/>
<color rgb="FF000000"/>
<rFont val="Calibri"/>
<family val="2"/>
</rPr>
<t xml:space="preserve">purple_frag":200, "any_blue_frag" : 200, "any_green_frag" : 500}</t>
</r>
</si>
<si>
<t/>
<r>
<rPr>
<sz val="9.75"/>
<color rgb="FF000000"/>
<rFont val="Calibri"/>
<family val="2"/>
</rPr>
<t>{"any</t>
</r>
<r>
<rPr>
<sz val="10.5"/>
<color rgb="FF000000"/>
<rFont val="Calibri"/>
<family val="2"/>
</rPr>
<t>_orange_frag</t>
</r>
<r>
<rPr>
<sz val="9.75"/>
<color rgb="FF000000"/>
<rFont val="Calibri"/>
<family val="2"/>
</rPr>
<t xml:space="preserve">" : 700</t>
</r>
<r>
<rPr>
<sz val="10.5"/>
<color rgb="FF000000"/>
<rFont val="Calibri"/>
<family val="2"/>
</rPr>
<t xml:space="preserve">, "any_purple_frag" : 800,"any_blue_frag" : 1200, "any_green_frag":2500</t>
</r>
<r>
<rPr>
<sz val="9.75"/>
<color rgb="FF000000"/>
<rFont val="Calibri"/>
<family val="2"/>
</rPr>
<t>}</t>
</r>
</si> Resaving this file in Excel causes this element to be removed. |
* Delete method for ole objects. * Update Microsoft.Extensions.Configuration.Json to 8.0.1 - #1623 * Feature/new default font (#1621) * Tests for new default font * wip * Added scale factors for Aptos Display and Aptos Narrow * Updated test project file * Removed invalid test --------- Co-authored-by: swmal <[email protected]> * EPPlus version 7.4.1 * Removed fixed references * Added version information in history list * Copy ole object and tests * #1624 - fix for preserving rich data on save (#1625) * #1624 - fix for preserving rich data on save * Removed uncommented code --------- Co-authored-by: swmal <{ID}+username}@users.noreply.github.com> * Fixed some issues with copy ole object. * Copy ole object complete. * Fixed issue with opening ms office documents. * Fixed issue opening copes of ms office docs. * Uisng Picture store for ole emf images * Copying ole objects through worksheet copy * ole worksheet copy progress * Bug/i1626 (#1636) * Added fix for #1626 * Ensured two-anchor and other images are copied properly * Added fixed issues * Added minor feature for #1632 (#1637) * Bug/s745 (#1644) * Located one problem area * Added comparisons and fixed incorrect flags * Added fixed issues * Fixed some issues with linked ole objects and finished worksheet copy. * Fixes issue #1645 (#1648) * Fixes issue #1646 (#1647) * Added fix for #1628. Corrected ids on deleting tables (#1634) modified: EPPlusTest/Issues/LegacyTests/Issues.cs * Bug/i1631 Row/ColumnOffsets (#1633) * Fix for #1631 column/row offset in shared formulas * Added fixed issues note * add testmethod * added Ole Object xml comments, stream, fileinfo, name, arg object * Stream and fileinfo tests. * Fixes array formula calculation for single cells containing range operations (#1657) * Fixes array formula calculation for single cell arrays. #1649 * Range operations using conditional operators are now identified as dynamic array formulas * Replaced ApplyWithDynamicResult method with Apply * Minor changes to Update of table array property * Fixed issue #1653 and enabled update of the Workbook.MaxFontWidth property. (#1654) * EPPlus version 7.4.2 * Many small changes. * Fixed some tests * moved Emf check * Fixed errors and fixed correct TextMetrics --------- Co-authored-by: JanKallman <[email protected]> Co-authored-by: swmal <[email protected]> Co-authored-by: swmal <{ID}+username}@users.noreply.github.com> Co-authored-by: OssianEPPlus <[email protected]>
EPPlus usage
Noncommercial use
Environment
Windows
Epplus version
7.4.0
Spreadsheet application
Excel
Description
hero_improve.xlsx
I have some strange files that need to be processed, where different parts of text in some cells have different styles.
In
hero_improve.xlsx/xl/sharedStrings.xml
, it appears as asi
element mixed with multiplet
andr
elements.Reference code lines:
EPPlus/src/EPPlus/ExcelWorkbook.cs
Line 340 in 90de83f
It seems there is no way to get the full content of the cell.
The text was updated successfully, but these errors were encountered: