© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago
davidpapini

openxml sdk spread sheet

Hi someone use this library?
i've some diffucult when i try to add a cellformula.
i've created a class to write spreadsheet as attached and this code to add formula

newRow = new Row();
cell = new Cell()
{
CellReference = "M548",
//CellFormula = new CellFormula() {Text = "=SUM(M2:M" + ix--.ToString() + ") " },
CellFormula = new CellFormula() { Text = "=Sum(M2:M547)", CalculateCell = true },
};
newRow.AppendChild(cell);

export2Excel.AddRow(newRow);

when i open the file i received the error illegible content

thenk you
message.txt8.64KB
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ OpenXML Excel FOOTER
C#CC# / help
2y ago
❔ Unit Testing for OpenXML
C#CC# / help
4y ago
❔ How can I copy a Chart from Excel to Word with OpenXml SDK?
C#CC# / help
3y ago
❔ DocumentFormat.OpenXML - insert row into an Excel Table
C#CC# / help
3y ago