我们可以使用 opentbs 删除具有多个范围的幻灯片吗?
can we delete slides with multiple range using opentbs?
目前我们正在这样做,工作正常,但我试图删除具有多个范围的幻灯片
$slides_to_deletea = range(3, $num_slides);
$TBS->PlugIn(OPENTBS_DELETE_SLIDES, $slides_to_deletea);
我们可以删除不同范围的多张幻灯片吗
$slides_to_deletea = range(3, 5);
$slides_to_deletea = range(8, 12);
我试过这个https://www.tinybutstrong.com/opentbs.php?doc#opentbs_delete_sheets
另外我想知道我们是否可以在删除后合并幻灯片?
can we delete multiple slide from different range
是的。
示例 #1
$slides_to_deletea = range(3, 5);
$TBS->PlugIn(OPENTBS_DELETE_SLIDES, $slides_to_deletea);
// continue to merge as you wish here…
$slides_to_deletea = range(8, 12);
$TBS->PlugIn(OPENTBS_DELETE_SLIDES, $slides_to_deletea);
示例 #2
$slides_to_deletea = range(3, 5);
$slides_to_deletea = array_merge($slides_to_deletea, range(8, 12));
$TBS->PlugIn(OPENTBS_DELETE_SLIDES, $slides_to_deletea);
and also i was wondering if we can merge slides after deleting?
是的。当您使用 OPENTBS_DELETE_SLIDES 时,幻灯片仅被标记为要删除。幻灯片(以及工作表)实际上仅在最终合并过程中被删除。那就是当你调用 Show() 时。这使您能够撤消删除,并在删除后保留幻灯片的编号,以便您可以使用常量编号继续按照您的意愿进行合并。
目前我们正在这样做,工作正常,但我试图删除具有多个范围的幻灯片
$slides_to_deletea = range(3, $num_slides);
$TBS->PlugIn(OPENTBS_DELETE_SLIDES, $slides_to_deletea);
我们可以删除不同范围的多张幻灯片吗
$slides_to_deletea = range(3, 5);
$slides_to_deletea = range(8, 12);
我试过这个https://www.tinybutstrong.com/opentbs.php?doc#opentbs_delete_sheets
另外我想知道我们是否可以在删除后合并幻灯片?
can we delete multiple slide from different range
是的。
示例 #1
$slides_to_deletea = range(3, 5);
$TBS->PlugIn(OPENTBS_DELETE_SLIDES, $slides_to_deletea);
// continue to merge as you wish here…
$slides_to_deletea = range(8, 12);
$TBS->PlugIn(OPENTBS_DELETE_SLIDES, $slides_to_deletea);
示例 #2
$slides_to_deletea = range(3, 5);
$slides_to_deletea = array_merge($slides_to_deletea, range(8, 12));
$TBS->PlugIn(OPENTBS_DELETE_SLIDES, $slides_to_deletea);
and also i was wondering if we can merge slides after deleting?
是的。当您使用 OPENTBS_DELETE_SLIDES 时,幻灯片仅被标记为要删除。幻灯片(以及工作表)实际上仅在最终合并过程中被删除。那就是当你调用 Show() 时。这使您能够撤消删除,并在删除后保留幻灯片的编号,以便您可以使用常量编号继续按照您的意愿进行合并。