.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]]]]])
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.
dim Doc as Office::ExcelDocument