Quantcast
Channel: VMware Communities : Popular Discussions - VMware ThinApp: Discussion Forum
Viewing all articles
Browse latest Browse all 57744

Interfacing to Excel with DDE from Thinapped application

$
0
0

I'm currently testing an application that is being Thinapped. Everything works except a DDE interface to Excel.

The application generates a CSV file in C:\temp\ and than executes Excel to open the file.

 

DDE command looks like this (native report procedure language specific for this application)

 

'<DDE>,'
   'EXCEL,'
   '[FileNew("C:\Temp\filename.CSV")],'
   'C:\Temp\filename.CSV,'
   'System,'
   'C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.EXE '
   '"C:\Temp\filename.CSV"';
"Entry,Date,Rev,Modifier,Date,Approver,Date,Article,Cust.,Reason" ;
When i execute this report from the non-thinapped application it works fine.
  1. File is created
  2. Excel is opened
  3. File is read by Excel
When i execute this from the thinapped application it does not work:
  1. File is NOT created
  2. Excel is opened
  3. Excel shows error: file not found
I had to include these lines in the package to be able to execute Excel - otherwise it would show unregistered version and close.
It did however create the file and open it. I suppose this has something to do about Excel not getting the DDE commands from the application.
VirtualizeExternalOutOfProcessCOM=0
ChildProcessEnvironmentExceptions=Excel.exe
ChildProcessEnvironmentDefault=Virtual

 

I hope someone is able to point me in the right direction. I'm not doing the Thinapp packaging myself - its done by a subcontractor.

But i will have to tell them what to do and how.


Viewing all articles
Browse latest Browse all 57744

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>