Spire.Office 8.5.3 for .NET 哪里值得更新?

这篇具有很好参考价值的文章主要介绍了Spire.Office 8.5.3 for .NET 哪里值得更新?。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Spire.Office for .NET is a combination of Enterprise-Level Office .NET API offered by E-iceblue. It includes Spire.Doc, Spire.XLS, Spire.Spreadsheet, Spire.Presentation, Spire.PDF, Spire.DataExport, Spire.OfficeViewer, Spire.PDFViewer, Spire.DocViewer, Spire.Barcode and Spire.Email. Spire.Office contains the most up-to-date versions of the above .NET API.

Spire.Office 8.5.3 for .NET 哪里值得更新?

With Spire.Office for .NET, developers can create a wide range of applications. It enables developers to open, create, modify, convert, print, View MS Word, Excel, PowerPoint and PDF documents. Furthermore, it allows users to export data to popular files such as MS Word/Excel/RTF/Access, PowerPoint, PDF, XPS, HTML, XML, Text, CSV, DBF, Clipboard, SYLK, PostScript, PCL, etc.

 

Spire.Office for .NET can be linked into any type of a 32-bit or 64-bit .NET application including ASP.NET, Web Services and WinForms for .NET Framework version 2.0 to 4.5. Spire.Office also supports to work on .NET Core, .NET 5.0, .NET 6.0, Microsoft Azure, Mono Android and Xamarin.iOS.文章来源地址https://www.toymoban.com/news/detail-459163.html

Here is a list of changes made in this release
Spire.Doc
Category ID Description
New feature - Supports adding charts.
//Create word document
Document document = new Document();
 
//Create a new section
Section section = document.AddSection();
 
//Create a new paragraph and append text
section.AddParagraph().AppendText("Column chart.");
 
//Create a new section to append column chart
Paragraph newPara = section.AddParagraph();
ShapeObject shape = newPara.AppendChart(ChartType.Column, 500, 300);
 
//Clear the chart's series data to start with a clean chart.
Chart chart = shape.Chart;
chart.Series.Clear();
 
//Add a custom series to the chart with categories for the X-axis, and large respective numeric values for the Y-axis. 
chart.Series.Add("Test Series",
    new[] { "Word", "PDF", "Excel", "GoogleDocs", "Office" },
    new double[] { 1900000, 850000, 2100000, 600000, 1500000 });
 
//Set the number format of the Y-axis tick labels to group digits with commas. 
chart.AxisY.NumberFormat.FormatCode = "#,##0";
 
//Save the result file.
document.SaveToFile("AppendColumnChart.docx", FileFormat.Docx);
//Create word document
Document document = new Document();
 
//Create a new section
Section section = document.AddSection();
 
//Create a new paragraph and append text
section.AddParagraph().AppendText("Bubble chart.");
 
//Create a new paragraph and appen bubble chart
Paragraph newPara = section.AddParagraph();
ShapeObject shape = newPara.AppendChart(ChartType.Bubble, 500, 300);
 
//Clear char's series data to start with a clean chart
Chart chart = shape.Chart;
chart.Series.Clear();
 
//Add a custom series with X/Y coordinates and diameter of each bubbles. 
ChartSeries series = chart.Series.Add("Test Series",
    new[] { 2.9, 3.5, 1.1, 4.0, 4.0 },
    new[] { 1.9, 8.5, 2.1, 6.0, 1.5 },
    new[] { 9.0, 4.5, 2.5, 8.0, 5.0 });
 
//Save doc file.
document.SaveToFile("AppendBubbleChart.docx", FileFormat.Docx);
//Create word document
Document document = new Document();
 
//Create a new section
Section section = document.AddSection();
 
//Create a new paragraph and append text
section.AddParagraph().AppendText("Line chart.");
 
//Create a new paragraph to append line chart
Paragraph newPara = section.AddParagraph();
ShapeObject shape = newPara.AppendChart(ChartType.Line, 500, 300);
 
