我试图按照https://msdn.microsoft.com/EN-US/library/office/cc850834.aspx在我的演示文稿中插入一张新幻灯片
它向我抛出错误:存档文件的大小不能为 0
我的代码:
string presentationFile=@"C:\Users\SS\Desktop\TestPresentation6.pptx";
public static void InsertNewSlide(string presentationFile, int position, string slideTitle)
{
using (PresentationDocument presentationDocument = PresentationDocument.Open(presentationFile, true))
{
// Pass the source document and the position and title of the slide to be inserted to the next method.
InsertNewSlide(presentationDocument, position, slideTitle);
}
}
我正在使用开放 XML SDK 2.5。任何人都可以帮助我理解这个错误表示什么。我找不到任何有用的解决方案。有人遇到过同样的问题吗?
感谢您的时间!
谢谢!!!