0
我使用下面的代碼在運行時添加的PPT文件幻燈片中,無法複製:#officewriter筆記部分,而應對幻燈片
Presentation pres = ppta.Open(@"C:\Users\prabhat.kumar.yadav\Desktop\PPT\ParentPlan.pptx");
DataPrepration dataObject = new DataPrepration();//Populating Data
int noOfChildSlids = 19;//No of slide we need to add
int sildeInsertPosition = 22;//position where we need to insert child slide
int NoOfChilds = 2;
for (int j = 0; j < NoOfChilds - 1; j++)
{
int sildeCopyPosition = 3;//POstion from where we need to start copy slide
for (int i = 0; i < noOfChildSlids; i++)
{
Slide slideToCopy = pres.Slides[sildeCopyPosition++];
pres.Slides.CopySlide(slideToCopy, (sildeInsertPosition++));
}
}
但部分沒有在運行添加幻燈片複製得到時間。