Javier,

Please advise where you discovered the params for 'A' switch and start page
in launching the PDF file.

Don't see reference to these settings in command syntax for LAUNCH.

Thank you,
Brad Davidson

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Javier
Valencia
Sent: Monday, August 26, 2013 3:40 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: Launch Acrobat

Robert,

I thought someone would have pitched in with answer by now. In any case,
here is code that you can use to do what you want:

-- Code to LAUNCH Acrobat Reader and open on a selected page

-- Define variables
SET VAR vLaunchProg TEXT = 'C:\Program Files (x86)\Adobe\Reader
10.0\Reader\AcroRd32.exe'
SET VAR vFileName TEXT = 'features.pdf'
SET VAR vStartPage INT = 5
SET VAR vLaunchParams = ('/A' & CHAR(34) + 'PAGE=' +
+ CTXT(.vStartPage) + CHAR(34) &  CHAR(34) +.vFileName + CHAR(34))

-- Create LAUNCH command
SET VAR vLaunch = (.vLaunchProg & '|' & .vLaunchParams & '|W')

-- Launch the command file
LAUNCH .vLaunch

RETURN

The variable vFileName holds the entire file path and name if it is not in
the current directory.
You can use whatever number you need for the start page; in this example I
used 5 The "|W" switch simply tells R:Base to wait until the program
executes and then return to  R:Base; you can skip it if you don't need it.

Good luck.

Javier,

Javier Valencia, PE
O: 913-829-0888
H: 913-397-9605
C: 913-915-3137

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Lister
Sent: Sunday, August 25, 2013 3:50 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Launch Acrobat

Hi there:

I was wandering if anyone knows a way to open a multiple page pdf file on a
specific page.

According to Acrobat XI you can pass the /A page=3 and it will work, I have
tried but no luck.

Robert

--

--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected] In the message SUBJECT, put
just one word: INTRO ================================================
TO UNSUBSCRIBE: 
Send a plain text email to [email protected] In the message SUBJECT, put
just one word: UNSUBSCRIBE ================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected] In the message SUBJECT, put
just one word: SEARCH-n (where n is the number of days). In the message
body, place any text to search for.
================================================

--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: 
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, 
place any 
text to search for.
================================================


Reply via email to