473,385 Members | 1,309 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.

launch paperport and open pdf file automatically

From a Microsoft Access form command button, I want to launch paperport and open a selected pdf file automatically.

I have associated pdf files with paperport 11.

The VBA code that I use follows:

Dim myfile As String
myfile = Me.docname
Dim strinput As String
strinput = "F:\folder\" & myfile & ".pdf"
Application.FollowHyperlink strinput, , True



It does not work

Dom
Aug 31 '06 #1
1 4269
onixs
1
Your code basically correct, however you need to:


Dim strinput As String
strinput = "F:\folder\" & myfile & ".pdf"
Application.FollowHyperlink strinput, , True

From a Microsoft Access form command button, I want to launch paperport and open a selected pdf file automatically.

I have associated pdf files with paperport 11.

The VBA code that I use follows:

Dim myfile As String
myfile = Me.docname
Dim strinput As String
strinput = "F:\folder\" & myfile & ".pdf"
Application.FollowHyperlink strinput, , True



It does not work

Dom
Jun 22 '07 #2

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

Similar topics

17
by: SK | last post by:
I am calling an exe thru' href, but when it executes, I get the message if I want to open the file(exe file). Is there any way I can suppress this from appearing and open the program? Thank...
0
by: Matt Fox | last post by:
All, After installing sp2 I have this issue where if I try to launch an .MDB (Access database) file off any network share through explorer, that is open by multiple users, it will not launch...
13
by: David Rose | last post by:
Hi, I am trying to launch pdf files (in this case). The test application takes the path to the pdf from a TextBox when the user clicks a button. I have written code that works on my computer,...
0
by: TJ | last post by:
Dear Sir/Madam I just want to set something that application(was developed using C#) can be launched automatically after install is completed. I created Installer Project in Install and Deploy...
5
by: Mr Gordonz | last post by:
Hi all, I want to put a button on a page, and when the user clicks it, the standard Windows "Open File" dialogue box opens, and the user can browse/select a file on their PC. Having selected a...
8
by: Paul | last post by:
I have looked and looked for this info. All the I/O examples I've found either explicity use a file name or use the OpenFileDialog. When you drag a MS Word document over MS Word, it launches and...
3
by: deko | last post by:
I've noticed the half dozen or so object libraries in the References list for PaperPort and thought I would try to automate the PaperPort 9 application. The goal is to click a button and initiate...
2
by: Bob | last post by:
Looking at shell command I don't see how I can specify the filename to open. I need to launch notepad AND automatically open an existing file. Using VB 2005. Any help would be greatly...
8
by: r0g | last post by:
Hi There, I'm trying to migrate a locally hosted page from windows to a private Ubuntu development server and one of the key bits of functionality (which used to work fine in Windows) was the...
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...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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...

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.