English 中文(简体)
利用开放式XML过滤表栏的内容
原标题:To filter contents of table column using Open XML

我需要利用开放式xml sdk过滤表栏的内容(在MS-word文件中)。 我能够使用<条码>参比=表格浏览表列内容(显示)。 ElementAt<OpenXmlElement>0. InnerText

What I need to do is split the content of column into muliple strings for eg: column

abcd 

efgh

我正在使用<条码>参引=表格浏览。 ElementAt<OpenXmlElement>0. InnerText

我需要将<代码>abcd和efgh分为不同的座标。

我使用的这部法典:

foreach (Table table in tables)
{
    foreach (TableRow tablerow in table.Descendants<TableRow>())
    {
        reference = tablerow.ElementAt<OpenXmlElement>(0).InnerText
    }
}
最佳回答

如果我正确理解你的问题,你只是想把扼杀分割成 sub。 可以通过以下网站做到这一点:substringssplit/a> on thecode参比><>>>>>>>>>>>>>。 证明你从你那里获得。

问题回答

暂无回答




相关问题
(OpenXML) Add data pages to xml package without framework

lately I ve been into combining multiple OpenXML speadsheets via PHPExcel which showed me that this framework has certain issues which makes it pretty much unusable for what I want to do (my related ...

Access the active Excel workbook using OpenXML and C#

I m trying to manipulate an Excel spreadsheet in C# using OpenXML. Specifically, I would like to access the currently active workbook that is open. I ve only been able to find examples that open up ...

Why OPENXML only returns one element

Can somebody explain me why this T-SQL code only returns one row with the value "1"? I was expecting to get two rows ("1" and "2"). Am I missing something here? DECLARE @XMLDoc2 XML SELECT @XMLDoc2 = ...

Change Page size of Wor Document using Open Xml SDK 2.0

My application needs export custom report to Word document using Open xml Sdk 2.0 My Export function works fine except I need to increase Page size for showing it properly. (else word wrap will be an ...

Horizontal Text alignment in Word using OpenXml Sdk 2.0

I need another help... My export function exports my report as a table in word. I need to apply horizontal alignment property for each cell. The Code I wrote for exporting is given below. Tbl is a ...

热门标签