Xbasic
Office::Excel2003DocumentAddSheetFromResultSet Method
Syntax
.AddSheetFromResultSet as Office::Spreadsheet (ResultSet as SQL::ResultSet, SheetName as C [, IncludeHeadings as L [, RowsToCopy as N [, StartRow as N [, ReferenceColumns as P [, UserContext as P]]]]])
Arguments
- ResultSetSQL::ResultSet
The result set for a SQL query that contains the data to add to the spreadsheet.
- SheetNameCharacter
The spreadsheet name.
- IncludeHeadingsLogical
Default = .T.. If .T., headings will be included in the spreadsheet.
- RowsToCopyNumeric
Default = -1. The number of rows to copy. If -1, all rows will be copied.
- StartRowNumeric
Default = -1. The first row to copy.
- ReferenceColumnsSQL::TableInfo
Default = null_value(). Specify advanced data transformations using a SQL::TableInfo object.
- UserContextPointer
Default = null_value(). A context object used to perform advanced data transformations.
Returns
- resultOffice::Spreadsheet
Returns the spreadsheet.
Description
Create a new spreadsheet from a SQL::ResultSet and add it to the document.
See Also