当前位置: 首页 > news >正文

英文网站建设需求百度分享wordpress

英文网站建设需求,百度分享wordpress,wordpress按分类调用文章,wordpress可以做手机网Spire.Doc for .NET是一款专门对 Word 文档进行操作的 .NET 类库。在于帮助开发人员无需安装 Microsoft Word情况下#xff0c;轻松快捷高效地创建、编辑、转换和打印 Microsoft Word 文档。拥有近10年专业开发经验Spire系列办公文档开发工具#xff0c;专注于创建、编辑、转…Spire.Doc for .NET是一款专门对 Word 文档进行操作的 .NET 类库。在于帮助开发人员无需安装 Microsoft Word情况下轻松快捷高效地创建、编辑、转换和打印 Microsoft Word 文档。拥有近10年专业开发经验Spire系列办公文档开发工具专注于创建、编辑、转换和打印Word/PDF/Excel等格式文件处理小巧便捷。  E-iceblue 功能类库Spire 系列文档处理组件均由中国本土团队研发不依赖第三方软件不受其他国家的技术或法律法规限制同时适配国产操作系统如中科方德、中标麒麟等兼容国产文档处理软件 WPS如 .wps/.et/.dps 等格式 Spire.Doc for.NET 最新下载qun767755948https://www.evget.com/product/3368/download Microsoft Word 中的表格可以包含多种元素包括文本、图像等等。有时您可能希望将图像插入表格中以显示一些信息或从表格中提取图像以用于其他文档。本文将教您如何使用 Spire.Doc for .NET在 C# 和 VB.NET 中的 Word 文档中的表格中插入或提取图像。 安装适用于 .NET 的 Spire.Doc PM Install-Package Spire.Doc 在 C# 和 VB.NET 中将图像插入到 Word 文档的表格中 在 Microsoft Word 中您可以将两个或多个相邻的单元格水平或垂直合并为一个更大的单元格。在 Spire.Doc 中您可以使用Table.ApplyHorizontalMerge()或Table.ApplyVerticalMerge()方法实现相同的目的。以下是详细步骤 初始化Document类的一个实例。使用Document.LoadFromFile()方法加载 Word 文档。通过Document.Sections[int]属性通过索引获取文档中的特定部分。使用Section.AddTable()方法将表格添加到该部分。使用Table.ResetCells()方法指定表格的行数和列数。使用Table.ApplyHorizontalMerge()方法水平合并表格中的特定单元格。使用Table.ApplyVerticalMerge()方法垂直合并表格中的特定单元格。向表中添加一些数据。将样式应用于表格。使用Document.SaveToFile()方法保存结果文档。 [ C# ] using Spire.Doc; using Spire.Doc.Documents;namespace MergeTableCells { class Program { static void Main(string[] args) { //Create a Document instance Document document new Document(); //Load a Word document document.LoadFromFile(Input.docx);//Get the first section Section section document.Sections[0];//Add a 4 x 4 table to the section Table table section.AddTable(); table.ResetCells(4, 4);//Horizontally merge cells 1, 2, 3, and 4 in the first row table.ApplyHorizontalMerge(0, 0, 3); //Vertically merge cells 3 and 4 in the first column table.ApplyVerticalMerge(0, 2, 3);//Add some data to the table for (int row 0; row table.Rows.Count; row) { for (int col 0; col table.Rows[row].Cells.Count; col) { TableCell cell table[row, col]; cell.CellFormat.VerticalAlignment VerticalAlignment.Middle; Paragraph paragraph cell.AddParagraph(); paragraph.Format.HorizontalAlignment HorizontalAlignment.Center; paragraph.Text Text; } }//Apply a style to the table table.ApplyStyle(DefaultTableStyle.LightGridAccent1);//Save the result document document.SaveToFile(MergeCells.docx, FileFormat.Docx2013); } } } 【VB.NET】 Imports Spire.Doc Imports Spire.Doc.DocumentsNamespace MergeTableCells Friend Class Program Private Shared Sub Main(ByVal args As String()) Create a Document instance Dim document As Document New Document() Load a Word document document.LoadFromFile(Input.docx)Get the first section Dim section As Section document.Sections(0)Add a 4 x 4 table to the section Dim table As Table section.AddTable() table.ResetCells(4, 4)Horizontally merge cells 1, 2, 3, and 4 in the first row table.ApplyHorizontalMerge(0, 0, 3) Vertically merge cells 3 and 4 in the first column table.ApplyVerticalMerge(0, 2, 3)Add some data to the table For row As Integer 0 To table.Rows.Count - 1 For col As Integer 0 To table.Rows(row).Cells.Count - 1 Dim cell As TableCell table(row, col) cell.CellFormat.VerticalAlignment VerticalAlignment.Middle Dim paragraph As Paragraph cell.AddParagraph() paragraph.Format.HorizontalAlignment HorizontalAlignment.Center paragraph.Text Text Next NextApply a style to the table table.ApplyStyle(DefaultTableStyle.LightGridAccent1)Save the result document document.SaveToFile(MergeCells.docx, FileFormat.Docx2013) End Sub End Class End Namespace 使用 C# 和 VB.NET 在 Word 中拆分表格单元格 Spire.Doc for .NET 提供了TableCell.SplitCell()方法使您能够将 Word 表格中的一个单元格拆分为两个或多个单元格。以下是详细步骤 初始化Document类的一个实例。使用Document.LoadFromFile()方法加载 Word 文档。通过Document.Sections[int]属性通过索引获取文档中的特定部分。通过Section.Tables[int]属性根据其索引获取节中的特定表。通过Table.Rows[int].Cells[int]属性获取要拆分的表格单元格。使用TableCell.SplitCell()方法将单元格拆分为特定数量的列和行。使用Document.SaveToFile()方法保存结果文档。 [C] using Spire.Doc;namespace SplitTableCells { class Program { static void Main(string[] args) { //Create a Document instance Document document new Document(); //Load a Word Document document.LoadFromFile(MergeCells.docx);//Get the first section Section section document.Sections[0];//Get the first table in the section Table table section.Tables[0] as Table;//Get the 4th cell in the 4th row TableCell cell1 table.Rows[3].Cells[3]; //Split the cell into 2 columns and 2 rows cell1.SplitCell(2, 2);//save the result document document.SaveToFile(SplitCells.docx, FileFormat.Docx2013); } } } 【VB.NET】 Imports Spire.DocNamespace SplitTableCells Friend Class Program Private Shared Sub Main(ByVal args As String()) Create a Document instance Dim document As Document New Document() Load a Word Document document.LoadFromFile(MergeCells.docx)Get the first section Dim section As Section document.Sections(0)Get the first table in the section Dim table As Table TryCast(section.Tables(0), Table)Get the 4th cell in the 4th row Dim cell1 As TableCell table.Rows(3).Cells(3) Split the cell into 2 columns and 2 rows cell1.SplitCell(2, 2)save the result document document.SaveToFile(SplitCells.docx, FileFormat.Docx2013) End Sub End Class End Namespace 以上便是如何在C#/VB.NET在 Word 表格中插入或提取图像如果您有其他问题也可以继续浏览本系列文章获取相关教程你还可以给我留言或者加入我们的官方技术交流群。
http://www.hkea.cn/news/14335506/

