openxml-sdk Questions

1

I'm using OpenXml SDK to generate word 2013 files. I'm running on a server (part of a server solution), so automation is not an option. Basically I have an xml file that is output from a backend s...
Swift asked 19/4, 2017 at 14:23

1

Solved

I'm trying to format decimal and integer numbers like "1,000.00" in my .xlsx file. The code for generating stylesheet: private Stylesheet GenerateStylesheet() { //styling and formatting var cell...
Univalence asked 19/4, 2017 at 14:3

4

Solved

I am trying to use C# to replace a specific string of text on an entire DOCX file with a line break (newline). The string of text that I am searching for could be in a paragraph or in a table in t...
Levitus asked 10/10, 2014 at 20:37

1

Solved

I'm trying to do this How can I embed any file type into Microsoft Word using OpenXml 2.0 but only using the OpenXml SDK 2.5 (no interop assemblies ) I can embed other word (or office) files usin...
Sandlin asked 6/4, 2017 at 16:51

2

Solved

I am trying to write a C# Azure Function to download and open an excel file using the OpenXml-SDK. Office Interop doesn't work here because office is not available to the Azure Function. I am try...

2

I am writing an application which should use DocumentFormat.OpenXML SDK for writing data to form fields in a word template. But I cannot find a property in the document-object of the SDK where the ...
Decillion asked 9/6, 2015 at 10:18

2

Solved

I hate to resort to StackOverflow for something so (seemingly) basic, but I've been fighting with Microsoft for the last few hours and seem to be hitting a dead end. I am trying to read (large) Exc...
Anneliese asked 11/5, 2012 at 16:50

1

Solved

I am attempting to style cells and I cant get the colors to work correctly, I am using the following Fill: // <Fills> Fill fill0 = new Fill(); // Default fill Fill fill1 = new Fill( new Pat...
Trestle asked 13/3, 2017 at 23:38

1

Solved

I am new to open xml and trying to set the background color of header row to gray but it always set it to black. Please refer following code which I am using. return new Stylesheet( new Fonts( ...
Instrument asked 12/2, 2017 at 5:23

1

Solved

I am trying to create a .docx file from a word template (.dotx), using OpenXML 2.5 library. More exactly, I'm trying to follow this , but I want to open the document using a MemoryStream and not th...
Arillode asked 6/2, 2017 at 23:58

3

Solved

I have created a spreadsheet using Open XML SDK in C#, and successfully populated two worksheets. When trying to populate a third, I get an "Unreadable content" error when opening the completed d...
Caesura asked 25/1, 2013 at 16:5

2

Solved

I am new to this and when I try to add more than one cell to a row it says there is unreadable content. Here is what I have. SpreadsheetDocument ssDoc = SpreadsheetDocument.Create(saveFile, Spread...
Berseem asked 2/2, 2012 at 17:32

1

I have some docx documents. I read them with OpenXML 2.5 SDK and I search for the TextInputs in each doc. byte[] filebytes = System.IO.File.ReadAllBytes("Test.docx"); using (MemoryStream stream...
Brimmer asked 26/3, 2015 at 20:7

2

using the example here How to Copy a Worksheet within a Workbook I have successfully been able to clone/copy sheets in my excel file, however when I open the excel the 2nd sheet is the active(visi...
Desideratum asked 7/4, 2014 at 20:7

1

Solved

This is what I am doing: CellFormat cellFormat = new CellFormat() { NumberFormatId = (UInt32Value)14U, FontId = (UInt32Value)0U, FillId = (UInt32Value)0U, BorderId = (UInt32Value)0U, F...
Gladwin asked 21/9, 2016 at 22:57

1

Solved

I have a basic C# application where Open XML SDK is used. I want to make it run in my Nginx & Ubuntu & DigitalOcean server. The application compiles and works well in Windows, and my Mac w...
Infer asked 12/9, 2016 at 3:57

7

Solved

I am getting the ambiguous "excel found unreadable content" error when I try to open the document created by the following code: public void GenerateWorkbookFromDB() { //Make a copy of the templa...
Curb asked 16/5, 2011 at 18:20

3

I have a requirement to convert Excel (2010) files to csv. Currently I'm using Excel Interop to open and SaveAs csv, which works well. However the Interop has some issues in the environemt where we...
Unsaid asked 26/8, 2011 at 18:14

1

I want to create a presentation with data coming from a database. I manage to get valid presentations that open in PowerPoint (the Open XML Productivity Tool of the SDK 2.5 is a big help in doing t...
Depilate asked 19/9, 2015 at 13:3

2

Solved

I am manipulating a Word 2010 document on the server-side and some of the content controls in the document have the following Locking properties checked Content control cannot be deleted Contents...
Electrocardiograph asked 23/5, 2012 at 21:55

1

Solved

Please consider this Excel: and it's XML: I want to create such this Excel that has multiple merged cells using OpenXML. How I can do this? thanks
Hiltner asked 12/5, 2016 at 9:8

2

We have got a requirement like exporting data into excel sheet in Xml Format like creating a new XML SpreadSheet I have followed this link for creating excel xml Spreadsheet. In this link he has me...
Pastille asked 21/9, 2013 at 6:53

3

Solved

I have an xlsx doc with headers and it is located in my project path. I want to insert data using OpenXML but I get an exception while opening the file: using (SpreadsheetDocument myDoc = Spreadsh...
Jesus asked 23/4, 2014 at 8:38

4

Solved

I'm considering replacing a (very) large body of Office-automation code with something that works with the Office XML format directly. I'm just starting out, but already I'm worried that it's too b...
Wortham asked 25/1, 2012 at 15:3

1

Solved

I'm trying to develop a solution which takes the input from a ASP.Net Web Page and Embed the input values into Corresponding Content Controls within a MS Word Document. The MS Word Document has als...
Mathamathe asked 13/4, 2016 at 13:24

© 2022 - 2024 — McMap. All rights reserved.