Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / April 2008

Tip: Looking for answers? Try searching our database.

PDF Preview Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve McKewen - 23 Apr 2008 02:49 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.