infor.com
concierge
infor u
developer portal
Home
Groups
FACTS - Partner Community
WindX syntax - displaying picture via Internet Explorer?
salbritton
I'm using the following method to get the appropriate path for Internet Explorer on a WindX workstation, so I can open a .jpg file (I'm actually trying to do the same sort of thing for PDF files also):
1035 call %wdx$+"*win/registry","HKEY_LOCAL_MACHINE","iexplore.exe","Path",app_path$
Then, I strip the resulting semi-colon to create the stmt I want to execute:
1040 app$=stp(app_path$,1,";")+"iexplore.exe"
Now, I want display the file 'Z: emp10.jpg', so:
1045 j1$="x=sys("+quo+app$+" Z: emp10.jpg"
So when I hit stmt 1045 on a WindX workstation, j1$ is set to:
x=sys("C:Program Files (x86)Internet Exploreriexplore.exe z: emp10.jpg")
1050 execute j1$
When I go to execute j1$, I get a Windows message 'Windows cannot find program 'C:Program'. Apparently, my syntax is wrong for building the stmt to execute.
Does anybody know the proper syntax for doing this? I've tried putting '%wdx$' after the '(' (ex: x=sys([wdx]"C:Program Files.....), but this doesn't work either.
Any help is appreciated!!
Find more posts tagged with
Comments
sjacquin
Why not use the system help command (like uf8ptr does). You can do: execute "[wdx]system_help "+quo+yourfilename$+quo or: execute %wdx$+"system_help "+quo+yourfilename$+quo if it is a windows server. The system help command will figure out what program is set to display the file type and automatically use it.
Welcome To Solutions Development.docx
kevenh
I have not tested this, but I am confident that windows needs quotes about the path and file name. The quotes in this command are consumed by pvx:
x=sys("C:Program Files (x86)Internet Exploreriexplore.exe z: emp10.jpg")
I think you need:
x=sys(quo+"C:Program Files (x86)Internet Exploreriexplore.exe"+quo+" z: emp10.jpg")
Attachment_4233.zip
Maximizing Interactivity in Birst Dashboards.pptx
salbritton
Thanks to all for suggestions. I've tried all manner of execute and invoke from a WindX workstation (Windows 7, 64-bit Pro, IE version 9), with these results:
invoke j1$
and all manner of the following variations of j1$ being:
"C:Program Files (x86)Internet Exploreriexplore.exe” z: emp10.jpg (nothing happens)
"C:Program Files (x86)Internet Exploreriexplore.exe z: emp10.jpg" (nothing happens)
"C:Program Files (x86)Internet Exploreriexplore.exe” “z: emp10.jpg" (nothing happens)
[wdx]"C:Program Files (x86)Internet Exploreriexplore.exe z: emp10.jpg" (starts IE, but goes to my home page (doesn’t bring up file))
[wdx]"C:Program Files (x86)Internet Exploreriexplore.exe” z: emp10.jpg (starts IE, but goes to my home page (doesn’t bring up file))
[wdx]"C:Program Files (x86)Internet Exploreriexplore.exe” “z: emp10.jpg" (starts IE, but goes to my home page (doesn’t bring up file))
Anyone else have an idea?
sjacquin
Kevin. I didn't have a jpg handy so I used a text file. Here is what worked. This was loaded into j$ and I did an invoke ->
[wdx]c:program filesinternet exploreriexplore.exe "c: mp
lcb.txt"
j$=%wdx$+"c:program filesinternet exploreriexplore.exe "+quo+"c: mp
lcb.t
xt"+quo
Socomec-Pierre-LeBars-Issue-Seeking-others-help.docx
salbritton
BTW...Also tried the system_help method to no avail:
20010 fai_j2$="[wdx]system_help "+quo+"Z: emp10.jpg"
20020 execute fai_j2$
Nothing happens. No display, no message.
sjacquin
You are missing a trailing "+quo" on that assign on line 20010.
Attachment_4233.zip
Maximizing Interactivity in Birst Dashboards.pptx
jeff-christie
I could be wrong here, but I believe you don't need the [wdx] for system help. I called up a jpg with no problem from command mode doing system_help "c: emp est.jpg". I don't know why you'd need the execute either. Just 20010 system_help .... should suffice.
Legacy Contributor
You should not need the full path to iexplore.exe
Have you tried
1040 app$="iexplore.exe"
salbritton
Many, MANY thanks to all that posted!! Your help was VERY much appreciated!
The syntax that finally worked was:
1040 j1$="system_help "+quo+file_name$+quo
1045 execute j1$
Again, thanks again to all!!
Important Links
Community Hubs
Discussion Forums
Groups
Community News
Popular Tags
ION Connect
ION Workflow
ION API Gateway
Syteline Development
CPQ Discussion Ask a Colleague
Infor Data Fabric
Infor Document Management (IDM)
LN Development
FAQs, How-To, and Best Practices
API Usage