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 Articlefind 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 ArticleProblem 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 ArticleHow 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 ArticleConvert 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 ArticleProblem 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 ArticlePowerpoint 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 ArticleLocate the error
Hi, To this StacktraceException: The specified package is invalid. The main part is missing. at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.Load() at...
View ArticleOpen 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 ArticleExcel 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 ArticleTextWrappingValues
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 ArticleHow 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 ArticleCreate 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 ArticleProblem 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 ArticleProblem 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 ArticleProblem 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 ArticleHandling 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 Articletable 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 ArticleConvert 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 Articletransitional 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