Automatically open file after upload in Silverlight 4

I create an Excel server table and upload it to the client through the Silverlight interface. It is launched by the user by pressing a button and presenting SaveFileDialog. When the user enters a file name, Silverlight starts an asynchronous call to the web service and, upon completion, returns an array of bytes, which is written to where the user asked to save it. It all works great.

How can I automatically open this file on a client PC?

+3
source share
1 answer

You do not use or COM interoperability

"" # - "Process.Start()". Silverlight , .

COM Interop, , Silverlight 4 "Out of Browser", Silverlight 5 (Beta) . , SaveFileDialog, , COM Interop Open. , "" (, )...

http://www.itwriting.com/blog/2159-silverlight-4-with-com-can-do-anything-on-windows.html http://justinangel.net/CuttingEdgeSilverlight4ComFeatures

+2

Source: https://habr.com/ru/post/1779314/


All Articles