Questions tagged [openxml-table]

18 questions
3
votes
0 answers

Insert formatted HTML string in Powerpoint in placeholder using Open XML

I am creating one slide PowerPoint file using open XML. I have tagged the placeholder in the PPT which i need to update programatically. I am able to find the placeholder and can update its value from the database. Now the problem is I need to…
Rohit daga
  • 71
  • 8
2
votes
0 answers

Create OpenXML Table With C#

I'm having issues making an actual table in my excel file. The file is created and all the data is there, but when I open the file the table definition doesn't exist. I'm using this method to try and turn the data range into a table. private…
Gargoyle
  • 9,590
  • 16
  • 80
  • 145
1
vote
0 answers

Open XML Removal of MS Word Table Rows Corrupting Images

I am trying to remove some rows in a table on a MS Word document. Below is how the table, before processing looks like: I analyzed this table to understand the open XML representation the below is how the InnerText property is being formulated…
user2129013
  • 102
  • 1
  • 9
1
vote
1 answer

Open XML 2.0 Word Document Merge Cell Horizontally

I have a task where I need to merge more than 2 cells, with below code I am able to merge only 2 cells in the table header under word document. var tc = new TableCell(); Text header = new Text(""); if (j == 0) { header = new Text("Header1"); …
MVCDEV
  • 25
  • 6
1
vote
1 answer

OpenXML Add TableHeader to table in Word Document

I am using .Net to create a Word Document with a dynamic table. This document can span multiple pages. I would like to add a table header to the table, such that every new page will have that header. I found this documentation, but nothing else: …
jason
  • 3,821
  • 10
  • 63
  • 120
1
vote
1 answer

C# copy a table from a word document and add it to another word document

I want to get a table from a MS Word document and add that table to another document with all it's formatting. I am using OOXML to do this. To identify a specific table I have assigned "Alt Text -> Title" and I am able to get table and it's content…
Mahesh
  • 402
  • 2
  • 5
  • 16
1
vote
1 answer

Why is my Excel Table programmaticaly created with OpenXml throwing errors when open file?

EDIT : For the need of my project I'll work with EPPlus (Thanks to the Tsahi Asher's comment) package which fit perfectly with what we need to manipulate Excel and wrap OpenXML. My problem for this project is so solved, but I'm still pretty…
Zoma
  • 321
  • 7
  • 20
1
vote
0 answers

OpenXML table gridSpan property

I have created a DOCX document in LibreOffice 5.3.7.2.0+ with a table like the following: +-------+---+---+---+ | A | B | C | D | +---+---+---+---+---+ | E | F | G | H | I | +---+---+---+---+---+ You can see that cell A is two cells in width,…
erdos
  • 3,135
  • 2
  • 16
  • 27
1
vote
1 answer

What .xlsx file format is this?

Using an existing SSIS package, I was trying to import .xlsx files we received from a client. I received the error message: External table is not in the expected format These files will open in XL When I use XL (currently XL2010) to Save As...…
1
vote
1 answer

To make cell bold of an excel using Excel.OpenXml.Table

To make cell bold of an excel using Excel.OpenXml.Table . The code : XLTable objXLTable = new XLTable("TEST"); Row objDataRow = new Row(RowType.Data); for(int i=0; i< 10 ; i++) { Cell c1 = new Cell("Row…
Fool
  • 139
  • 3
  • 15
0
votes
0 answers

OpenXML PPT table gets created on foreground, making the slide title and other texts go in background

I have a scenario in which there are {placeholder Tags} in a PowerPoint template, which gets replaced by a table. The problem is the table gets created in the foreground, making the slide title and other texts before tag goes in the background. I…
0
votes
1 answer

Using open xml sdk code, how to resize a table (in ms word document) to fit into table contents?

In MS Words, to make the columns in a table automatically fit the contents, we click on the table. On the Layout tab, in the Cell Size group, click AutoFit, and then click AutoFit Contents. For example : After applying AutoFit to Content, here's…
EvaKaf
  • 35
  • 5
0
votes
1 answer

Read XML in SSMS

I'm trying to produce an output that would give me both long-descriptions, i.e. one in German and one in English. It can be two records with 1 [long-description] column and one [lang] column, or 1 record with both [long-description-de] and…
tommyhmt
  • 145
  • 2
  • 11
0
votes
2 answers

Cell formatting issue in dynamic table created with OpenXml 2.7 Wordprocessing

First I have created table manually using MS Word 2010. And then I inspected that table using Open Xml Productivity tool and used the reflected code to generate dynamic table with same cell formattings using C#. But when the Table is generated,…
snvrthn
  • 385
  • 1
  • 10
0
votes
1 answer

Embed html within a table or at specific location in a docx document

I'm trying to add HTML content to DOCX file using OpenXML altchunk approach using C#. The below sample code works fine and appends the HTML content to the end of the document. My requirement is to add HTML content at a specific place in the…
dontnetnewbie
  • 159
  • 4
  • 15
1
2