//Clear series data of line chart to start with a clean chart   
Chart chart = shape.Chart;
ChartTitle title = chart.Title;
title.Text = "My Chart";
ChartSeriesCollection seriesColl = chart.Series;
seriesColl.Clear();
 
//Set new data to chart
string[] categories = { "C1", "C2", "C3", "C4", "C5", "C6" };
seriesColl.Add("AW Series 1", categories, new double[] { 1, 2, 2.5, 4, 5, 6 });
seriesColl.Add("AW Series 2", categories, new double[] { 2, 3, 3.5, 6, 6.5, 7 });
 
//Save doc file.
document.SaveToFile("AppendLineChart.docx", FileFormat.Docx);
//Create a word document
Document document = new Document();
 
//Create a new section
Section section = document.AddSection();
 
//Create a new paragraph and append text
section.AddParagraph().AppendText("Pie chart.");
 
//Create a new paragraph to append pie chart
Paragraph newPara = section.AddParagraph();
ShapeObject shape = newPara.AppendChart(ChartType.Pie, 500, 300);
Chart chart = shape.Chart;
 
//Insert a custom chart series with a category name for each sectors and their frequency value.
ChartSeries series = chart.Series.Add("Test Series",
  new[] { "Word", "PDF", "Excel" },
  new[] { 2.7, 3.2, 0.8 });
 
//Save to a docx file.
document.SaveToFile("AppendPieChart.docx", FileFormat.Docx);
//Create word document
Document document = new Document();
 
//Create a new section
Section section = document.AddSection();
 
//Create a new paragraph and append text
section.AddParagraph().AppendText("Scatter chart.");
 
//Create a new paragraph to append scatter chart
Paragraph newPara = section.AddParagraph();
ShapeObject shape = newPara.AppendChart(ChartType.Scatter, 450, 300);
Chart chart = shape.Chart;
 
//Clear the chart's series data to start with a clean chart.
chart.Series.Clear();
 
//Insert a series with X/Y coordinates for five points.
chart.Series.Add("Scatter chart",
    new[] { 1.0, 2.0, 3.0, 4.0, 5.0 },
    new[] { 1.0, 20.0, 40.0, 80.0, 160.0 });
 
//Save to a docx file.
document.SaveToFile("AppendScatterChart.docx", FileFormat.Docx);
//Create word document
Document document = new Document();
 
//Create a new section
Section section = document.AddSection();
 
//Create a new paragraph and append text
section.AddParagraph().AppendText("Surface3D chart.");
 
//Create a new paragraph to append surface 3D chart
Paragraph newPara = section.AddParagraph();
ShapeObject shape = newPara.AppendChart(ChartType.Surface3D, 500, 300);
 
//Clear its series data to start with a clean chart
Chart chart = shape.Chart;
chart.Series.Clear();
 
 
chart.Title.Text = "My chart";
 
//Add three series
chart.Series.Add("Series 1",
    new string[] { "Word", "PDF", "Excel", "GoogleDocs", "Office" },
    new double[] { 1900000, 850000, 2100000, 600000, 1500000 });
 
chart.Series.Add("Series 2",
    new string[] { "Word", "PDF", "Excel", "GoogleDocs", "Office" },
    new double[] { 900000, 50000, 1100000, 400000, 2500000 });
 
chart.Series.Add("Series 3",
    new string[] { "Word", "PDF", "Excel", "GoogleDocs", "Office" },
    new double[] { 500000, 820000, 1500000, 400000, 100000 });
 
//Save to a docx file.
document.SaveToFile("AppendSurface3DChart.docx", FileFormat.Docx);
//Create word document
Document document = new Document();
 
//Create a new section
Section section = document.AddSection();
 
//Create a new paragraph and append text
section.AddParagraph().AppendText("Bar chart.");
 
//Create a new paragraph to append bar chart
Paragraph newPara = section.AddParagraph();
ShapeObject chartShape = newPara.AppendChart(ChartType.Bar, 400, 300);
Chart chart = chartShape.Chart;
 
//Use the "Title" property to give bar chart a title, which appears at the top center of the chart area.
ChartTitle title = chart.Title;
title.Text = "My Chart";
 
