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

pdf displaying

T
Using 97, I have a db and I also have with many scanned pdf's all
contained in one folder.

Within form view I would like a user to be able to click a browse
button and select a pdf file and have if open from and display the pdf.
If the image is a jpg, gif or bmp this isn't a problem, but it seems
with pdf there is a problem.

Any idea's on how to accomplish this?

Sep 30 '06 #1
6 1499
T wrote:
Using 97, I have a db and I also have with many scanned pdf's all
contained in one folder.

Within form view I would like a user to be able to click a browse
button and select a pdf file and have if open from and display the pdf.
If the image is a jpg, gif or bmp this isn't a problem, but it seems
with pdf there is a problem.

Any idea's on how to accomplish this?
Take a look at http://www.mvps.org/access/api/api0018.htm.

I'll assume, that if you were to click the pdf file from Explorer, it
will open correctly.

Sep 30 '06 #2
T

salad wrote:
T wrote:
Using 97, I have a db and I also have with many scanned pdf's all
contained in one folder.

Within form view I would like a user to be able to click a browse
button and select a pdf file and have if open from and display the pdf.
If the image is a jpg, gif or bmp this isn't a problem, but it seems
with pdf there is a problem.

Any idea's on how to accomplish this?
Take a look at http://www.mvps.org/access/api/api0018.htm.

I'll assume, that if you were to click the pdf file from Explorer, it
will open correctly.
Oct 1 '06 #3
T

salad wrote:
T wrote:
Using 97, I have a db and I also have with many scanned pdf's all
contained in one folder.

Within form view I would like a user to be able to click a browse
button and select a pdf file and have if open from and display the pdf.
If the image is a jpg, gif or bmp this isn't a problem, but it seems
with pdf there is a problem.

Any idea's on how to accomplish this?
Take a look at http://www.mvps.org/access/api/api0018.htm.

I'll assume, that if you were to click the pdf file from Explorer, it
will open correctly.
Oct 1 '06 #4
T

T wrote:
salad wrote:
T wrote:
Using 97, I have a db and I also have with many scanned pdf's all
contained in one folder.
>
Within form view I would like a user to be able to click a browse
button and select a pdf file and have if open from and display the pdf.
If the image is a jpg, gif or bmp this isn't a problem, but it seems
with pdf there is a problem.
>
Any idea's on how to accomplish this?
>
Take a look at http://www.mvps.org/access/api/api0018.htm.

I'll assume, that if you were to click the pdf file from Explorer, it
will open correctly.
Not using explorer --form view of access.

Oct 1 '06 #5
T wrote:
T wrote:
salad wrote:
T wrote:
>
Using 97, I have a db and I also have with many scanned pdf's
all contained in one folder.

Within form view I would like a user to be able to click a
browse button and select a pdf file and have if open from and
display the pdf. If the image is a jpg, gif or bmp this isn't a
problem, but it seems with pdf there is a problem.

Any idea's on how to accomplish this?

Take a look at http://www.mvps.org/access/api/api0018.htm.
>
I'll assume, that if you were to click the pdf file from
Explorer, it will open correctly.

Not using explorer --form view of access.
Yes, but the same principal applies. Double-Clicking a file in Explorer tells
Windows to open that file with whatever program has been associated with that
file type. The API code that is found at the link salad provided above would
allow you to run code in your Access form that "opens a file with whatever
program has been associated with that file type".

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Oct 1 '06 #6
T
where would I place the code Function fHandleFile(stFile As String,
lShowHow As Long)
sorry I'm a novice when it comes to functions

this is my current code: (on click of a command button)
Private Sub cmdBrowse_Click()
On Error GoTo err_cmdBrowse

Me![txtPicture] = GetOpenFile_CLT("C:\", "Select the File")
Me![txtPicture] = LCase(Me![txtPicture])
Me!Picture.Picture = Me!txtPicture

exit_cmdBrowse:
Exit Sub

err_cmdBrowse:
MsgBox Error$
Resume exit_cmdBrowse
End Sub

Take a look at http://www.mvps.org/access/api/api0018.htm.

I'll assume, that if you were to click the pdf file from
Explorer, it will open correctly.
Not using explorer --form view of access.

Yes, but the same principal applies. Double-Clicking a file in Explorer tells
Windows to open that file with whatever program has been associated with that
file type. The API code that is found at the link salad provided above would
allow you to run code in your Access form that "opens a file with whatever
program has been associated with that file type".

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Oct 2 '06 #7

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

Similar topics

1
by: Dave Posh | last post by:
I seem to be having a problem displaying time stored in mysql. The format stored in the database is 13:15:05. The database data type is time. I'm using asp vbscript and sql to retrieve the time...
1
by: Dave Posh | last post by:
I seem to be having a problem displaying time stored in mysql. The format stored in the database is 13:15:05. The database data type is time. I'm using asp vbscript and sql to retrieve the time...
2
by: Carole MacDonald | last post by:
There have been lots of posts on this topic, but I haven't been able to apply any of the suggestions to my situation. I have an .aspx page with a form on it that has several submit buttons on...
5
by: Robert | last post by:
Hello Accessors I have some reports created in Access that are very good for what they do. However, it seems to me that when you are displaying information you don't need to print out that a...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.