Click here to Skip to main content
15,905,232 members
Home / Discussions / C#
   

C#

 
QuestionGDIPlus Thread safeness Pin
a.mulay5-Apr-07 23:34
a.mulay5-Apr-07 23:34 
QuestionHelp for Window Service. Pin
blue_arc5-Apr-07 23:07
blue_arc5-Apr-07 23:07 
QuestionUsing a C++ function (defined in a dll) with char* param [modified] Pin
jozsurf5-Apr-07 22:35
jozsurf5-Apr-07 22:35 
AnswerRe: Using a C++ function (defined in a dll) with char* param Pin
CPallini6-Apr-07 2:06
mveCPallini6-Apr-07 2:06 
AnswerRe: Using a C++ function (defined in a dll) with char* param Pin
Luc Pattyn6-Apr-07 4:31
sitebuilderLuc Pattyn6-Apr-07 4:31 
GeneralRe: Using a C++ function (defined in a dll) with char* param Pin
jozsurf6-Apr-07 16:46
jozsurf6-Apr-07 16:46 
GeneralRe: Using a C++ function (defined in a dll) with char* param Pin
jozsurf8-Apr-07 15:28
jozsurf8-Apr-07 15:28 
QuestionWebpage load Pin
linhuu5-Apr-07 22:01
linhuu5-Apr-07 22:01 
AnswerRe: Webpage load Pin
Stefan Troschuetz5-Apr-07 23:45
Stefan Troschuetz5-Apr-07 23:45 
AnswerRe: Webpage load Pin
Obaid ur Rehman5-Apr-07 23:49
Obaid ur Rehman5-Apr-07 23:49 
QuestionHow can i make exe of my appliction? Pin
Nekshan5-Apr-07 20:24
Nekshan5-Apr-07 20:24 
AnswerRe: How can i make exe of my appliction? Pin
Obaid ur Rehman5-Apr-07 20:34
Obaid ur Rehman5-Apr-07 20:34 
Questionxml document Pin
Tauseef A5-Apr-07 20:23
Tauseef A5-Apr-07 20:23 
Questionwhat are the new softwares for screen capturing [modified] Pin
khema5-Apr-07 19:49
khema5-Apr-07 19:49 
AnswerRe: what are the new softwares for screen capturing Pin
shrinerainxp5-Apr-07 21:35
shrinerainxp5-Apr-07 21:35 
GeneralRe: what are the new softwares for screen capturing Pin
khema8-Apr-07 18:05
khema8-Apr-07 18:05 
GeneralRe: what are the new softwares for screen capturing Pin
khema8-Apr-07 18:31
khema8-Apr-07 18:31 
Questionhow to know if someone visited my site? Pin
Nekshan5-Apr-07 19:36
Nekshan5-Apr-07 19:36 
QuestionHow to solve"Cross thread operation not valid" error when programming with C#.net Pin
sweenySL5-Apr-07 19:34
sweenySL5-Apr-07 19:34 
AnswerRe: How to solve"Cross thread operation not valid" error when programming with C#.net Pin
Obaid ur Rehman5-Apr-07 20:31
Obaid ur Rehman5-Apr-07 20:31 
AnswerRe: How to solve"Cross thread operation not valid" error when programming with C#.net Pin
shrinerainxp5-Apr-07 21:24
shrinerainxp5-Apr-07 21:24 
AnswerRe: How to solve"Cross thread operation not valid" error when programming with C#.net Pin
Luc Pattyn6-Apr-07 4:39
sitebuilderLuc Pattyn6-Apr-07 4:39 
QuestionError in saving excel file Pin
Manish_Home5-Apr-07 19:32
Manish_Home5-Apr-07 19:32 
AnswerRe: Error in saving excel file Pin
roel_v5-Apr-07 21:22
roel_v5-Apr-07 21:22 
Manish,

It is considered bad practice to use Excel directly from an IIS web application.

If I remember correctly, no matter where you save to, Excel tries to access folders specific for the user it runs under, such as 'My Documents'. For these type of accounts like network service, ASPNET, etc these folders do not exist and that gives you these type of problems.

The work-around is a queued approach, where you queue requests for doing something with Excel. Then, you run an NT Service under a 'real' user account that picks up these requests and processes it. However, I was forced once to do something like that with Word and it's difficult to implement and it always remains error prone. Microsoft officially recommends against using Office applications in background services and for good reason.

Instead of trying to work around it, I suggest you look into buying one of those third party components that work natively on Excel files without requiring Excel on the server. Those are very stable and much faster than accessing Excel through its own object library. I've used components from SoftArtisans with excellent results.

See: http://www.softartisans.com/[^]

Hope this helps,

Roel
QuestionDatatable Pin
AnhTin5-Apr-07 18:46
AnhTin5-Apr-07 18:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.