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