原創(chuàng)|產(chǎn)品更新|編輯:李顯亮|2019-08-14 14:18:16.037|閱讀 290 次
概述:我們很高興地告訴大家Spire.Presentation for .NET v4.8.5正式發(fā)布上線!此版本主要支持插入圖片和視頻到占位符,支持設(shè)置圓角矩形的半徑,支持獲取指定幻燈片的模板名字。此外,本次更新也修復(fù)了加載和轉(zhuǎn)換PowerPoint文檔出現(xiàn)的問題,歡迎下載體驗。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Spire.Presentation for .NET是專業(yè)的 PowerPoint? 組件,使用該組件,開發(fā)者可以在 .NET 平臺上對 PowerPoint? 文檔進行生成、讀取、寫入、修改、轉(zhuǎn)換和打印等操作。
Spire.Presentation for .NET支持 PPT、PPS、PPTX、PPSX 格式的 PowerPoint? 文檔,支持的主要功能有寫入文本、插入圖片、添加圖形、表格、動畫效果、音頻和視頻等元素到幻燈片。Spire.Presentation 也支持將幻燈片轉(zhuǎn)換為 EMF、JPG、TIFF、PDF、XPS、SVG、HTML 格式文件。
我們很高興地告訴大家Spire.Presentation for .NET v4.8.5正式發(fā)布上線!此版本主要支持插入圖片和視頻到占位符,支持設(shè)置圓角矩形的半徑,支持獲取指定幻燈片的模板名字。此外,本次更新也修復(fù)了加載和轉(zhuǎn)換PowerPoint文檔出現(xiàn)的問題,具體更新情況如下:>>歡迎免費下載Spire.Presentation for .NET最新試用版
新功能
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++) { Shape shape = (Shape)slide.Shapes[i]; switch(shape.Placeholder.Type) { case PlaceholderType.Media: shape.InsertVideo("Video.mp4"); break; case PlaceholderType.Picture: shape.InsertPicture("Logo.png"); break; case PlaceholderType.Chart: shape.InsertChart(ChartType.ColumnClustered); break; case PlaceholderType.Table: shape.InsertTable(3,2); break; case PlaceholderType.Diagram: shape.InsertSmartArt(SmartArtLayoutType.BasicBlockList); break; } } }
Presentation presentation = new Presentation(); 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", FileFormat.PDF); presentation.SaveToFile("result.pptx", FileFormat.Pptx2013);
Presentation presentation = new Presentation(); presentation.LoadFromFile(file); for (int i = 0; i < presentation.Slides.Count;i++ ) { string name = presentation.Slides[i].Layout.Name; }
Bug修復(fù)
*想要購買Spire.Presentation及其他系列產(chǎn)品正版授權(quán)的朋友可以哦~
掃描關(guān)注“慧聚IT”微信公眾號,及時獲取更多產(chǎn)品最新動態(tài)及最新資訊
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn