Hello, i have this code in a powerpoint addin but it's not working and giving me an exception. The exception says:
"Value does not fall within expected range".
Any ideas what i'm doing wrong?
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
);