SpreadsheetGear 2010
SpreadsheetGear Explorer Sample Solutions
Send Feedback
SpreadsheetGear 2010 > Getting Started > Using the Samples > SpreadsheetGear Explorer Sample Solutions

Glossary Item Box

SpreadsheetGear 2010 comes with the SpreadsheetGear Explorer sample solutions which are helpful Windows Forms applications for Visual Studio 2005. Visual Studio 2008 and Visual Studio 2010 will offer to convert these solutions to Visual Studio 2008 / 2010 solutions the first time they are opened.

The SpreadsheetGear Explorers are available with C# and Visual Basic source code and are composed of a set of user controls, each of which demonstrates commonly used SpreadsheetGear 2010 functionality and API's. Source code can be viewed and copied directly from the source viewer below each sample. Follow the steps below to open and run the SpreadsheetGear Explorer solutions from Windows (requires a version of Visual Studio 2005, Visual Studio 2008 or Visual Studio 2010 which supports Windows Forms solutions and either C# or Visual Basic).

Please see Troubleshooting SpreadsheetGear Explorer below if you are having problems running the samples. 

Running the SpreadsheetGear Explorer Sample Solutions

  1. Install SpreadsheetGear 2010.
  2. To open the SpreadsheetGear Explorer Sample solution in Visual Studio, open the Windows Start menu, click on All Programs, click on SpreadsheetGear 2010 and click on SpreadsheetGear Explorer C# Sample or SpreadsheetGear Explorer VB Sample.
  3. If you are opening the solution in Visual Studio 2008 or Visual Studio 2010 for the first time, follow the steps in the Visual Studio Conversion Wizard to convert the solution to Visual Studio 2008 / 2010.
  4. For the best performance, make sure that the current configuration is set to Release rather than Debug.
  5. Open the Build menu and choose Rebuild Solution.
  6. Open the Debug menu and choose Start Without Debugging to run SpreadsheetGear Explorer.
  7. In SpreadsheetGear Explorer, choose among the various samples on the left. Note that many of the samples require user input, such as clicking on a Run Sample button or entering the specified text or number into a cell.
  8. Source code can be viewed and copied directly at runtime from the source viewer below each sample.
  9. It is important to note that the SpreadsheetGear Explorer samples demonstrate the usage of GetLock and ReleaseLock which are required when using the WorkbookView control with background calculation enabled. ASP.NET developers will almost never use GetLock and ReleaseLock, and at the time of this writing none of the ASP.NET samples provided by SpreadsheetGear LLC use GetLock and ReleaseLock.

Troubleshooting SpreadsheetGear Explorer

You may run into problems with the SpreadsheetGear Explorer samples. Common problems fall into one of two categories:

To avoid these problems, run an appropriate version of Visual Studio as an administrator.

Running Visual Studio 2005, Visual Studio 2008 or Visual Studio 2010 as an Adminstrator

As an alternative, you may prefer to copy the samples from 'C:\ProgramData\SpreadsheetGear\SpreadsheetGear 2010\Samples\' (or 'C:\Documents and Settings\All Users\Application Data\SpreadsheetGear\SpreadsheetGear 2010\Samples\' on older versions of Windows) to a directory in which you have the appropriate permissions and then open them in Visual Studio.

Copyright © 2003-2010 SpreadsheetGear LLC.   All Rights Reserved.Help Powered by Innovasys