You can use the Spread 8 COM control in Microsoft Visual Studio 2015 with Microsoft Windows 10. Spread Windows Forms is a .NET control and is a better option; however, you may have older code or projects where you need to use Spread 8 COM. Use the following steps to create a new project in Visual Studio 2015 and add the Spread 8 COM control.
- Select File, New, and then Project in Visual Studio 2015.
New Project
- Select Windows under the Visual C# or Visual Basic sections. Then select Windows Forms Application. Specify a name and location and then select OK.
Windows Forms Application
- Right click on the Toolbox and select Choose Items…
Add Item
- Select Farpoint Spread 8.0 from the COM Components tab. Then select OK.
Components
- Select Spread and drag it to the form from the Toolbox.
Toolbox
Form with Spread Control
- Select MSDATASRC and stdole references in the Solution Explorer and set Embed Interop Types to False.
Reference
Reference
- Select Project and Properties.
Project Properties
- Verify that the Prefer 32-bit option is checked under the Build menu.
Build Options
- Add code and run the project. This code creates multiple headers and adds header text.
C#