Class used to print maps with the ArcPress Printer Driver.
Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.
| Interfaces | Description |
|---|---|
| IArcPressPrinter | Indicator interface that identifies the ArcPress Printer Driver. |
| IClone (esriSystem) | Provides access to members that control cloning of objects. |
| IOutputCleanup (esriOutput) | Superseded by IExport. Provides access to members that control the object's cleanup process (removing temporary files, memory release, etc.). |
| IPersistStream (esriSystem) | |
| IPrinter (esriOutput) | Provides access to members that control the Printer Driver. |
| ISupportErrorInfo | Indicates whether a specific interface can return Automation error objects. |
| ITrackCancelSetup (esriOutput) | Provides access to members that set up the Track Cancel. |
Because the ArcPressPrinter class is part of the ArcPress for ArcGIS extension, you must make special considerations if using ArcPressPrinter outside of the ArcMap process. If using ArcPressPrinter in a standalone application, be sure to CoCreate an ExtensionManager object before using ArcPressPrinter. If your application does not contain an ExtensionManger, ArcPressPrinter will raise and E_FAIL error at when IPrinter::StartPrinting() is called. The code sample below shows how to create and set up an ExtensionManager object.
Because ArcPressExtension support IAutoExtension, you do not need to manage any part of ArcPressExtension. The extension will do both IExtension::Startup() and IExtension::Shutdown() automatically when the ArcPressPrinter object is in use. However, you do need to ensure that an ExtensionManager object has been created.
Sample code illustrating how to create an ExtensionManager object and add the ArcPressExtension to it.
Dim pExtAdmin As IExtensionManagerAdminSet pExtAdmin = New ExtensionManager
Set pApExtUid = New UID
pApExtUid.value = "esriOutputExtensions.ArcPressExtension"
pExtAdmin.AddExtension pApExtUid, 0