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] - 23 Apr 2008 17:28 GMT
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.

Signature
Sheng Jiang
Microsoft MVP in VC++
> 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).
[quoted text clipped - 4 lines]
>
> Steve
Steve McKewen - 24 Apr 2008 07:24 GMT
Tamas Demjen - 24 Apr 2008 21:47 GMT
> 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:
http://www.codeproject.com/KB/miscctrl/acroview.aspx
Tom