FrymasterVB/DWSPOOL.CLS.md

60 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2025-01-08 17:02:29 -06:00
# DWSPOOL.CLS Documentation
## Overview
DWSPOOL.CLS is a class module that handles print spooling functionality in DynamicWeb.
## Properties
### SpoolPath
- Type: String
- Description: Gets/sets the path where spool files are stored
- Access: Read/Write
### SpoolFile
- Type: String
- Description: Gets/sets the current spool file name
- Access: Read/Write
## Methods
### Initialize()
- Description: Initializes a new spool instance
- Parameters: None
- Returns: None
### CreateSpool()
- Description: Creates a new spool file
- Parameters: None
- Returns: Boolean indicating success/failure
### WriteSpool(strText)
- Description: Writes text to the spool file
- Parameters:
- strText (String): Text to write
- Returns: None
### CloseSpool()
- Description: Closes and finalizes the current spool file
- Parameters: None
- Returns: None
### DeleteSpool()
- Description: Deletes the current spool file
- Parameters: None
- Returns: None
## Usage Example
Dim oSpool As New DWSpool
oSpool.SpoolPath = "C:\Spool\"
oSpool.CreateSpool
oSpool.WriteSpool "Hello World"
oSpool.CloseSpool
## Notes
- Spool files are temporary and should be deleted after processing
- Default spool path is the application temp directory
- Multiple spool instances can run simultaneously