相关文章:

  • 做网站需要什么硬件自己家的电脑宽带50m做网站服务器
  • 网站怎么定位注册公司需要钱吗
  • 中国做爰网站wordpress手机发布
  • 外贸网站使用什么品牌国外主机高清图片素材网站免费下载
  • 网站流量合作如何在网站上显示百度权重
  • 网站广告费一般多少钱it外包价格
  • go生物网站做蛋白定位自己网页制作的目标和受众
  • 潍坊建设企业网站直播系统
  • 网站推广的方法及特点广州海珠区好玩的地方
  • 怎样看网站是什么语言做的深圳福田网站优化网络营销培训学校
  • 建设银行湖北省分行 网站双创网站建设
  • 邢台建网站Wordpress收费下载会员
  • 网站建设 案例展示厦门网站建设模拟
  • 网站建设有没有做的必要西安网站制作工商
  • 网站建设公告何为响应式网站
  • 做海报用什么网站科技公司简介
  • 湖北网站建设企业微信公众号如何分享wordpress
  • 网站被黑应该怎么做北京移动官网网站建设
  • 安阳专业做网站公司提高网站粘性
  • 创建站点的步骤平度推广网站建设
  • 旅游网站开发的背景及意义西安快速建站网络公司
  • 上海高中生做课题的网站做宽屏网站
  • 专业做网站套餐找人做网站内容自己编辑吗
  • 湛江模板建站公司响应式网站特点
  • 深圳网站建设599元全包软件开发培训多少钱
  • 邯郸建设公司网站建筑人才网官网登录
  • 平面设计专业网站网站开发必须要做前端吗
  • 景德镇网站制作公司番禺品牌型网站建设
  • 凡科网站可以做淘宝客吗企业融资方式有哪几种
  • 做网站要用什么服务器吗建筑公司网站md0095设计风格