IXlsPrintPreview
COM interface ( getting help with interfaces )

 

interface IXlsPrintPreview : IDispatch
{

  [id(1)] HRESULT PreviewNextPageAsMetafile([in]BSTR metafile, [out, retval] BOOL* pvContinue);
  [id(2)] HRESULT PreviewNextPageAsBuffer([in]BOOL bAsEMF, [out, retval] VARIANT* pvBuffer);
  [id(3)] HRESULT PreviewNextPageAsPNG([in]BSTR pngfile, [out, retval] BOOL* pvContinue);

}

 

HRESULT PreviewNextPageAsMetafile([in]BSTR metafile, [out, retval] BOOL* pvContinue);
creates a print preview of the current page, in a windows metafile whose name is passed as parameter. Returns continue if there is at least one more page after the current page.

HRESULT PreviewNextPageAsBuffer([in]BOOL bAsEMF, [out, retval] VARIANT* pvBuffer);
creates a print preview of the current page, in a windows metafile buffer or as a PNG buffer (both case : byte array wrapped in the variant).

HRESULT PreviewNextPageAsPNG([in]BSTR pngfile, [out, retval] BOOL* pvContinue);
creates a print preview of the current page, in the PNG file format whose name is passed as parameter. Returns continue if there is at least one more page after the current page.