473,325 Members | 2,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

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
Jun 27 '08 #1
3 3595
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" <st******@albury.nsw.auwrote in message
news:uH**************@TK2MSFTNGP02.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


Jun 27 '08 #2
Thanks Sheng
Jun 27 '08 #3
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:
http://www.codeproject.com/KB/miscctrl/acroview.aspx

Tom
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: miarte | last post by:
I have a form to allow the user upload images. The user browse for an image in their computer and click open, th image to be upload is preview on the img tag. The script works fine with IE, but...
7
by: Pat | last post by:
I would like to send the Print Preview of a MS Access form to a Snapshot file. The form contains an OLE graph. BACKGROUND A snapshot of a report is possible. If I could I would use a report to...
1
by: sea | last post by:
I have Access 2002 and I am writing this application with a custom menu bar that has a print preview button -- the start up options hide the design window. The problem is that when an open form is...
1
by: Ian Shimmings | last post by:
I have implemented some label printing code that prints to a (you guessed it) label printer. I have derived my class from the System.Drawing.Printing.PrintDocument class ond overriden some of the...
5
by: Dave A | last post by:
I am writing an ASP.NET tool that will allow the client to create their own online froms. ie the client can add tect boxes, text, drop downs,etc with absolutely no technical skill what so ever....
9
by: igotyourdotnet | last post by:
I need to create a print preview page BUT my page I need to print has a grid and in the grid I have 2 or 3 columns that have links I want to hide the columns with the links on my print preview page...
2
by: bob.turner.uk | last post by:
Hi, I would like to supress the generating preview dialog of the print preview control. Does anyone know how to do this? Regards, Bob
2
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
1
by: Andy B | last post by:
I am using an accordion control on a page that seems to work just fine on my local computer (IIS not installed and it can't be either). When I upload to the live server, I get a few errors, but the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.