Spire.Presentation 4.3.14今天正式发布了,该版本改善了PrinterSettings接口,并修复了PowerPoint转PDF和图片出现的问题。具体信息如下。
新功能:
- 改善了打印接口。
Presentation ppt = new Presentation();
ppt.LoadFromFile(inputfile);
PresentationPrintDocument document = new PresentationPrintDocument(ppt);
//Set print task name
document.DocumentName = "print task 1";
document.Print0rder = Order.Horizontal;
document.SlideFrameForPrint = true;
document.GrayLevelForPrint = true;
document.SlideCountPerPageForPrint = PageSlideCount.Three;
document.PrinterSettings.PrintRange = PrintRange.AllPages;
//Set continuous print area
document.PrinterSettings.PrintRange = PrintRange.SomePages;
document.PrinterSettings.FromPage = 1;
document.PrinterSettings.ToPage = ppt.Slides.Count - 1;
//Set discontinuous print area
//document.SelectSldiesForPrint("1", "2-6");
document.PrinterSettings.PrintToFile = true;
document.PrinterSettings.PrintFileName = outputfile;
ppt.Print(document);
ppt.Dispose();
问题修复:
- 修复了复制形状抛出错误“the object reference was not set to the object instance”问题。
- 修复了转换PPT到图片时图表丢失的问题。
- 修复了转换PPT到PDF时数据标签不正确的问题。
- 修复了另存为PPTX文件时图表数据源公式不显示的问题。
- 修复了删除图表的图例后转换到PDF图例仍存在的问题。
- 修复了转换PPT到图片内容不正确的问题。
获取Spire.Presentation 4.3.14,请点击:
https://www.e-iceblue.cn/Downloads/Spire-Presentation-NET.html