Questions tagged [openxml]

Questions regarding reading and writing of Microsoft Office Open XML files either through direct manipulation of the XML files contained in a zip package or through the Microsoft Office Open XML SDK.

Office Open XML File Formats Official Standard

http://www.ecma-international.org/publications/standards/Ecma-376.htm

Microsoft Office Open XML SDK 2.0

http://www.microsoft.com/downloads/en/details.aspx?FamilyId=C6E744E5-36E9-45F5-8D8C-331DF206E0D0&displaylang=en

3743 questions
1
vote
1 answer

Open XML 2.0 Word Document Merge Cell Horizontally

I have a task where I need to merge more than 2 cells, with below code I am able to merge only 2 cells in the table header under word document. var tc = new TableCell(); Text header = new Text(""); if (j == 0) { header = new Text("Header1"); …
MVCDEV
  • 25
  • 6
1
vote
2 answers

How to calculate the color based on given fgColor indexed

I am working on Open XML, Above is a office 2007 document that converted from office 2003. According…
Su Beng Keong
  • 1,034
  • 1
  • 13
  • 30
1
vote
1 answer

how to get plain hyperlink text from stored value of ContentControl's Range.WordOpenXML, instead of its syntax value?

I have hyperlink in Word's ContentControl like below http://www.yahoo.com and I'm storing it's value as below to use it later on var encoded = Convert.ToBase64String(Encoding.UTF8.GetBytes(cc.Range.WordOpenXML)); when I decode it again as below…
Maulik
  • 510
  • 1
  • 7
  • 22
1
vote
1 answer

How to insert a beautified JSON string into table cell in a Word document using Open XML

I am generating a Word document with Open XML. The document includes a table, and some of the cells contain a JSON string. Before inserting the JSON string I beautify it with the following lines: Newtonsoft.Json.Linq.JToken parsedJson = …
Ken B
  • 243
  • 1
  • 4
  • 16
1
vote
1 answer

Disable TeamFoundation addin in Excel programmatically

The requirement is to disable all the ribbon tabs and add a new custom tabs. When I use in my Ribbon.xml it disables all the tabs. But I can see the Team tab(TeamFoundation addin) and when I select a table in the…
Kiru
  • 3,489
  • 1
  • 25
  • 46
1
vote
1 answer

Python get line position (top, left, bottom, right) from DOCX to HTML

I have a document like this document, I want to convert the DOCX file into HTML file by using Python package docx: docx.convert_to_html(input). I am wondering is there any method or Python package that I can extract the position from each line? The…
1
vote
0 answers

Flushing memory OpenXML OpenXMLWriter Large DataSets

I have a large dataset (100,000 rows, 33 columns). I am using OpenXML to take this data and write it to Excel using the method explained here Export big amount of data from XLSX - OutOfMemoryException It appears to store all of the data in memory…
mameesh
  • 3,651
  • 9
  • 37
  • 47
1
vote
1 answer

Cross platform compatibility of MS Office Add-ins

We have a customised tab on MS Office Ribbon, built in Visual Studio and distributed via VSTO and Click Once and loads as a .com object. But its currently limited to Windows. MS is now promoting "Office Add-ins" that claim to be multi-platform. We…
Jono
  • 21
  • 2
1
vote
0 answers

office open xml: id="whatever" vs type="#whatever"

I have two *.docx files, one generated by LibreOffice Writer and one generated by PHPWord 0.14.0. In the PHPWord version I have this: In the LibreOffice version I have this: Are these basically…
neubert
  • 15,947
  • 24
  • 120
  • 212
1
vote
1 answer

Serving a word document generated using Open XML from an asp.net webpage

I'm trying to serve a word document (docx) from an asp.net page using the following code protected void Page_Load(object sender, EventArgs e) { MemoryStream document = new MemoryStream(); using (WordprocessingDocument…
Fikre
  • 555
  • 2
  • 7
  • 16
1
vote
0 answers

What units is this OpenXml transform element using?

I have a series of Word shapes positioned thusly: Here's the XML for part of that:
Chris B. Behrens
  • 6,255
  • 8
  • 45
  • 71
1
vote
1 answer

Unable to Query XML Document with SQL/OPENXML

I would like to query the following XML-File using SQL: 2f6f8b82348440b1b121bca06311945d
1
vote
2 answers

Azure Logic App Store Excel Email Attachment To Blob, Download and Read

I have setup an azure logic app that listens for an email with a particular title. That email has an excel attachment. When the email arrives it pushes the attachment to an Azure blob and puts a message on a queue. I then have a function app that…
Trevor Daniel
  • 3,785
  • 12
  • 53
  • 89
1
vote
0 answers

How can embed a excel file to PowerPoint file by OpenXML?

I want embed a excel file to powerpoint file: I had try this code, but it can't add object: // Open the source document as read/write. using (var presentationDocument = PresentationDocument.Open(strFile, true)) { var…
D T
  • 3,522
  • 7
  • 45
  • 89
1
vote
0 answers

How set image to a Rectangle by OpenXML?

I have a Rectange in template file PPTX and setting name ="Img" I want set image to that Rectange: This is my code, but i can't call shape.Append(part);: // Open the source document as read/write. using (var presentationDocument =…
D T
  • 3,522
  • 7
  • 45
  • 89