Excel dotnet ExportAsFixedFormat

thegunzothegunzo Member Posts: 274
edited 2015-05-20 in NAV Three Tier
Hi masters

I am having trouble using the command
XlWrkBk.ExportAsFixedFormat(XlFixedFormatType.xlTypePDF,PDFFileName,XlFixedFormatQuality.xlQualityStandard,true,true,1,1,false,Pointer);

According to http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.workbook.exportasfixedformat.aspx the pointer is
FixedFormatExtClassPtrType: Object

A pointer to an implementation of the IMsoDocExporter interface that enables the workbook to be saved in a different fixed format. For more information, see Extending the Office (2007) Fixed-Format Export Feature.

I need to set this pointer to be able to compile. In all examples I can find this property is ignored. Has anyone used this or can help me in selecting the correct dotnet object to use as a pointer ?
________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com

Comments

Sign In or Register to comment.