Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi.
i have a gridview which is exported to word document in my web page.
my problem is that.. while exporting the gridview..if the internet is disconnected.. then the winword.exe ( dump ) is created in task manager.
and in another attempt of exporting gridview to winword ... it gives error.. that the file is already in use.. or the process is being used like that..

how can we tackle with the temporary disconnection of internet .. how we can try catch this problem..
thanks in advance
Posted

Use a try-catch-finally block and close/dispose the application instance in its finally block. I am not able to understand how "temporary disconnection of internet" is affecting the execution of your code at server side.
 
Share this answer
 
Correct me if I am wrong but exporting from a webpage does it require word from the start?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900