Friday, February 24, 2012

Local Application Launch

Hi,

Does anyone know if there is a way to launch a local application on a users machine from a report?

We have a bespoke thick client system running which accepts a command line execution i.e. c:\program\programx.exe ref=xyz. I would like to lauch this from a report if possible passing in the ref - has anyone done anything like this before as I presume we may need to add code to do this.

We could use client side script and wshost however IE doesnt like this unless its a trusted site so dont want to go down this route if possible although this may be the answer.

Thanks in advance for your help

Dan.

ok i've found a solution :-

As this is a local intranet scenario I have full access to the clients hence the registry. To make this work I can add the following to the registry on each pc :-

Add to a new key to HKEY_CLASSES_ROOT called 'myprog'
Add an empty string to this key called 'URL Protocol'
Add the sub-keys: \shell\open\command
Set the value of the default string inside the command key to: " c:\my prog\prog.exe %1"

on your report set your link to be
="myprog:" & Fields!fieldvalue

Thanks

Dan.

No comments:

Post a Comment