How to open an exported file through online docs when the user dont have a appropriate software in his desktop to open the file.. Pin
<p>In my application, am exporting the data from Grid to Excel file and save it in My Documents.</p>

<p>If the user dont have Excel installed in his machine, it has to redirect it to google spreadsheet to view the exported file..</p>

<p>Can any one tell me how to do it...</p>

<p>As of now, am displaying a message to the user if he dont have Excel installed in his machine to view the Exported Excel file, i want to replace this by redirecting it to Google spreadsheet to view the exported file, am using a code this code to display message to the user..</p>

<pre><code>if (MessageBox.Show(
                        "Data Exported to File " + strFileName +
                        " at location MyDocuments. Do yo want to view the saved file?",
                        "Work Done",
                        MessageBoxButton.YesNo,
                        MessageBoxImage.Information) == MessageBoxResult.Yes)
                    {
                        Type officeType = Type.GetTypeFromProgID("Excel.Application");
                        if (officeType == null) 
                        {
                            MessageBox.Show("Please Install MS Excel to view this file", "Liquidity Risk Management");
                        }
                        else 
                        {
                            olx.visible=true;
                        }
                    }
</code></pre>
