openxml-powertools

OpenXML SpreadsheetDocument SaveAs() giving file-in-use error

天涯浪子 提交于 2020-07-23 02:26:12
问题 I'm trying to generate an Excel spreadsheet dynamically, using OpenXMLPowerTools v4.5.3.2, DocumentFormat.OpenXML v2.9.1, called from a ASP.Net Core web app. I've verified that able to generate the spreadsheet OK. The problem is that I need to generate the spreadsheet ... and return it as a MEMORY STREAM (so the ASP.Net Core web controller HCExcelReport.cs: class HCExcelReport { protected SpreadsheetDocument doc; protected MemorySpreadsheet ms; protected string tmpFile = System.IO.Path

How can I make my bullets larger in Open XML?

大城市里の小女人 提交于 2020-01-16 07:50:17
问题 I'm generating docx files using the Open XML SDK for .NET The bullets in my lists are super tiny but I can't figure out why. So here's what I've done: Generating a doc with a single bulleted item Created a doc from Word with a single bulleted item Used Open XML Productivity Tools to compare both files Cannot for the life of me see any differences If I click on the bullet in both, to where it shows the font and size, they are both the same! I don't see any differences in the numbering section

How do you create multi-level ordered lists with Open XML in ASP.net?

半腔热情 提交于 2019-12-24 03:48:10
问题 I've spent countless hours trying to understand ordered lists in Open XML. Here's one of many references. I found this incredibly helpful example of a simple document creator here. Also if I may gripe a little bit, I must say this is a painful learning curve. Creating numbering properties and referencing the correct abstractNumberId and the list goes on and on. Does anyone have a complete example of creating multi-level lists in code? I can do so with no custom settings, as in setting the