PDF Preview Control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve McKewen

    PDF Preview Control

    I am working on project (VS2005 c++) that at one point deals with a
    collection of PDF files that get routinely produced (logs and reports).
    Is there a way to produce a pdf preview on a control, like a print preview?

    I have a listbox showing the current list of PDF files that allows one to be
    selected and opened. I would like to show the preview on that form.

    Steve


  • Sheng Jiang[MVP]

    #2
    Re: PDF Preview Control

    Sure it can be done. There are many open source projects can decode PDF
    files. I am not sure any of them support print preview though.

    If you want to display the file in a listbox or a listview, use owner draw
    or custom draw. See Windows SDK documentation for samples/tutorials.
    --
    Sheng Jiang
    Microsoft MVP in VC++
    "Steve McKewen" <stevemac@albur y.nsw.auwrote in message
    news:uHPiRROpIH A.5096@TK2MSFTN GP02.phx.gbl...
    I am working on project (VS2005 c++) that at one point deals with a
    collection of PDF files that get routinely produced (logs and reports).
    Is there a way to produce a pdf preview on a control, like a print
    preview?
    >
    I have a listbox showing the current list of PDF files that allows one to
    be
    selected and opened. I would like to show the preview on that form.
    >
    Steve
    >
    >

    Comment

    • Steve McKewen

      #3
      Re: PDF Preview Control

      Thanks Sheng


      Comment

      • Tamas Demjen

        #4
        Re: PDF Preview Control

        Steve McKewen wrote:
        I have a listbox showing the current list of PDF files that allows one to be
        selected and opened. I would like to show the preview on that form.
        The free Adobe Reader comes with an ActiveX control. In .NET you can
        just drop it on your form, like any other control. It has a public
        function to load a PDF file. If you have to do it from MFC, read this:


        Tom

        Comment

        Working...