473,387 Members | 1,882 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,387 software developers and data experts.

Preview JPEG & PDF withing Access Forms

Hi Guys

I'm trying to display a preview of jpg and pdf files from within an access form. I've created a tool to copy files to various locations on the network, but need users to have check that the file is what it should be. Hope that makes sense!

I can't use an unbound object frame because this will not display jpgs in Office 2003 without installing Office Picture 2000 (or somthing like that..). I've tired the Activex Preview control, but am getting OLE errors, and I understand won't work with PDF.

What I really want is to call the 'windows preview' that displays in explorer windows when the contents are picture and pdfs.

Any ideas?

Cheers - Chris
Sep 13 '07 #1
2 11437
Jim Doherty
897 Expert 512MB
Hi Guys

I'm trying to display a preview of jpg and pdf files from within an access form. I've created a tool to copy files to various locations on the network, but need users to have check that the file is what it should be. Hope that makes sense!

I can't use an unbound object frame because this will not display jpgs in Office 2003 without installing Office Picture 2000 (or somthing like that..). I've tired the Activex Preview control, but am getting OLE errors, and I understand won't work with PDF.

What I really want is to call the 'windows preview' that displays in explorer windows when the contents are picture and pdfs.

Any ideas?

Cheers - Chris
If you merely want to view the files for checking purposes like that and wanted to keep it within access how about mounting a web browser control on the access form and controlling its Navigate2 property setting in much the same way as you would programatically pass a filepath to an image control you'd get your jpgs and pdfs then.

Expand|Select|Wrap|Line Numbers
  1.  
  2. Me!WB.Navigate2 URL:="C:\myfolder\mypdffile.pdf"
  3.  
or
Expand|Select|Wrap|Line Numbers
  1.  
  2. Me!WB.Navigate2 URL:="C:\myfolder\myjpgfile.jpg"
  3.  
If you wanted to shellexecute to the explorer and make it locate the file and select it then we could do that but you are giving your users direct file access then is that what you want? or is the web browser within access sufficient for viewing purposes for you

Regards

Jim :)
Nov 2 '07 #2
ADezii
8,834 Expert 8TB
If you merely want to view the files for checking purposes like that and wanted to keep it within access how about mounting a web browser control on the access form and controlling its Navigate2 property setting in much the same way as you would programatically pass a filepath to an image control you'd get your jpgs and pdfs then.

Expand|Select|Wrap|Line Numbers
  1.  
  2. Me!WB.Navigate2 URL:="C:\myfolder\mypdffile.pdf"
  3.  
or
Expand|Select|Wrap|Line Numbers
  1.  
  2. Me!WB.Navigate2 URL:="C:\myfolder\myjpgfile.jpg"
  3.  
If you wanted to shellexecute to the explorer and make it locate the file and select it then we could do that but you are giving your users direct file access then is that what you want? or is the web browser within access sufficient for viewing purposes for you

Regards

Jim :)
If you are looking for the 'Explorer Type' Effect found in Windows Explorer, you would probably want to use the Microsoft TreeView and ListView ActiveX Controls. These Controls can be placed side by side together on a Form working in conjunction with one another to provide the desired effect. From a programming perspective, they can be difficult to work worth.
Nov 3 '07 #3

Sign in to post your reply or Sign up for a free account.

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...
16
by: David Lauberts | last post by:
Hi Wonder if someone has some words of wisdom. I have a access 2002 form that contains 2 graph objects that overlay each other and would like to export them as a JPEG to use in a presentation....
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...
0
by: cabrenner | last post by:
First of all, I have been using the newsgroup to find answers to my development questions for several months, and it has been extremely helpful. I have an access app which closes all toolbars...
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....
5
by: Matthew Hood | last post by:
Here's a interesting question for the guru's out there. I've created a VB.NET class library with a couple of forms that I have successfully got to work from within MS Access using COM interop and...
1
by: bonnie.tangyn | last post by:
Hello All In my ASP page, I use CDONT to send email to client. But, I need to allow user preview and edit the email content before sending it out. Any advices? I have two ASP pages -...
1
by: drtitus7759 | last post by:
I have an access database with an extensive amount of VBA. I am creating reports based on queries and parameter forms. In the production database everything is modal and accessed via forms. No access...
3
by: Walter Konopacki | last post by:
Having trouble displaying a jpeg in an Access 2003 form. Have read in Access Forms Dummy Book the an anomaly is present in Access 2003 that does not allow JPEG images to be displayed because Office...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.