openxml-sdk Questions

4

I'm implementing ms word document generation using content controls and OpenXML SDK. I'd like to have some automated testing for that code (unit tests or some easy UI automation tests). Does anyo...
Ribal asked 28/7, 2010 at 19:11

5

Solved

I am attempting to write out an Excel file from an ASP.NET web server using OpenXML. I have about 2100 records and its taking around 20-30 seconds to do this. Any way I can make it faster? Retrievi...
Anastase asked 10/5, 2012 at 21:55

3

Solved

i would like to access some built in properties(like author,last modified date,etc.) of an open xml word doc file. i would like to use open xml sdk2.0 for this purpose. so i wonder if there is any ...
Afroasian asked 13/12, 2010 at 21:48

7

Solved

I'm using Microsoft Open XML SDK 2 and I'm having a really hard time inserting a date into a cell. I can insert numbers without a problem by setting Cell.DataType = CellValues.Number, but when I do...
Attainder asked 7/5, 2010 at 23:50

2

Solved

I want to apply a text alignment in table cell in a table with OpenXML. I don't understand why it is not applied. Table table = new Table(); TableRow tableHeader = new TableRow(); table.AppendChi...
Interleave asked 2/8, 2012 at 14:27

3

My OpenXML Word document generation project requires text, tables, and images. But first, I need a document header with a logo (image) in it. I've used the Microsoft example for creating headers a...
Palmate asked 18/7, 2013 at 14:23

3

I am creating a sample handler to generate simple Word document. This document will contains the text Hello world This is the code I use (C# .NET 3.5), I got the Word document created but there i...
Mckale asked 24/4, 2013 at 14:27

5

Solved

I'm attempting to open a Word document, change some text and then save the changes to a new document. I can get the first bit done using the code below but I can't figure out how to save the change...
Unduly asked 11/1, 2012 at 11:4

3

Solved

I can successfully inject a piece of VBA code into a generated excel workbook, but what I am trying to do is use the Workbook_Open() event so the VBA code executes when the file opens. I am adding ...
Trin asked 14/3, 2012 at 17:46

1

Solved

I'm parsing a piece of hmtl into a word document using the following code //Need the following packages //<package id="DocumentFormat.OpenXml" version="2.7.2" targetFramework="net471" /> //&...
Shanaeshanahan asked 1/6, 2018 at 14:32

2

Solved

I have an XML file with the data that I need to be populated on a Word document. I need to find a way, to define a template which can be used as a base line to populate data from an XML file and c...
Lavernalaverne asked 1/5, 2018 at 13:39

1

Solved

I am new at OpenXML c# and I want to read rows from excel file. But I need to read excel sheet by name. this is my sample code that reads first sheet: using (var spreadSheet = SpreadsheetDocument...
Toothpick asked 22/4, 2018 at 12:25

3

I am trying to create an AddAlternativeFormatImportPart in a .docx file in order to reference it in the document via an AltChunk. the problem is that the code below causes the docx file to read as ...
Mandymandych asked 23/12, 2011 at 14:30

2

Solved

This is my code that modifies a PowerPoint presentation, saves it as a new file, closes it, then tries to open that file. var doc = PresentationDocument.Open(@"d:\temp.pptx", true); //... procces...
Ralf asked 10/4, 2018 at 8:33

2

Solved

I have the following code to save a Word document via OpenXML SDK into a new document via "SaveAs". I then want to try and read the file created from ASP.Net, however I am unable to do so as the fi...
Unbeknown asked 3/4, 2018 at 14:55

2

Solved

Sorry my English :) There is a code using (var sourceDoc = PresentationDocument.Open(@"d:\source.pptx", false)) { using (var destDoc = PresentationDocument.Open(@"d:\dest.pptx", true)) { } } ...
Boxthorn asked 23/3, 2018 at 15:44

10

Solved

I am using C#.net Windows Desktop Application.I want to run these application with other platform also. So, i am using Mono 2.10 as a cross compiler.While running,unexpectedly my Application is ter...
Carolyncarolyne asked 10/3, 2011 at 10:29

5

Solved

I am using the Open XML SDK to open an Excel xlsx file and I try to read the cellvalue on position A1 in each sheet. I use the following code: using (SpreadsheetDocument spreadsheetDocument = Spre...
Fanjet asked 25/2, 2011 at 8:49

1

Solved

I would normally use ClosedXML to generate Excel files. A Core project is forcing me to use only OpenXML. The resulting Excel file will be downloaded. I am having an issue where the memory stre...
Shill asked 15/1, 2018 at 16:36

1

I'm trying to connect to a Microsoft word document (.docx) to read values from tables located in the .docx. I'm using Open-XML SDK 2.0 to make the connection to the .docx file. So far after looking...
Demilune asked 2/8, 2017 at 16:31

1

Solved

for (var i = 0; i <= data.GetUpperBound(0); i++) { var tr = new DocumentFormat.OpenXml.Wordprocessing.TableRow(); for (var j = 0; j <= data.GetUpperBound(1); j++) { var tc = new DocumentF...
Torrietorrin asked 22/6, 2017 at 7:31

1

Solved

Can Anyone please explain How Style Index in OpenXml works? I have a business requirement where I need to apply background color to certain cells in an excel sheet. And Some style is already applie...
Garrow asked 30/6, 2017 at 5:57

3

Solved

I downloaded the OpenXML SDK Productivity Tool 2.5 from Microsoft's Website However when I want to install it, I get told I need to install .NET Framework 4 first and the install won't continue wit...
Calculate asked 11/12, 2015 at 7:33

2

Solved

I've got lots of XLSX files and I need to append a new row after the last one in the file. I'm using OpenXML and so far I know how to open/create spreadsheet, but my search for adding new row...
Tonisha asked 12/7, 2011 at 13:54

3

Solved

I have a function that reads from an excel file and stores the results in a DataSet. I have another function that writes to an excel file. When I try to read from a regular human-generated excel fi...
Trichloride asked 6/8, 2014 at 16:38

© 2022 - 2024 — McMap. All rights reserved.