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

Maintain paragraph margins in Open XML after a header

I am generating a docx document with Open XML and I have a problem. Although I has been able to apply styles to the headers, I want to apply the margins of the headers to the following paragrpahs, in...

View Article


validate xlsx file with xsd using open xml

hello,i would to know how can i validate an xlsx file with xsd using open xml?because trough XmlReader i get an error :data at the root level is ivalid.line 1 position1i used this code but did'nt work....

View Article


Bad fill style in table headers with OpenXML

I am generating documents with OpenXML and adding tables, and I have found a strange issue. I am generating the headers with the following code: DocumentFormat.OpenXml.Wordprocessing.TableRow tr = new...

View Article

Generating Visio Drawing 2013 file with open XML in .NET

Hi Team,Looking for a server side solution to generate Visio 2013 drawing using Visio template & stencils with open XML in .NET.Please provide the solution / samples / references for the same at...

View Article

Programmatically Update Multiple External Data Connections in Excel 2010

I am using the following code given in an example here  http://msdn.microsoft.com/en-us/library/dd941886(v=office.11).aspxPrivate Sub UpdateConnectPath(ByVal strSourceFile As String) Dim oxmlNode As...

View Article


How to remove empty value mail merge fields?

Hi,I am trying to generate mail merge document using open xml. I can generate the document but if there was no value found for a merge field, it leaves an empty space. If there is no value found for a...

View Article

Bubble Chart from Excel to Word not working

I am currently working on a project to update the chart from excel to word. We generate an excel document in the linux environment, which uses the Open office XML standards to generate the excel file....

View Article

How to determine the default path of Normal.dot using the .Net C# programming...

I need to determine the absolute path, where the Normal.dot file is located on a target system.As i already found out, the default path is as...

View Article


Have a Worksheet, how do I get its SpreadsheetDocument?

I am trying make my code more efficient. Have looked at the documentation, but this is not easy to find.Given a Spreadsheet.Worksheet, how do I find its parent Packaging.SpreadsheetDocument?Through...

View Article


Generated docx, problem with editing in OWA/WAC

Hi!I have successfully created a docx from a dotx with C#/OpenXML. I added an XML with some properties and the docx gets populated just fine with the custom values. I upload the document to SharePoint...

View Article

Setting image size in XML using wp:extent and a:ext

I am having an XML file generated dynamically (using ruby) and I'm simply having an issue with image sizing. A few people online have mentioned that they're set based on the pixel dimensions of the...

View Article

Get MS Word real page number using Open XML SDK 2.5

I'm using Open XML SDK 2.5 in the recent project. I use the following code to get the page number from the word document:    ExtendedFilePropertiesPart extendedPart =...

View Article

Is the DocumentFormat.OpenXml.xml needed for deployment?

For our production servers, I will not be installing the OpenXML SDK on the servers.I'm planning on copying the DocumentFormat.OpenXml.DLL to the work directory along with our EXE.  But does the...

View Article


Image may be NSFW.
Clik here to view.

Replacing a prenamed image in a document

HiI have a task in where I recieve a document with pre-formatted named images and where I want to replace the imagepart in the document with a new picture.I now I can change the image info with...

View Article

Getting HTML text with in a table cell

Hi I am using Open XML to read the values inside the cell. I am able to get the plain text inside the cell of a table using innerText property as shown below -      TableRow row =...

View Article


reading a simple table cell from a word document

hi,i have a really basic question that i don't seem to understand:i am trying to read a table from a word document witch has 3 cells per row, everything works fine except one thing:on cells that have...

View Article

Replacing av FORMFIELD in Word with text

HiIn one of my projects I need to locate some document FORMFIELDS in Word and replace them with text.I can locate the FORMFIELD in the document but the only text to change here is the Default text...

View Article


Updating contents of the formula cell using OpenXML SDk

Hi,I'm using OpenXML SDK to fill in a series of cells which come under the scope of a formula in an existing excel template.Although the cells inside the range of the formula are filled up, the value...

View Article

Predefined Number formats < 164 question

Being that the numFmtId below 164 are predefined and not stored in the numFmts of the stylers.xml file of a spreadsheet, does that mean that I have to create an internal lookup table of the values and...

View Article

Generating dynamic excel spreadsheet with WebQuery using OpenXML SDK

Hi,I have generated an excel workbook using OpenXML. This uses data from DB for sheet data and column validations.I want to make this excel document a dynamic one so the user can refresh any time 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>