Click here to Skip to main content
15,887,329 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Datatable Pin
_mubashir5-Apr-07 20:53
_mubashir5-Apr-07 20:53 
AnswerRe: Datatable Pin
Harini N K6-Apr-07 0:32
Harini N K6-Apr-07 0:32 
QuestionHelp!!! Declare a varied-length array of structures and the use of marshalling? Pin
peary5-Apr-07 18:21
peary5-Apr-07 18:21 
AnswerRe: Help!!! Declare a varied-length array of structures and the use of marshalling? Pin
Luc Pattyn6-Apr-07 4:50
sitebuilderLuc Pattyn6-Apr-07 4:50 
QuestionC# Pin
rednexhex5-Apr-07 16:59
rednexhex5-Apr-07 16:59 
AnswerRe: C# Pin
Sathesh Sakthivel5-Apr-07 17:12
Sathesh Sakthivel5-Apr-07 17:12 
AnswerRe: C# Pin
Rudolf Jan6-Apr-07 0:30
Rudolf Jan6-Apr-07 0:30 
QuestionCall an Executable from C# with Administrative rights Pin
ke3p_up5-Apr-07 16:40
ke3p_up5-Apr-07 16:40 
AnswerRe: Call an Executable from C# with Administrative rights Pin
shrinerainxp5-Apr-07 21:26
shrinerainxp5-Apr-07 21:26 
GeneralRe: Call an Executable from C# with Administrative rights Pin
ke3p_up5-Apr-07 22:41
ke3p_up5-Apr-07 22:41 
Questionsockets question Pin
dino20945-Apr-07 15:45
dino20945-Apr-07 15:45 
QuestionGeneric collection classes with Hashtable Pin
sreecahitu5-Apr-07 13:38
sreecahitu5-Apr-07 13:38 
AnswerRe: Generic collection classes with Hashtable Pin
roel_v5-Apr-07 21:04
roel_v5-Apr-07 21:04 
AnswerRe: Generic collection classes with Hashtable Pin
roel_v5-Apr-07 21:07
roel_v5-Apr-07 21:07 
QuestionHow to empty a Text file? Pin
Khoramdin5-Apr-07 12:50
Khoramdin5-Apr-07 12:50 
AnswerRe: How to empty a Text file? Pin
Luc Pattyn5-Apr-07 12:57
sitebuilderLuc Pattyn5-Apr-07 12:57 

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.