Page 2 of 2

Re: Opening file on IFS

Posted: Tue May 17, 2011 10:16 am
by RICHARD RUTA
That's what I used. In Chrome it opened the file, but not in EXCEL. And the arrow back went to eoj. In Explorer, still got the navigation message. I think I'm pretty far from the latest version of Profoundui. I'm at 2.2.8. Would that be the problem?

Re: Opening file on IFS

Posted: Tue May 17, 2011 11:45 am
by David
Are you still trying to use pui.link()? Remember, I had mentioned before that this does not work in most browsers. This was my mistake -- I hadn't actually tried it in non-IE browsers with a CSV file before recommending it to you.

What I am recommending here with the fully qualified web url is to use it in conjunction with the runPCCommand() call.

This is sort of the way you were doing it before, except passing a fully qualified "http://" URL to the Excel executable.

I have tested this with Google Chrome, and it works perfectly. I'm using this code, for example:

Code: Select all


runPCCommand("\"%PROGRAMFILES%\\Microsoft Office\\Office12\\excel.exe\" \"http://MyiSeries:8080/myfile.csv\"");


Re: Opening file on IFS

Posted: Tue May 17, 2011 5:50 pm
by RICHARD RUTA
OK. Here's what I have:

var file = get("ExportFile"); var path = "\\program files\\microsoft office\\office12\\excel.exe http://11.103.41.99:8080/tiffs/" + file; alert(path); runPCCommand(path);

When I run this I get:

Unable to execute "\program files\microsoft office\office12\excel.exe http://11.103.41.99:8080/tiffs/boltst.csv".

TypeError

Object #<HTMLAppletElement> has no method 'runCommand'.

Please see attached

Re: Opening file on IFS

Posted: Wed May 18, 2011 9:16 am
by David
This type of message indicates that the Java Applet has not been loaded properly. When it's loaded, you'll see the Java icon in the Windows task bar.

To load the applet, you'll need to call the loadPCCommandApplet() function before you attempt to run commands on the PC.

Re: Opening file on IFS

Posted: Wed May 18, 2011 9:53 am
by RICHARD RUTA
I am loading the applet. And it seems to load correctly. See above, where we started and I said the command worked.

Re: Opening file on IFS

Posted: Wed May 18, 2011 1:37 pm
by David
If you could attach your DDS source member here, we could have a look at the code to see if we can spot any problems...