Platforms to show: All Mac Windows Linux Cross-Platform
WindowsAddPrintJobMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Printing Windows | MBS Win Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Perfect for printing postscript data to a postscript printer.
You can use this class in several ways:
1. OpenPrinter, AddJob, WriteJob and ScheduleJob.
2. OpenPrinter, StartDocPrinter, StartPagePrinter, WritePrinter, EndPagePrinter, EndDocPrinter and ClosePrinter.
3. OpenPrinter, StartDocPrinter, WritePrinter, EndDocPrinter and ClosePrinter.
- 5 properties
- property JobID as Integer
- property JobPath as String
- property lastError as Integer
- property lastErrorMessage as String
- property PrinterHandle as Integer
- 12 methods
- method AddJob as boolean
- method ClosePrinter
- method EndDocPrinter as boolean
- method EndPagePrinter as boolean
- method OpenPrinter(PrinterName as string) as boolean
- method ScheduleJob as boolean
- method StartDocPrinter(DocName as string, Datatype as string) as boolean
- method StartDocPrinter(DocName as string, OutputFile as folderitem, Datatype as string) as boolean
- method StartDocPrinter(DocName as string, OutputFilePath as string, Datatype as string) as boolean
- method StartPagePrinter as boolean
- method WriteJob(data as string) as Integer
- method WritePrinter(data as string) as Integer
- 2 constants
Constants
Constant | Value | Description |
---|---|---|
kDataFormatRAW | "RAW" |
One of the data format constants.
Use this constant if you send to both local and networked printers that use GDI-based printer drivers. |
kDataFormatXPS_PASS | "XPS_PASS" |
One of the data format constants.
Use this constant to send printer control data directly to printers that use XPSDrv printer drivers. |
This class has no sub classes.
Some examples using this class:
Blog Entries
- MBS Xojo / Real Studio Plugins, version 15.2pr1
- More on printing on Windows
- MBS Plugins 10.3 Release Notes
The items on this page are in the following plugins: MBS Win Plugin.
Window - WindowsADSystemInfoMBS