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
0 answers

pulling data from excel file in Azure - vb.net

I am updating a working webservice to work in azure. I was previously using ACE OleDB to pull data from an excel file but that isn't supported in Azure. So I am switching to OpenXML and can't quite find the functions I need. specifically, I can't…
Jared H
  • 101
  • 1
  • 10
1
vote
1 answer

nodejs base64 parse returns a unexpected zip file

I have an api in which I generate an XLSX file with some data, and then transform it to base64 and return it to the client. I'm having trouble transforming the XLSX to Base64, the function returns the string in base64, but when I check it with tools…
WorkerDev
  • 13
  • 3
1
vote
1 answer

AutoShowTaskpaneWithDocument Word Add-In - We can't find the Taskpane to open

My problem is probably best described in this question: Auto-opening side-loaded taskpane But, the answer given won't work for me. I work at a company and setting up a new PC is not an option. I wrote an Office (Word) Add-In (Office API/JS) and I…
Rog O
  • 11
  • 1
1
vote
0 answers

How to export powerpoint (pptx) to video with animations programmatically using Java

I am trying to export powerpoint presentation to video programmatically. I have tried following. Open pptx file using org.apache.poixslf.usermodel.SlideShow Update the slides as per requirement Create image for each slide (using…
Aditya Bhave
  • 998
  • 1
  • 5
  • 10
1
vote
3 answers

How to read o:xml with powershell?

I have following xml file but don't know how to read it with Powershell, Anyone can help with? Thanks! I need to get the url value from Powershell.
Wayne Yang
  • 9,016
  • 2
  • 20
  • 40
1
vote
1 answer

How do you modify the xml of a pptx.oxml.xmlchemy.XmlString object at a particular element index?

The (1x2) table in python-pptx has a tr object with the following xml (abbreviated):
thunt
  • 89
  • 1
  • 11
1
vote
1 answer

Open XML doc generation with .Net - Add complex formula with NUMPAGES

I'm trying to generate a word document in .Net with Open XML. The problem is with the footer, simple text added. Could I add a formula where the Instruction (NUMPAGES) will be reduced by 1? Example run_page = new Run(new Text("Página ") { Space =…
1
vote
0 answers

RMD to DOCx , Can't render {=openxml} chunks inside table cells like huxtable and other?

HOW get rendered openxml chunks inside cells of tables in RMD to DOCx ? I just get same openxml text (mdt) inside tables instead of content .. any suggestions please? xml_test.RMD: Updated Test RMD code : --- output: word_document: …
den.ts
  • 103
  • 1
  • 8
1
vote
0 answers

Is there a way to add Columns after writing sheet data without causing the app to hung?

We are using OpenXML to create the excel file and among other things we want to write the Columns OpenXMLElement after ending with the SheetData object, given that the Columns element has to be written before the SheetData one for the Excel to open…
1
vote
1 answer

Export .docx from OLE object data

The problem I have is, that when I read an embedded (ole) (.docx) object from "Access" database .docx. I look for the " 50 4B 03 04 14 00 06 00 " hex header using c#.net. I extracted PDF, DOC, PNG, TIFF without any kind of problem.
1
vote
0 answers

Is there a way to print a document directly from a Controller method?

I am using OpenXML to open a .dotx file, create a Word document, do some text substitution and then save the document. However, my client would ideally like the document sent directly to the printer without any user involvement; ideally, the user…
Edwardo
  • 872
  • 1
  • 11
  • 24
1
vote
2 answers

Replacing content in Word 2010 Textboxes using OpenXML

Using the Open XML SDK I've been successful in programatically finding bookmarks or text strings in a word document and inserting new content. I'm using OpenXmlPowerTools.SearchAndReplacer to do the text search and replace and this post's answer…
Mort
  • 837
  • 1
  • 14
  • 20
1
vote
0 answers

Copy docx content with image into another docx document

I need to paste content of one docx file into another docx file. Here's my document merger class: public class DocumentMerger { private readonly WordprocessingDocument _targetDocument; public DocumentMerger(WordprocessingDocument…
Timothy
  • 584
  • 3
  • 14
1
vote
1 answer

OpenXml SpreadsheetDocument SaveAs() produces corrupted document - why?

This dead-simple code creates a file that Excel won't open. How could this be failing? using (SpreadsheetDocument doc = SpreadsheetDocument.Open(@"c:\dir\src.xlsx", true)) { doc.SaveAs(@"c:\dir\saved.xlsx"); } Notes: Excel won't open…
dlchambers
  • 3,511
  • 3
  • 29
  • 34
1
vote
1 answer

How to Obtain a Byte Array or Stream from a PresentationDocument object

I have Open Office XML code that slices and dices PowerPoint files. Due to the nature of the Open XML SDK, much of this code reads to and writes from files on the file system. The goal is to eliminate these temporary files completely, and replace…
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501