473,406 Members | 2,954 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,406 software developers and data experts.

Open PDF

Hi all,

I'm trying to open a PDF file from a form in access 97.

I've tried followhyperlink a few different ways, and I tried hard
coding "hyperlink address" into a form label. The only result that I
get is that the reader opens, then immediately closes.

I can open a pdf from an explorer window with no problem

I know I can use shell, but I'd rather not, because it's a mystery to
me.

Any ideas? I'm starting to get ultra frustrated.

Thanks!!!!
Jan 9 '08 #1
6 2305
onefootout wrote:
Hi all,

I'm trying to open a PDF file from a form in access 97.

I've tried followhyperlink a few different ways, and I tried hard
coding "hyperlink address" into a form label. The only result that I
get is that the reader opens, then immediately closes.

I can open a pdf from an explorer window with no problem

I know I can use shell, but I'd rather not, because it's a mystery to
me.

Any ideas? I'm starting to get ultra frustrated.

Thanks!!!!
I've never had a problem with
http://www.mvps.org/access/api/api0018.htm

Dealing
http://www.youtube.com/watch?v=NZwu54S94-4
Jan 9 '08 #2
Yeah, I've seen this code before, but I'm really not savvy enough to
use it. I don't know where to put it, and I don't know how to change
it to do what I want...

What I was hoping to find out is why the followhyperlink isn't working
correctly.
Jan 9 '08 #3

"onefootout" <se*******@gmail.comwrote in message
news:fa**********************************@l32g2000 hse.googlegroups.com...
Yeah, I've seen this code before, but I'm really not savvy enough to
use it. I don't know where to put it, and I don't know how to change
it to do what I want...

What I was hoping to find out is why the followhyperlink isn't working
correctly.
Put the code in a module and call-it from an event procedure on your form.

ex.

Call fHandleFile(Me![Path], vbMaximizedFocus)

As for working in Explore, I think Explore uses the same calls that the code
in Salad's link uses.
Jan 9 '08 #4
Put the code in a module and call-it from an event procedure on your
form.
>
ex.

Call fHandleFile(Me![Path], vbMaximizedFocus)
Ok, so I'm still kind of contused.

I put the whole piece of code into a module, untouched, and save it.
Then call it from an on_click? So I can just make a button, and flop
this: Call fHandleFile(Me![Path], vbMaximizedFocus) into the
procedure?
Jan 9 '08 #5

"onefootout" <se*******@gmail.comwrote in message
news:ca**********************************@1g2000hs l.googlegroups.com...
Put the code in a module and call-it from an event procedure on your
form.

ex.

Call fHandleFile(Me![Path], vbMaximizedFocus)

Ok, so I'm still kind of contused.

I put the whole piece of code into a module, untouched, and save it.
1) Put it in a module, then edit the text to put lines of code seperated by
new lines back together.
2) Read the code to understand what it is doing. You don't know me or Salad
or Dev Ashish, be careful with "Free" code.
3) Compile to verify the code then save the module.
Then call it from an on_click? So I can just make a button, and flop
this: Call fHandleFile(Me![Path], vbMaximizedFocus) into the
procedure?
Yes, but replace Me![Path] with the name of your control holding the file
name.
Jan 9 '08 #6
This may seem a bit obvious but I have just put

c:\pictureshow.pdf

in the Hyperlink property of a button and it woks perfectly, have you
tried this?
Patric


On Wed, 9 Jan 2008 09:53:40 -0800 (PST), onefootout
<se*******@gmail.comwrote:
>Hi all,

I'm trying to open a PDF file from a form in access 97.

I've tried followhyperlink a few different ways, and I tried hard
coding "hyperlink address" into a form label. The only result that I
get is that the reader opens, then immediately closes.

I can open a pdf from an explorer window with no problem

I know I can use shell, but I'd rather not, because it's a mystery to
me.

Any ideas? I'm starting to get ultra frustrated.

Thanks!!!!
Jan 10 '08 #7

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

Similar topics

10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
10
by: David McCulloch | last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it. Why not? (Don't ask why I simply did not open the window with the new size....my original problem was how to open a...
3
by: NeverLift | last post by:
But, if it's not open, I don't want to open it . . . using window.open will open it if it doesn't exist, even if the url in that open is null (the window is then empty -- but it's open). The...
5
by: Ryan Hubbard | last post by:
Is it possible to get the recordset from an open query window? So you run the query. The window is open. Can vba retrieve this data?
1
by: C Sharp beginner | last post by:
I'm sorry about this verbose posting. This is a follow-up to my yesterday's posting. Thanks William for your reply. I understand it is a good practice to open connections as late as possible and...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
19
by: =?Utf-8?B?R3JlZw==?= | last post by:
How can I tell via code if a Form is already open. Each time my forms load I have some initialization code that runs, but if the form is already open and hidden I don't want that initialization...
0
by: Salad | last post by:
A97. Split database. Frontend DB1.MDB. Backend DB1BE.MDB. Tables are linked between DB1 and DB2. From my testing, if I open DB1 exclusively using /excl the backend DB1BE is not opened...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.