How to split text box columns via APIs?
Hi, I used OpenXml SDK to create text box and add texts in the box. There is the case that the added texts run over the size of the text box and even the size of the page. Is there any API to split...
View ArticleHow to insert a scroll Bar in a spreadsheet by code behind c# using Open XML...
I need to implement a scrollbar in an excel by linking it into a cell, is it possible to do it with Open XML Format SDK, if it possible , could you please help me on this by posting sample code?Thanks...
View ArticleHow To Create Style Heading1 in Office Open XML C#
I try to create Heading1 style in the word document but nothing works. I have this code to create style and document. public static void CreateWord(string filepath) { var wdoc =...
View ArticleCreate word document using document template openXML dll
Hello, I have to create MS word document using one template file in C# using openxml dll. I do not have any idea how should I start. requirements is, In template there will be one page which will...
View ArticleUsing MergeCells causes rare character in xml declaration
Hi there,I'm using SDK v2.5 for creating an Excel document . I am using examples from MSDN for inserting text and just after, merging two cells to insert another text on them. When I save the...
View Articlehow to add shapes to Specific cell in excel using openxml C#
Please help me to draw shapes using openxml c#. Now I am doing filling color to entire cell instead of this draw circle to Specific cell.
View ArticleAdd Comment in to selected Text in Word Document Using OpenXML c#
I need to use OpenXML to add comments in to a word document. I need to add a comment to a location or word(or multiple words). Normally in a word document openxml return those text as run elements. But...
View ArticleInsert vbaProject into PowerPoint and change file type to macro enabled
I want to insert vbaProject binary file into my presentation. I added VbaProjectPart into PresentationPart. However, after the presentation created, I looked at the zip content and saw vbaProject.xml...
View ArticleHow to insert comments in excel using openxml
Can anyone please explain how to add comments to cell programatically , Also please provide a working example? I tried by creating the vml drawing and comments part , but it's not working , I'm getting...
View ArticleFormat Cells over a range
Hello,currently i work with OpenXML to create a excel sheet.Now i will format serveral Cells over a Range.I know how to set a Value and Style for one Cell. But is there a way to select a Cell range and...
View ArticleRotate the Text in a Excel sheet
Hi,i have following code to format my Cells. On which point i have to add the Alignment to rotate my Text?I tried it to add in Font index 3 "new Alignment() { TextRotation = (UInt32Value)90U }" but...
View ArticlePrint with openXML
Hello,i create a SpreadsheetDocument with open XML. When i finish and saved the Document i want to print it with different Values like Landscape format and edit the top margin.Is there a way with open...
View ArticleDocumentFormat.OpenXml.Wordprocessing.Body Constructor remove escaped characters
I'm opening a .dotx file and load it into a MemoryStream:MemoryStream memoryStream = null; //this will hold our in memory Word doc using(Stream templateStream = File.Open(templatePath, FileMode.Open,...
View ArticleMake custom property as read only using OpenXML
So far I've been able to set custom properties to a Word doc by using OpenXML with the help of below codeCodeI want to make this property as non editable ( read only ) from word properties details UI....
View ArticleWrite to XLS file without using Office client application ?
https://support.microsoft.com/en-us/kb/257757 said "Microsoft strongly recommends a number of alternatives that do not require Office to be installed server-side, and that can perform most common tasks...
View ArticleFill a specific Shape - ShapeStyle with color C# PowerPoint OpenXML
I would like to change the fill color of a few shapes in a slide. I found this tutorial on msdn, but it only mention a very specific scenario (first shape of first slide, in a presentation where there...
View ArticleProblem to DocumentFormat
Hi, How to correct thisError 2 'DocumentFormat.OpenXml.Packaging.SpreadsheetDocument' does not contain a definition for 'WorksheetParts' and no extension method 'WorksheetParts' accepting a first...
View Articlehow to use cell formula while using openxmlwriter in SAX approach
We are using the SAX approach to write excel because DOM approach is giving issue out of memory exceptionCan anybody help to share a reference forhow to use the cellformula if we use openxmlwriter to...
View ArticleWhy won't we store dates, numeric values in 'Sharedstring.xml' in excel xml...
Hai all,Why won't we store dates, numeric values in 'Sharedstring.xml' file as other values. and also when i save a date in excel.In excel I entered by selecting the format date and entered...
View ArticleProblem to line
Hi, How to correct Excel.Worksheet sheet2 = Book0.WorkbookPart.Workbook.Descendants<Sheet>().Where(s => s.Name == "Sheet Overall"); due toError 2 Cannot implicitly convert type...
View Article