Append WordMl into OpenXmlBody
i have a wordMl of range which i got from interop document using statement below:string myWordMl = myRange.WordOpenXMLnow i have created an openxml document and i want to append myWordMl into the body...
View ArticleHow to lock specific cells programmatically while Excel export?
foreach (WeekSummary summary in report.Summary) { DocumentFormat.OpenXml.Spreadsheet.Row row = new...
View Articleread excel file using open xml api and import it to SharePoint list / doc.lib
hi,i would like to read an excel file and read the headers in the excel file and insert the records into sp 2010 splist/doc lib. is it possible, any sample code is appeciatedthnx
View ArticleExcel 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 ArticleInsert wordMl at current selection
i am inserting a wordMl on my current selection rangehere is the wordMl i want to insert <?mso-application progid="Word.Document"?><pkg:package...
View ArticleEmbedding Object in Excel
I am trying to embed an object into an excel programmatically and encountering an issue. I am using the below code to embed an file into Excel. EmbeddedObjectPart embeddedObjectPart1 =...
View ArticleInserting plain text into Content Controls in Word using AltChunk - format...
Hi,I have an application that is using OpenXML and AltChunk to insert plain text (from a XML-file) into various Content Controls (I've tried Rich Text and Plain Text controls). Now, this works, kind...
View ArticleWhat is the best software for viewing and editing .xml Files
Would prefer a freebie but any reply is appreciated...
View ArticleImage Insert Corrupting the Document
Hi, I need to insert images in different pages. All the images will be different and it will be inserted in to different location like table cells.I have tried the example in the MSDN link...
View ArticleCreating WordProcessingDocument from wordMl string
i have a wordMl of an interop.Rangewhich gives the whole package xml, i want to load it to a new WordProcessingDocument using either of the methodWordProcessingDocument.Open() or...
View ArticleOpen XML Append Column C#
I am Trying to append a column in excel sheet using C#. Help me in doing so.
View ArticleHow to preserve tablestyle when StylesDefinition from a template is applied
HiIn our project we are creating documents from a predefined text-document on which we apply headers, footers, margins, themes and styles from a Word template (dotx).The solution has worked fine as a...
View ArticleLocating a Content Control inside a table (or other element)
Hi Folks,I have a simple word document that contains content controls (just plain text ones). The issue that I am having is that some of the content controls are embedded in other elements (such as...
View ArticleAccess VBA source code using Open XML SDK
Hi,I am using Open XML SDK 2.5 and C# 4.0. I need to extract the VBA code from a macro enabled Excel file.I could not find any classes in their documentation. I tried the Productivity Tool to view the...
View ArticleFormula fields are not working in mailmerge using open xml
I have created a template(.dotx) with mailmerge fields having formula fileds.By using open xml i have extracts the merge field using pacakage and replace the value form diferent xml file.the value has...
View ArticleHow to convert Powerpoint .pptx to PDF document?
Hi,I am using Office Interop to convert powerpoint to pdf using save as functionality with below code. I have some issues with InterOp on some pcs where I get application is busy error.Is it possible...
View ArticleCreate a document with an image in the header
Hi,I have been trying to achieve a seemingly simple task of adding a header and an image inside it but i can't seem to do it. I have tried several examples but none seem to work (even the ones on...
View ArticleExtract first page from .DOCX document
Is it possible to extract the first page from a Word document using open XML format SDK?
View ArticleRead Excel 2007 file with Open XML - Identify blank cell
Hi I am working on a .NET 4.0 console application. I am trying to read the data from MS excel 2007 document. (file format in Xlsx)I use the below code to load the data into datatable. It works fine if...
View ArticleTables in Spreadsheet
HiI am generating a spreadsheet from Open Xml from rows in a Sql Table. I am able to make the spreadsheet file but all the cells are like Text cells (including the column names). But what I wish to do...
View Article