Recently somebody asked me the previous question an I wanted to share the following explanation rather than just pointing to the solution because the person tried “alternative” solutions like Process.Start or proprietary Excel automation objects:
To open server files (ie Excel files) on the client browser (to load them within a frame or to show the Save As prompt) is necessary to write them down using Response.TransmitFile. Source: DotNetSpider.
I also was asked the following (nor necessary related to C# code) questions (I published them because they can help someone else):
- How to share the WiFi connection between two laptops? Short answer: Execute the following commands (Source: RedmonPie)
netsh wlan set hostednetwork mode=allow ssid=YOUR_SSID key=YOUR_PASS
netsh wlan start hostednetwork
- How to reverse the caps lock? If you use a laptop for development probably from time to time you inverse the caps lock or your mouse starts selecting the text just by moving over. Short answer: hit the two Shift keys. Source: Help.com
- How to solve the “The project type is not supported by this installation” error when loading an ASP.Net Web application with Visual Studio 2012 in a “clean” machine? Short Answer: An installation is missing, probably MVC3 (download it here). Source: MSDN and StackOverflow.
- How to solve the “Could not load file or assembly “System.EnterpriseServices.wrapper.dll” or one of it’s dependencies.” error? Short answer: Add a reference to a valid Wrapper DLL (ie: C:\WINDOWS\WinSxS\x86_System.EnterpriseServices_b03f5f7f11d 50a3a_188.8.131.52_x-ww_7d5f3790\). Source: Andica.com.
Javier Andrés Cáceres AlvisMicrosoft Most Valuable Professional – MVP Intel Black Belt Software Developer