//Set the "Show" property to "true" to make the title visible. 
title.Show = true;
 
//Set the "Overlay" property to "true". Give other chart elements more room by allowing them to overlap the title
title.Overlay = true;
 
//Save to docx file.
document.SaveToFile("AppendBarChart.docx", FileFormat.Docx);
New feature - Supports adding SVG documents.
Document document = new Document();
Section section = document.AddSection();
string svgFile = "sample.svg";
Paragraph para = section.AddParagraph();
DocPicture svgPicture = para.AppendPicture(svgFile);
svgPicture.Width = 200;
svgPicture.Height = 200;
String DocxResult = "Result-AddSvg.docx";
document.SaveToFile(DocxResult, FileFormat.Docx2016);
New feature - Supports printing multiple pages onto one page.
doc.LoadFromFile(inputFile, FileFormat.Docx);
System.Windows.Forms.PrintDialog printDialog = new System.Windows.Forms.PrintDialog();
printDialog.PrinterSettings.PrintToFile = true;
printDialog.PrinterSettings.PrintFileName = "sample-new-4.xps";
doc.PrintDialog = printDialog;
doc.PrintMultipageToOneSheet(PagesPreSheet.FourPages, true);
New feature - Support manipulating pages, such as retrieving page content and its coordinates.
Document doc = new Document();
doc.LoadFromFile(inputFile, FileFormat.Docx);
FixedLayoutDocument layoutDoc = new FixedLayoutDocument(doc);
 
// Access to the line of the first page and print to the console.
FixedLayoutLine line = layoutDoc.Pages[0].Columns[0].Lines[0];
 
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.AppendLine("Line: " + line.Text);
 
// With a rendered line, the original paragraph in the document object model can be returned.
Paragraph para = line.Paragraph;
stringBuilder.AppendLine("Paragraph text: " + para.Text);
 
// Retrieve all the text that appears on the first page in plain text format (including headers and footers).
string pageText = layoutDoc.Pages[0].Text;
stringBuilder.AppendLine(pageText);
 
// Loop through each page in the document and print the count of the lines appear on each page.
foreach (FixedLayoutPage page in layoutDoc.Pages)
{
    LayoutCollection lines = page.GetChildEntities(LayoutElementType.Line, true);
    stringBuilder.AppendLine("Page " + page.PageIndex + " has " + lines.Count + " lines.");
}
 
