- Support Home >
- Knowledge Base >
- Technical Articles >
- Article Detail
Problem: ArcMap closes when using VBA to specify IArcPressPrinter::Driver
| Article ID: | 19034 |
|---|---|
| Bug Id: | CQ00143040 |
| Software: | ArcGIS - ArcEditor 8.1 ArcGIS - ArcInfo 8.1 ArcGIS - ArcView 8.1 |
| Platforms: | Windows NT 4.0, 2000 |
Description
Cause
Solution or Workaround
The following code snippet demonstrates how to set up the IPrinter::Paper object before specifying a driver.
Dim pApp as IApplication
Set pApp = Application
Dim pMxApp as IMxApplication
Set pMxApp = pApp
Dim pPrinter as IPrinter
Set pPrinter = New ArcPressPrinter
Dim pArcPressPrinter as IArcPressPrinter
Set pArcPressPrinter = pPrinter
Set pPrinter.Paper = pMxApp.Paper
pArcPressPrinter.Driver = <member of esriArcPressDriverPrinters>
Created: 5/9/2001
Last Modified: 9/22/2003