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

Creating Powerpoint with charts using open xml

I wish to create a powerpoint file and then add charts to that file dymanically (chart on each page) through providing the chart title and the chart data and selecting one of the predefined charts...

View Article


find sections in docx and copy to docx.

May I copy some sections from docx file? Should I open docx file(there are no problems), find sections with hyperlink there, create a new docx file and copy these sections from hyperlink to docx file...

View Article


Problem to get value

Hi, I do not get the value of cell.StyleIndex.Value, within the following codes WorksheetPart worksheetPart = (WorksheetPart)workbookPart.GetPartById(sheet.Id); WorkbookStylesPart wstylePart =...

View Article

How do I change the size of the table, then the chart in a .docx from code?

hiAm using OpenXML and the DocumentBuilder to open report documents and get the 1st and last items and put them into a new blank Word.docxThe problem is how to resize them?  Here is the xml showing the...

View Article

Convert the visio file to PDF format Using C#

Hi I am working on  convert visio file (which is stored in Sharepoint) to PDF format by having print button.I have used the Microsoft.Office.Interop.Visio.Application  library to convert which is not...

View Article


Problem to Embedded statement

Hi, Any advice to this Error2Embedded statement cannot be a declaration or labeled statement due to 2nd line below. Why? string vIT = ""; int index = InsertSharedStringItem(vIT, shareStringPart);...

View Article

Powerpoint deletes relation of CustomXmlPart to Slide

Hello.With the OpenXml SDK 2.5 I added a CustomXmPart to a SlidePart. I added an CustomXmlPropertiesPart and finally added an additional relationship from CustomXmlPart to the PresentationPart. On the...

View Article

Locate the error

Hi, To this StacktraceException: The specified package is invalid. The main part is missing. at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.Load() at...

View Article


Open XML run-time instead of SDK

This question is related to understand a better way of releasing my application.I have an application that process Excel Spreadsheets with Open XML SDK.I'm thinking of mentioning it as a prerequisite...

View Article


Excel file not created as expected

Hi, Excel file is not created by these codes string Path0="c:\\dp2\\Ex0.xlsx"; CreateSpreadsheetWorkbook3(Path0); public static void CreateSpreadsheetWorkbook3(string filepath) { // Create a...

View Article

TextWrappingValues

Hello,How do I set the TextWrappingValue to Around in my C# open xml file.TableStyle tableStyle = new TableStyle() { Val = "TableGrid" }; TableLook tableLook = new TableLook() { Val = "04A0" };...

View Article

Image may be NSFW.
Clik here to view.

How to modify the font size of a document from code

How can the parts of the document be discovered and the fontsize changed?Here is a sample table used,<w:sdt docpart="2CFD5BC34C8546929C222BE9FE7FE85A" id="-566108754" sdttag="content control 1"...

View Article

Create if not existed

Hi, I want to create Worksheet with name vSN, if it IS NOT existing on Workbook. How? IEnumerable<Sheet> sheets = spreadSheet.WorkbookPart.Workbook.Descendants<Sheet>().Where(s => s.Name...

View Article


Problem to Append line

Hi, How to resolveError 2 'System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Spreadsheet.Sheet>' does not contain a definition for 'Append' and no extension method 'Append' accepting...

View Article

Problem to line

Hi, How to resolveError 2 'DocumentFormat.OpenXml.OpenXmlElement' does not contain a definition for 'Id' and no extension method 'Id' accepting a first argument of type...

View Article


Problem to write to Worksheet with InnerText

Hi, I cannot properly write to Worksheet with values by codes below, while there're values to vCO, vRO, vSI, and vIT (vIT is having value to InnerText). Why? using (SpreadsheetDocument spreadSheet =...

View Article

Handling Dangling CustomXMLPart when replacing CustomXML from a Word Template

I am creating a Word Template with a Custom XML part linked to content controls in my template. I then replace the Custom XML Part in my code using this code: protected void ReplaceCustomXML(string...

View Article


table of content in word xml

i wanted to create a word document dynamically. i am able to create the contents of the file and table of content. i gave a hyperlink to the pages from each topic in the table of content. but i am not...

View Article

Convert Word to HTML with Track Changes

Hello,I want to convert my word document into HTM Tags with track changes highlighted. I am able to convert word document to html but text present in word document having track changes are resulting as...

View Article

transitional or strict format ?

Does anyone know how to determine if a given Open XML file is based on the transitional or strict format? When I open a file in Word 2016 which was created in Word 2007 I get the “Compatibility Mode”...

View Article
Browsing all 1288 articles
Browse latest View live


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