我有這個代碼在一個PowerPoint插件,但它不工作,並給我一個例外。例外說:PowerPoint ExportAsFixedFormat異常
「價值不符合預期範圍」。
任何想法我做錯了什麼?
this.Application.ActivePresentation.ExportAsFixedFormat(path,
PpFixedFormatType.ppFixedFormatTypeXPS,
PpFixedFormatIntent.ppFixedFormatIntentPrint,
Microsoft.Office.Core.MsoTriState.msoTrue,
PpPrintHandoutOrder.ppPrintHandoutHorizontalFirst,
PpPrintOutputType.ppPrintOutputSlides,
Microsoft.Office.Core.MsoTriState.msoTrue,
null,
PpPrintRangeType.ppPrintAll,
null,
true,
true,
true,
false,
false,
null
);
哇,工作。我一直專注於PrintRange。謝謝你,謝謝你,謝謝你。 –
@亞歷山大·科恩:你可以選擇尼克的答案並帶有複選標記,以表明這是正確的答案。 –
使用Type.Missing代替 – CantGetANick