// This method provides a reverse lookup of layout entities for any given node
// (except runs and nodes in the header and footer).
stringBuilder.AppendLine("The lines of the first paragraph:");
foreach (FixedLayoutLine paragraphLine in layoutDoc.GetLayoutEntitiesOfNode(
    ((Section)doc.FirstChild).Body.Paragraphs[0]))
{
    stringBuilder.AppendLine(paragraphLine.Text.Trim());
    stringBuilder.AppendLine(paragraphLine.Rectangle.ToString());
}
File.WriteAllText("page.txt", stringBuilder.ToString());
Spire.XLS
Category ID Description
New feature SPIREXLS-4561 Supports ISO.CEILING function.
Workbook workbook = new Workbook();
workbook.Worksheets[0].Range["A1"].Formula = "ISO.CEILING(12.69,2)";
workbook.CalculateAllValue();
workbook.SaveToFile("result.xlsx",ExcelVersion.Version2016);
New feature SPIREXLS-4564 Supports WORKDAY.INTL function.
Workbook workbook = new Workbook();
workbook.Worksheets[0].Range["A1"].Formula = "=WORKDAY.INTL(DATE(2023,3,17),25,1,DATE(2023,3,20))";
workbook.CalculateAllValue();
workbook.SaveToFile("result.xlsx",ExcelVersion.Version2016);
New feature SPIREXLS-4608 Supports EVALUATE function in WPS.
Bug SPIREXLS-4568 Fixed the issue that System.ArgumentException exception was thrown in concurrent conversion of worksheets to HTML program.
Bug SPIREXLS-4575 Fixed the issue that when filling some cells with color, other cells are also filled.
Bug SPIREXLS-4599 Fixed the issue that it failed to copy some cells.
Bug SPIREXLS-4600 Fixed the issue that System.OutOfMemoryException exception was thrown when converting Excel to HTML.
Bug SPIREXLS-4607 Fixed the issue that System.IndexOutOfRangeException exception was thrown when loading Excel files.
Bug SPIREXLS-4613 Fixed the issue that function area of the menu bar was incorrect after saving the document.
Bug SPIREXLS-4626 Fixed the issue that many blank columns were generated after deleting hidden rows.
Bug SPIREXLS-4627 Fixed the issue that the content was incorrect when using .Net Standard package to convert sheets to images.
Spire.PDF
Category ID Description
New feature SPIREPDF-5840 Optimizes the function of compressing PDF documents.
PdfCompressor compressor = new PdfCompressor("input.pdf");
compressor.Options.TextCompressionOptions.UnembedFonts = true;
compressor.Options.ImageCompressionOptions.CompressImage = true;
compressor.Options.ImageCompressionOptions.ResizeImages = true;
compressor.Options.ImageCompressionOptions.ImageQuality = ImageQuality.Low;
compressor.CompressToFile("output.pdf");
Bug SPIREPDF-5170 Fixes the issue that inserting html code containing <ul> tags, etc. did not take effect.
Bug SPIREPDF-5601 Fixes the issue that the result document failed to open with Adobe tools after copying pdf pages.
Bug SPIREPDF-5883 Fixes the issue that text wrapping was incorrect after converting PDF to Word.
Bug SPIREPDF-5897 Fixes the issue that spaces between words disappeared after converting PDF to images.
Bug SPIREPDF-5903 Fixes the issue that highlighting text failed.
Bug SPIREPDF-5923 Fixes the issue that null pointer exceptions occurred when saving flattened form fields.
Bug SPIREPDF-5938 Fixes the issue that annotations were lost after printing PDF files with annotations.
Bug SPIREPDF-5939 Fixes the issue that table extraction results were incorrect.
Bug SPIREPDF-5950 Fixes the issue that System.InvalidOperationException exceptions occurred when converting PDF to OFD.
Bug SPIREPDF-5951 Fixes the issue that extracted text exceeded the table boundaries.
Bug SPIREPDF-5952 Fixes the issue that setting the width with PdfAnnotationBorder border = new PdfAnnotationBorder() {Width = 20f} did not work.
Bug SPIREPDF-5968 Fixes the issue that filling XFA Form fields failed.
Bug SPIREPDF-5970 Fixes the issue that System.ArgumentException exceptions occurred when converting OFD to PDF.
Spire.Email
Category ID Description
Bug SPIREEMAIL-76 Fixes the issue that it was failed to connect to Imap server and Pop3 server when used in the NetFramework application.

