Printer Forms Manager
Posted: Sun Mar 05, 2017 12:17 pm
Here is the source for a utility that lets you Add, Change or Delete printer forms.
http://bb.donnay-software.com/donnay/PrinterForms.Prg
It uses the following Windows API calls:
http://bb.donnay-software.com/donnay/PrinterForms.Prg
It uses the following Windows API calls:
Code: Select all
DLLFUNCTION AddFormA( hPrinter, nLevel, sForm ) USING STDCALL FROM WINSPOOL.DRV
DLLFUNCTION OpenPrinterA( cPrinterName, @hPrinter, sDefaults ) USING STDCALL FROM WINSPOOL.DRV
DLLFUNCTION ClosePrinter( hPrinter ) USING STDCALL FROM WINSPOOL.DRV
DLLFUNCTION SetFormA( hPrinter, cFormName, nLevel, sForm ) USING STDCALL FROM WINSPOOL.DRV
DLLFUNCTION GetLastError() USING STDCALL FROM KERNEL32.DLL
DLLFUNCTION DeleteFormA( hPrinter, cFormName ) USING STDCALL FROM WINSPOOL.DRV