Xbasic
Office::ExcelDocumentAddSheetFromResultSet Method
Syntax
.AddSheetFromResultSet as Office::Spreadsheet (ResultSet as P, SheetName as C [, IncludeHeadings as L [, RowsToCopy as N [, StartRow as N [, ReferenceColumns as P [, UserContext as P]]]]])
Arguments
- ResultSetPointer
- SheetNameCharacter
- IncludeHeadingsLogical
- RowsToCopyNumeric
- StartRowNumeric
- ReferenceColumnsPointer
- UserContextPointer
Returns
- resultOffice::Spreadsheet
Description
Create a new spreadsheet and add it to the document. Add the data in the result set. Optionally include headings, select a range of rows and include a SQL::TableInfo and user context to handle advanced transformations.
Example
dim Doc as Office::ExcelDocument
See Also