Rich Text Content controls and Custom XML makes the document size growing too...
Hi, I have a problem with Word Rich COntent controls and CustoXML mappings.I've tried the code, proposed in the MSDN article Content controls in Word...
View ArticleCompare two word documents c# and get differences
We are trying to build a console application in c#. The application needs to open a word document convert it to XML and then compare the XML against an another XML that is also generated from a word...
View ArticleExcel Open XML RowBreaks and Footer Images - XML file positioning
Using VS2012, C#, OpenXML 2.5, I created a test utility that adds a page break (Row Break) to a worksheet using (pseudo):objRB = New RowBreaks(); objRowBreaks.Append(objRB);...
View ArticleProgrammatically create Excel XML(.xml) file into Excel spreadsheet file(.xls...
Hi I have a requirement where incoming document I receive is Excel xml file. If I open in notepad, it shows XLS/XML well formed code but opens in excel file table(double click). Initially I thought I...
View ArticleHow to read Excel VBA using openXML in C#
I need to read VBA code which is included in macro enabled excel sheet using OpenXml in c#. Tried to read using following code. But it returns some wired string. Could u please help me to do this.using...
View ArticleUnable to read the percentage value from excel using open xml sdk
Hi, I am using Open xml SDK to read the data from excel and it is working fine for string data. but when we try to read the cell value containing percentage e.g. 20% it reads that value as 0.2 which is...
View ArticleReading and writing in xslx file
Hi All,I am trying to read and write into an excel file. I have sample excel template which has header column in first row. I want to read one of the header (find the column based on header) and...
View ArticleRead Excel Charts using OpenXML
I need to get chart name and the chart type of two charts where is being in the same excel sheet. chart name could be taken from DrawingPart -> WorksheetDrawing -> twoCellAnchor ->...
View ArticleRead Excel Charts using OpenXML
Hello Msdns I want know how to implement a copy all charts in Excel file and copy to Image DataType in C# Read excel file go through the excel workbook -> Worksheet-> chartpart->...
View ArticleHow to embed pdf file in PowerPoint slide via OpenXml SDK
Hi,I use the following code to read pdf binary file to feed data into EmbeddedObjectPart. But PowerPoint doesn't recognize the embedded file as pdf when I click on the pdf icon in my slide.OpenXmlPart...
View ArticleExtract default font size of Title/SubTitle in Powerpoint document
Hi,Short ------ How can I extract Font size of the Title/SubTitle text? Details -------- I need to extract font sizes of each text at PowerPoint document using OpenXml SDk. And I can extract font...
View ArticleOpenXML SDK 2.5 Excel File Corruption
I've come across a problem in using the OpenXML SDK 2.5 where the spreadsheet cannot be opened without losing data when you fill cells past column z (all on the same row). The Issue is that in the xml...
View ArticleThe dependancy of DocumentFormat.OpenXml 2.5.0 does not support framework DNX...
Hi, I need to export some data in a mvc 6 rc1 project, but after I installed the DocumentFormat.OpenXml nuget package, I got error as " the dependancy of DocumentFormat.OpenXml 2.5.0 does not support...
View ArticleWrong values trying to read words count from a Microsoft Word document with...
I have a word document and I want to get word count programmatically using OpenXML sdk, I managed to get word count but openXML returns wrong values. note that the test document is mixed languages...
View ArticleReplace picture in Word header with open xml
I'm trying to use C# and Open XML to open a docx file and replace images in picture content controls. The picture content controls have tag ID's that match ID's in an xml data file that contains URI's...
View ArticleOpenXML Excel Date Formatting
am learning to read the data from excel using OpenXml SDK and i do not understand the way the date works. I wrote a piece of code that reads the data and binds it to a grid and everything works but...
View ArticleThe element has invalid child element...
Hello, I am getting below error message when i apply transform to a XML file:The element has invalid child element 'http://schemas.openxmlformats.org/wordprocessingml/2006/main:p'. List of possible...
View ArticleIs it advisable to try OpenXML for generation of documents?
I am trying to generate documents in open xml format (.docx or .dot). I googled a lot. All the content in the msdn site is archived and stated to be outdated. The openxmldeveloper.org site is not...
View Articlewithin tags
Hello,Is it possible to have <Codeblock> style within <li> tags? This is what i am trying to achieve using code given:<body class="- topic/body "><p class="- topic/p ">This is a...
View ArticleIssues creating OpenXML Excel files in 2010 with Array formulas
When I create a document using OpenXML, and use Subtotal, Aggregate or {} array formulas, they are not calculated when the user opens them. This is a WebAPI application, file is generated on server.If...
View Article