MSTerminalServices.org Forums

Forums Home | FAQ | Search | Profile | Private Messages | Log in/Register/Password

c#.net starts excel in citrix but does not inherit env var..

Page 1 of 1
Next:  Citrix: Citrix printer issue  
Author Message
eurico

External


Since: Jun 05, 2008
Posts: 1



(Msg. 1) Posted: Thu Jun 05, 2008 2:25 am
Post subject: c#.net starts excel in citrix but does not inherit env variables
Archived from groups: alt>os>citrix (more info?)

I have created a C# application in C#.NET 2.0 and it starts excel via

oExcelApp = new Excel.ApplicationClass();

The application .exe files is executed in Citrix from a cmd file that
sets lots of env variables in advance. In Citrix, if I go to the excel
spreadsheet, these env variables are missing. However, if I start
excel by doing

Process.Start("excel.exe");

then these are there. I need the first to work, since I use excel + a c
++ xll to calculate some values from an external system and retrieve
those to my C# application.

Interestingly, from my PC, both keep the env variables, but in Citrix
only the second works. Unfortunately I cannot debug the Citrix app,
since it is run by IT and I can only send the msi to them, and then
reverse-engineer what is going on.

Any clues?

Thanks

Eurico
Back to top
Send e-mail Login to vote
Ken Z

External


Since: Dec 21, 2006
Posts: 33



(Msg. 2) Posted: Sat Jun 14, 2008 6:26 am
Post subject: Re: c#.net starts excel in citrix but does not inherit env variables [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 5 Jun 2008 02:25:37 -0700 (PDT), eurico
<eurico.covas RemoveThis @hsbcgroup.com> wrote:

>I have created a C# application in C#.NET 2.0 and it starts excel via
>
>oExcelApp = new Excel.ApplicationClass();
>
>The application .exe files is executed in Citrix from a cmd file that
>sets lots of env variables in advance. In Citrix, if I go to the excel
>spreadsheet, these env variables are missing. However, if I start
>excel by doing
>
>Process.Start("excel.exe");
>
>then these are there. I need the first to work, since I use excel + a c
>++ xll to calculate some values from an external system and retrieve
>those to my C# application.
>
>Interestingly, from my PC, both keep the env variables, but in Citrix
>only the second works. Unfortunately I cannot debug the Citrix app,
>since it is run by IT and I can only send the msi to them, and then
>reverse-engineer what is going on.
>
>Any clues?
>
>Thanks
>
>Eurico

Eurico

if you connect to the Citrix server via RDP rather than ICA, does it
work then? If it still doesn't, then it's more than likely a Microsoft
issue rather than a Citrix issue. You'd get more response from a
Microsoft developer forum rather than a pure Citrix one.

Regards

Ken Z
Back to top
Send e-mail Login to vote
Display posts from previous:   
    All times are: Eastern Time (US & Canada) (change) Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Looking for more Terminal Services info?

Sign up to the MSTerminalServices.org Monthly Newsletter, written by Terminal Server MVP & Citrix CTP Stefan Vermeulen, containing news, tips, interviews, links of the month and much more. Subscribe today and don't miss a thing!

Become an MSTerminalServices.org member!

Discuss your Terminal Services & Citrix issues with thousands of other SBC experts. Click here to join!

Community Area

Log in | Register