原創(chuàng)|產(chǎn)品更新|編輯:李顯亮|2019-09-04 14:48:33.100|閱讀 266 次
概述:Spire.Office 修補程序版本更新至最新版v4.9.0,此版本添加netstandard2.0文件夾以放置可與Azure功能配合使用的dll,并支持一些新功能,下面我們一起來了解一下。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Spire.Office for .NET是企業(yè)級Office .NET組件的組合。它包括Spire.Doc、Spire.XLS、Spire.Spreadsheet、Spire.Presentation、Spire.PDF、Spire.DataExport、Spire.OfficeViewer、Spire.PDFViewer、Spire.DocViewer、Spire.Barcode和Spire.Email。
使用Spire.Office for .NET,開發(fā)人員可以創(chuàng)建各種應用程序。它使開發(fā)人員能夠打開,創(chuàng)建,修改,轉(zhuǎn)換,打印,查看MS Word、Excel、PowerPoint和PDF文檔。此外,它允許用戶將數(shù)據(jù)導出到流行文件,如MS Word / Excel / RTF / Access、PowerPoint、PDF、XPS、HTML、XML、文本、CSV、DBF、剪貼板、SYLK、PostScript、PCL等。>>歡迎免費下載Spire.Office for .NET最新試用版
Spire.Office 修補程序版本更新至最新版v4.9.0,此版本添加netstandard2.0文件夾以放置可與Azure功能配合使用的dll,并支持一些新功能,例如:
Spire.PDF支持在.net核心平臺上將HTML轉(zhuǎn)換為PDF并獲取PdfFreeTextAnnotationWidget的標注行。
Spire.Doc支持添加數(shù)字簽名。
Spire.Presentation支持將圖像和視頻插入占位符并設置圓角矩形的半徑。
Spire.XLS支持基于數(shù)據(jù)透視表創(chuàng)建圖表并添加箭頭線。
此外,將PDF轉(zhuǎn)換為SVG /圖像,XPS轉(zhuǎn)換為PDF,Word轉(zhuǎn)換為PDF,Html轉(zhuǎn)換為Docx,PPT轉(zhuǎn)換為SVG /圖像,Excel轉(zhuǎn)換為PDF / HTML,復制單元格范圍和打印PDF時出現(xiàn)的一系列問題已成功修復。
DLL版本:
支持在.Net Core平臺上將HTML轉(zhuǎn)換為PDF。
添加一個新屬性以獲取PdfFreeTextAnnotationWidget的標注行。
public PointF [] CalloutLines {get; }
添加新屬性以獲取PdfFreeTextAnnotationWidget的行結束樣式。
public PdfLineEndingStyle LineEndingStyle {get; }
添加新屬性以獲取或設置PdfFreeTextAnnotationWidget和PdfFreeTextAnnotation的矩形diffecences數(shù)組。
public float [] RectangleDifferences {get; 組; }
NETStandard和NETCore支持數(shù)字簽名。
支持將圖像和視頻插入占位符。
Presentation ppt = new Presentation(); ppt.LoadFromFile( “test.pptx”); for(int j = 0; j<ppt.Slides.Count; j ++) { ISlide slide =(ISlide)ppt.Slides [j]; for(int i = 0; i <slide.Shapes.Count; i ++) { 形狀形狀=(形狀)slide.Shapes [i]; 開關(shape.Placeholder.Type) { case PlaceholderType.Media: shape.InsertVideo( “Video.mp4”); 打破; case PlaceholderType.Picture: shape.InsertPicture(為 “Logo.png”); 打破; case PlaceholderType.Chart: shape.InsertChart(ChartType.ColumnClustered); 打破; case PlaceholderType.Table: shape.InsertTable(3,2); 打破; case PlaceholderType.Diagram: shape.InsertSmartArt(SmartArtLayoutType.BasicBlockList); 打破; } } }
支持設置圓角矩形的半徑。
演示文稿演示=新演示文稿(); presentation.Slides [0] .Shapes.InsertRoundRectangle(0,60,90,100,200,36); presentation.Slides [0] .Shapes.AppendRoundRectangle(60,290,100,200,50); presentation.SaveToFile(“result.pdf”,F(xiàn)ileFormat.PDF); presentation.SaveToFile(“result.pptx”,F(xiàn)ileFormat.Pptx2013);
支持在主題中獲取模板名稱。
演示文稿演示=新演示文稿(); presentation.LoadFromFile(文件); for(int i = 0; i<presentation.Slides.Count; i ++) { string name = presentation.Slides [i] .Layout.Name; }
支持基于數(shù)據(jù)透視表創(chuàng)建圖表。
worksheet.Charts.Add(ExcelChartType.BarClustered,pivotTable);
支持添加箭頭線。
var arrowline = workbook.Worksheets [0] .TypedLines.AddLine(); line.Top = 50; line.Left = 30; line.Width = 300; line.Height = 500; line.BeginArrowHeadStyle = ShapeArrowStyleType.LineArrowDiamond; line.EndArrowHeadStyle = ShapeArrowStyleType.LineArrow;
在TypedLines / TypedCheckBoxes / TypedTextBoxes / TypedRadioButtons / TypedComboBoxes之后添加方法AddCopy()來復制形狀。
wb.Worksheets [0] .TypedLines.AddCopy(線);
推薦閱讀
【想要快速完成文檔格式轉(zhuǎn)換嗎?Spire系列組件格式轉(zhuǎn)換完整攻略來啦!】
*購買Spire系列產(chǎn)品正版授權的朋友可以點擊哦~滿額即送超值好禮!
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務必注明出處、不得修改原文相關鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn