tags:

views:

610

answers:

1

I embed Excel worksheet in a WinForms C# application in two ways - using WebBrowser control and using dsoFramer control. In both cases i'm facing the following two problems: 1. How do i make my embedded spreadsheet read-only? The only way i discovered is by protecting the underlying Excel file, but it causes annoying message boxes to pop up all the time. 2. If i launch MS Excel in a separate process prior to launching my application, the standalone Excel freezes after my embedded worksheet is shown. Any thoughts?

+1  A: 

SpreadsheetGear for .NET comes with an Excel compatible Windows Forms spreadsheet control which you can simply drag to your form. It includes a Workbook Designer which allows you to edit workbooks right in Visual Studio or load Excel workbooks from disk, and also includes a comprehensive API which is similar to Excel (except that it is .NET friendly).

You can learn more and try the free evaluation for yourself if this might work for you.

Disclaimer: I own SpreadsheetGear LLC

Joe Erickson