Quantcast
Channel: Open XML Format SDK forum
Browsing all 1288 articles
Browse latest View live

Cannot insert the OpenXmlElement "newChild" because it is part of a tree.

hi,am getting this error(Cannot insert the OpenXmlElement "newChild" because it is part of a tree.) when i try to give border values to the table.here is my code,if(sValue ==""){InsideVerticalBorder...

View Article


How to change the header and footer in the Section Breaks Next Page using...

I have a word document file in which I added a Section Break of Next Page, now I want to change the header and footer of that page. Scenario of example, I have a doc file which has four pages with...

View Article


MemoryStream and WordprocessingDocument

Hi Everyone,  I have a problem when using the WordProcessingDocument object together with a MemoryStream object.  My code is the following. MemoryStream stream = new...

View Article

lastRenderedPageBreak and columns problem

I need to be able to identify specific pages in a Word doc by parsing the document.xml. I thought I could use the lastRenderedPageBreak to find the end of a page, and this seems to work in a single...

View Article

Not able to implement Open XML SAX type approach in c#

My requirement is to export huge records with rows equal to 5 lakhs. I was using OpenXml approach like this : public void ExportCheck(DataSet ds, string destination)        {            using (var...

View Article


Open xml relationship target is NULL when inserting chart

Hi,I have looked into the specification ISO/IEC 29500-1:2012 and i understand that the attribute Target for the element Relationship can be set to NULL at times(Empty header and footer in the...

View Article

No buttons working when opening generated OpenXML workbook

Hi,I've looked around for the answer to this, but have been unable to get anything, so probably looking in the wrong places.I generate OpenXML worksheets as reports, and some may have stylesheets...

View Article

How to set all columns width to autofit (based on content in cell)

Hi,I have defined columns something like this:Worksheet worksheet = new Worksheet(); Columns xlCols = new Columns(); Column xlCol = new Column(); xlCol.Width = 20; xlCol.BestFit = true;...

View Article


Image may be NSFW.
Clik here to view.

Thumbnail.wmf Extraction

I see that documents with Thumbnails have a Thumbnail.wmf image in docProps (see image). How would I use OpenXML to extract and save this image to show a thumbnail on a web page?Ray Pietrzak

View Article


Convert word document to text

I am attempting to convert a word document to text using OpenXml sdk. Are there any examples of how to do this?I can open the file, and get the body, but there is no formatting.OpenSettingsos...

View Article

Create openxml spreadsheet to memory stream

I need to create an openxml spreadsheet from a dataset and stream it back to a browser using asp.net (vb.net).I can't seem to find anyway to create the spreadsheet to a memory stream without first...

View Article

Excel Cell Format Wrap Text

Hello Team,I have used OpenXml to update a sheet in excel file. I have achieved this by referring the MSDNhttp://msdn.microsoft.com/en-us/library/hh180830(v=office.14).aspxNow i am updating an excel...

View Article

Get Excel cell background color

Hello,I need the get the cell background color in an excel sheet. please help me with some code example.I have searched on internet but i have found only one help...

View Article


how to apply a custom formatting with OpenXML ?

Hello,After having solved my first issue on openxml tht was due to a bug in the microsoft samples here :...

View Article

How can I figure out what is wrong in a file?

For the file at simba.windward.net/temp/Bug_17475.docxHow can I figure out what is wrong with it? The Open XML SDK won't even open it. So no clues as to what is wrong.??? - thanks - daveWhat we did for...

View Article


Insert Pie Chart to Excel Using OpenXml

I managed to implement the code(I got from MSDN) to create a bar graph in excel, I am however facing challenges in creating a piechart, I had thought that I can manipulate the code a little bit and...

View Article

how to make a cell usable as a number when we apply a format with thousand...

Hello,How can I achieve the same visual result as discussed here :...

View Article


How to handle SharedStringTable ?

Hello,I am following the example given by Microsoft here but I get the error "Cannot save DOM tree since this element is not associated with an OpenXmlPart" when it tries to save the stringTable. Do...

View Article

Open XML SDK - WinRT (Windows store)

Anybody have any luck using the Open XML SDK in a WinRT/Windows Store app?  I tried adding the V2.5 DocumentFormat.OpenXml.dll to my project but then it complained about needing a reference to...

View Article

Image may be NSFW.
Clik here to view.

Insert a Picture into the Picture/Image Content Control using Open XML SDK 2.0

I have created a word template as followsHere PizzaPicture is a Picture Content Control, PizzaName is a Plain Text Content Control and PizzaDescription is a Rich Text Content Control I am able to...

View Article
Browsing all 1288 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>