Results 1 to 40 of 56

Thread: [VB6] IPreviewHandler: Show non-image file previews from any reg'd preview handler

Threaded View

  1. #34
    New Member
    Join Date
    Feb 2018
    Posts
    9

    Re: [VB6] IPreviewHandler: Show non-image file previews from any reg'd preview handle

    OK, I've tried the sample program (modified to use CLSCTX_LOCAL_SERVER only) on a few 'real-life' end-user PCs.

    It worked on everything I tried - including Win 10 + Adobe Reader XI, Win 10 + Adobe Reader DC, Win 7 + Adobe Reader DC. Mainly 64 bit OSs, plus a couple of Win 7 32bit.
    Other common apps (Word, Excel, etc.) worked too.

    I think I'll follow Olaf's suggestion and use CLSCTX_LOCAL_SERVER only, then if an error occurs try CLSCTX_INPROC_SERVER.

    Here is the debug output from a PDF preview...
    Code:
    using isi
    sFile=C:\Test\00000017.PDF
    sExt=.PDF
    Got handler CLSID; attempting to create IPreviewHandler
    IInitializeWithFile not supported.
    IInitializeWithItem not supported.
    Attempting to use IStream
    Got file size=405169
    QI.hr=0
    SetWindow hr=0
    DoPreview hr=0
    Last edited by Stu2; Dec 11th, 2018 at 07:35 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width