Docs: SpeedGen ASP: Generate Method

Method: Generate "aTemplateFile" "aDownloadFile" aOpenInPlace
Purpose Creates the Excel Workbook and streams it out to the Client.
Parameters
Returns Nothing.
Example
myXLS_obj.Generate "c:\states.xls", "states.xls", True
Description

Creates the Excel Workbook and streams it out to the Client. It can open the spreadsheet in place or launch Excel separately.

The Excel Workbook is created by processing the aTemplateFile and populating it with data.

There are absolutely no disk writes. Everything will be constructed in memory and streamed out to the client.

Notes
  • Read more about Streaming and Saving
  • You must not use Response.Write in the script!
  • You must not write any Response Headers unless you set the NoHeaders property to False.
  • The ASP Script must have read permission to access the file specified by aTemplateFile.
  • Only one call can be made to Generate per script.
  • You can use either Generate or SaveLocally in a script. You cannot use both!

(c) 2000-2003 Optimized Software Canada Inc. All Rights Reserved.

Microsoft® Excel is a Registered Trademark of Microsoft Corporation.