51 lines
1.4 KiB
Markdown
51 lines
1.4 KiB
Markdown
|
|
# PDF Printing Form Documentation
|
|
|
|
## Overview
|
|
This form provides functionality for printing PDF files using Adobe Acrobat/Reader and handling print jobs.
|
|
|
|
## Key Components
|
|
|
|
### Form Controls
|
|
- `txtAdobeStr`: Path to Adobe executable
|
|
- `txtPDFtoPrint`: PDF file path to print
|
|
- `txtPDFPrinter`: Target printer name
|
|
- `txtPrintedBy`: User/system printing the document
|
|
- `txtBanner`: Banner text for the print job
|
|
- `Text1`: Command string display
|
|
- `List1-5`: Used for window handle management
|
|
- `Timer1`: Timer control
|
|
- `cmdPrintPDF`: Print button
|
|
|
|
### Main Functions
|
|
|
|
#### PrintAPDF
|
|
|
|
Public Sub PrintAPDF(FileToPrint$, PrinterToUse$, PrintedBy$, Banner$)
|
|
|
|
Handles PDF printing with the following:
|
|
- Executes print request via shell command
|
|
- Copies files to specific network locations based on PrintedBy value
|
|
- Supports special handling for CHINA, MCF, HZ, and QHAL prints
|
|
|
|
#### LookForAndKillAdobeErrors
|
|
|
|
Public Sub LookForAndKillAdobeErrors()
|
|
|
|
- Monitors and handles Adobe Reader/Acrobat error windows
|
|
- Automatically dismisses error dialogs
|
|
- Uses window handle management for automation
|
|
|
|
### Usage
|
|
1. Enter Adobe executable path
|
|
2. Specify PDF file to print
|
|
3. Select target printer
|
|
4. Enter printer user/system
|
|
5. Set banner text
|
|
6. Click "Print PDF" button
|
|
|
|
### Dependencies
|
|
- Requires Adobe Acrobat/Reader installation
|
|
- Network access for file copying
|
|
- Windows API functions for window management
|