× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Can you open a pdf in Excel?
Are all versions of PDF openable in Excel?

Darryl Freinkel
A4G.
Tel: 770.321.8562 Ext 111 | Cell: 678.355.8562

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Gad Miron
Sent: Tuesday, March 24, 2020 9:02 AM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: Re: Problem opening Xls file in IFS

Another view same issue:

You do not need to use the "Rundll32 shell32,ShellExec_RunDLL" prefix

Just pass the path+file name and the user's Windows OS will open the file
alright.

STRPCCMD PCCMD('"\\192.168.0.100\PDF\MYFLR\MYDOC_1141521.pdf")
PAUSE(*NO)').

Gad



date: Mon, 23 Mar 2020 21:37:44 -0500
from: Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
subject: Re: Problem opening Xls file in IFS

Obviously the problem is that Windows didn't keep the login information.? It
doesn't remember it permanently (unless you tell it to.)

You can use the "net use" PC command to set the Windows login information.?
You can use that from your script to make sure it's ready to launch the Xls
(or PDF, which appears to be what you're actually trying to launch).


On 3/23/20 6:24 PM, gio.cot via RPG400-L wrote:
Hi all

I'm try to open from RPG a Xls file stored in Ifs with this command :
STRPCCMD PCCMD('rundll32 shell32,ShellExec_RunDLL
"\\192.168.0.100\PDF\MYFLR\MYDOC_1141521.pdf") PAUSE(*NO)'). Yesterday
i tested my program and it was ok; today i have retried and

It don't works (i don't know why), then after some test, i have
opened
the
folder from windows explorer. Windows have asked AS400's user and
password
and then showed the folder with MYDOC_1141521.pdf. After that i have
retried
to run my program and now the STRPCCMD PCCMD('rundll32
shell32,ShellExec..
works fine and open the document.

Questions:

1. Which could the problem ?

2. Possible that until i don't open MYFLR via windows, STRPCCMD
PCCMD('rundll32 shell32,ShellExec.. Don't works

3. Which workaround ?

Thanks in advance

Gio

--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.