Enumerating printer forms
Enumerating of printer forms can be done with Windows API EnumForms function. Contrary to what MSDN says, it returns the list of all printer forms on PC, not just for the specific printer. On other hand, DeviceCapabilities can return a list of supported paper sizes for the printer.
Get number of jobs in print queue
The number of jobs in print queue can be retrieved by simplified version of Enumerating jobs in print queue
Enumerating jobs in print queue
Enumerating jobs in a print queue can be done with
- WMI Win32_PrintJob class
- Windows API EnumJobs function.
How to delete all Print Jobs from a print queue
All jobs from a print queue can be deleted with
- WMI Win32_Printer class and CancelAllJobs method
- Windows API SetPrinter function.
Commenting via shortcut keys in VFP
The comment/uncomment items on the Format menu do not have shortcut keys but they have access keys assigned. Pressing ALT+om and ALT+on on a keyboard will comment/uncomment selected text respectively.
Send email via Gmail account
Gmail SMTP server requires SSL connection on port 465.
CDO 2000 constants
CDO 2000 constants and enumerations
Send email with CDO 2000
It's simple and convenient to send unattended email with CDO 2000 as long as there's a SMTP server available.
CDO 2000 class for sending emails
The CDO2000 class allows to send emails w/o user intervention using a SMTP server.
Queries and functions which accept alias as parameter
The functions such as DELETED(), RECNO(), etc., which accept an optional workarea alias, could yield unexpected results when used in queries incorrectly.