到了这里,关于Spire.Office 8.5.3 for .NET 哪里值得更新?的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Spire.Barcode for Java 5.1.0 + Spire.Barcode for .NET 7.2.0

    Spire.Barcode for Java is a professional barcode component specially designed for developers to generate, read and scan 1D 2D barcodes on Java applications (J2SE and J2EE). Developers and programmers can use Spire.Barcode to add Enterprise-Level barcode formats to their Java applications quickly and easily. Spire.Barcode for Java provides a very easy way to

    2024年02月16日
    浏览(34)
  • Spire.PDF for .NET 9.8.5 Crack

    Spire.PDF for .NET is a professional PDF API applied to creating, writing, editing, handling and reading PDF files without any external dependencies within .NET ( C#, VB.NET, ASP.NET, .NET Core, .NET 5.0, .NET 6.0, .NET 7.0, MonoAndroid and Xamarin.iOS ) application. Using this .NET PDF library, you can implement rich capabilities to create PDF files from sc

    2024年02月10日
    浏览(33)
  • PDF控件Spire.PDF for .NET【安全】演示:加密 PDF 文档

    加密PDF是人们常用的保护PDF的方法。无论对于公司还是个人,使用PDF加密来设置一些限制都是必不可少的。为了使PDF文档可供未经授权的用户阅读但无法修改,加密的PDF文档需要两个密码:所有者密码和用户密码。本节将特别介绍一种通过 Spire.PDF for .NET 使用 C#、VB.NET 快速加

    2024年03月14日
    浏览(37)
  • Spire.PDF for .NET【文档操作】演示:合并 PDF 文件并添加页码

    需要合并 PDF 的原因有很多。例如,合并 PDF 文件允许您打印单个文件,而不是为打印机排队多个文档,组合相关文件通过减少要搜索和组织的文件数量来简化管理和存储多个文档的过程。在本文中,您将学习如何使用Spire.PDF for .NET将多个 PDF 文档合并为一个 PDF 文档,以及如

    2024年04月09日
    浏览(67)
  • PDF控件Spire.PDF for .NET【安全】演示:更改 PDF 文档的安全权限

    当您使用密码保护 PDF 文档时,您可以选择指定一组权限。权限决定用户如何与文件交互。例如,您可以对文档应用权限以禁止用户打印或使用剪切和粘贴操作。本文演示如何在C# 和 VB.NET中使用Spire.PDF for .NET更改 PDF 文档的安全权限。 Spire.PDF for .NET 是一款独立 PDF 控件,用于

    2024年01月19日
    浏览(49)
  • PDF控件Spire.PDF for .NET【安全】演示:如何在 PDF 中添加签名字段

    Spire.PDF for .NET 是一款独立 PDF 控件,用于 .NET 程序中创建、编辑和操作 PDF 文档。使用 Spire.PDF 类库,开发人员可以新建一个 PDF 文档或者对现有的 PDF 文档进行处理,且无需安装 Adobe Acrobat。 E-iceblue 功能类库Spire 系列文档处理组件均由中国本土团队研发,不依赖第三方软件

    2024年02月20日
    浏览(30)
  • PDF控件Spire.PDF for .NET【安全】演示:在 PDF 中添加或删除数字签名

    随着 PDF 文档在商业中越来越流行,确保其真实性已成为一个关键问题。使用基于证书的签名对 PDF 进行签名可以保护内容,还可以让其他人知道谁签署或批准了该文档。在本文中,您将了解如何使用不可见或可见签名对 PDF 进行数字签名,以及如何使用Spire.PDF for .NET从 PDF 中

    2024年02月03日
    浏览(40)
  • Spire.PDF for .NET【文档操作】演示:动态创建 PDF 并将其发送到客户端浏览器

    可移植文档格式 (PDF) 是 Adobe 制定的独立规范的固定版式文档。它封装了完整的描述,包括文本字体、图形和显示它所需的其他信息。 Spire.PDF for .NET 是一款独立 PDF 控件,用于 .NET 程序中创建、编辑和操作 PDF 文档。使用 Spire.PDF 类库,开发人员可以新建一个 PDF 文档或者对现

    2024年04月25日
    浏览(36)
  • PDF控件Spire.PDF for .NET【安全】演示:使用文本或/和图像对 PDF 进行数字签名

    数字签名确保签名的文档不能被除其作者之外的任何人更改。添加签名是确保文档内容真实性的最常见方法。PDF 文档中的可视数字签名可以显示文本或图像(例如手写签名)。本文从以下三个方面介绍如何使用Spire.PDF for .NET对PDF 进行数字签名。 Spire.PDF for .NET 是一款独立

    2024年01月23日
    浏览(36)
  • PDF控件Spire.PDF for .NET【安全】演示:使用时间戳服务器对 PDF 进行数字签名

    Spire.PDF for .NET 是一款独立 PDF 控件,用于 .NET 程序中创建、编辑和操作 PDF 文档。使用 Spire.PDF 类库,开发人员可以新建一个 PDF 文档或者对现有的 PDF 文档进行处理,且无需安装 Adobe Acrobat。 E-iceblue 功能类库Spire 系列文档处理组件均由中国本土团队研发,不依赖第三方软件

    2024年04月10日
    浏览(45)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包