原創|產品更新|編輯:張瑩心|2021-09-24 17:28:38.123|閱讀 416 次
概述:目前,Spire.Office for .NET v6.9.1 2021年第九版現已正式發布。本次更新帶來了一些新功能,比如:Spire.Presentation支持添加數學公式和檢測shape是否包含數學公式,支持在放映模式下隱藏音頻,支持轉換PPT到OFD,支持判斷文檔是否被加密,此外,該版本還修復了大量一直問題。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
你在尋找支持在.NET中用編程方法處理各類格式文檔的API嗎?好巧,.NET版企業級文檔管理組合套包Spire.Office 2020全新上線!Word、Excel、PPT、PDF、條形碼等格式一網打盡。
目前,Spire.Office for .NET v6.9.1 2021年第九版現已正式發布。本次更新帶來了一些新功能,比如:Spire.Presentation支持添加數學公式和檢測shape是否包含數學公式,支持在放映模式下隱藏音頻,支持轉換PPT到OFD,支持判斷文檔是否被加密;Spire.PDFViewer ASP.NET控件支持旋轉頁面,查找文本并高亮;Spire.XLS支持轉換Excel到UOS,支持轉換Excel到OFD,支持將Excel中透視表自動生成的values字段設置為行標簽,支持將Excel中的組合圖片或組合圖表轉換為一個圖片;Spire.Doc支持設置Word中Frame的位置。此外,該版本還修復了大量一直問題。點擊下方按鈕即可下載試用↓↓↓
免費下載Spire.Office for .NET v6.9.1
新功能及問題修復詳情,請參閱如下內容。
新功能:
Presentation ppt = new Presentation(); string latexMathCode = @"x^{2}+\sqrt{x^{2}+1}=2"; IAutoShape shape = ppt.Slides[0].Shapes.AppendShape(ShapeType.Rectangle, new RectangleF(30, 100, 400, 30)); shape.TextFrame.Paragraphs.Clear(); //Add math equation TextParagraph tp = shape.TextFrame.Paragraphs.AddParagraphFromLatexMathCode(latexMathCode); for (int i = 0; i < ppt.Slides[0].Shapes.Count; i++) { if (ppt.Slides[0].Shapes[i] is IAutoShape) { //Check whether shape contains math equations bool containMathEquation = (ppt.Slides[0].Shapes[i] as IAutoShape).ContainMathEquation; } } ppt.SaveToFile("result.pptx", FileFormat.Pptx2013); ppt.Dispose();
Presentation ppt = new Presentation(); ppt.LoadFromFile(inputFile); foreach(Shape shape in ppt.Slides[0].Shapes) { if(shape is IAudio) { IAudio audio = shape as IAudio; audio.HideAtShowing = true; } }
Presentation ppt = new Presentation(); ppt.LoadFromFile(inputFile); ppt.SaveToFile(ofdFile, FileFormat.OFD);
Presentation ppt = new Presentation(); ppt.IsPasswordProtected(inputFile)
問題修復:
新功能:
input type=button id=PdfDocumentViewer1_btnRotate onfocus=this.blur() onclick=pdfdocumentviewer1.
input type=text id=PdfDocumentViewer1_txtFindText onkeydown=if(event.keyCode==13){pdfdocumentviewer1.SearchText(this.value,true);return false;} value= protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.PdfDocumentViewer1.FindTextHighLightColor = System.Drawing.Color.FromArgb(125, 255, 0, 0); this.PdfDocumentViewer1.LoadFromFile(input.pdf); } }
問題修復:
問題修復:
新功能:
問題修復:
新功能:
Workbook workbook = new Workbook(); workbook.LoadFromFile(xlsxFile); workbook.SaveToFile(uosFile, FileFormat.UOS);
Workbook workbook = new Workbook(); workbook.LoadFromFile(xlsxFile); workbook.SaveToFile(ofdFile, FileFormat.OFD);
pivottable.ShowDataFieldInRow = true; pivottable.CalculateData();
List<Bitmap> images = sheet.SaveShapesToImage(new SaveShapeTypeOption()); for (int i = 0; i < images.Count; i++) { images[i].Save(string.Format(outputFile + "{0}.png", i), ImageFormat.Png); }
問題修復:
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn