Spread 8.0 Documentation
Example
Support Options

Glossary Item Box

Example


The following example loads an existing Excel-formatted file into a Spread control.

C++

void CAboutDlg::OnClickFpbtn1()
{
    // Load an Excel-formatted file
    m_Spread.ImportExcelBook("c:\\test.xls", "c:\\test.log");
}

Visual Basic

Private Sub Command1_Click()
    ' Load an Excel-formatted file
    fpSpread1.ImportExcelBook App.Path & "\test.xls", App.Path & "\test.log"
End Sub

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.