This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > OutputExtensions > ESRI.ArcGIS.OutputExtensions > Interfaces > IA > IArcPressPrinter Interface > IArcPressPrinter.SelectedDriverId Property (ArcObjects .NET 10.5 SDK) |
Selected driver id.
[Visual Basic .NET] Public Property SelectedDriverId As UID
[C#] public UID SelectedDriverId {get; set;}
Instead of directly assigning a value to the SelectedDriverId property, developers should instead use the IArcPress::AutoSelectDriverByName method. This method will automatically select the appropriate ArcPress driver for the printer. Directly assigning a value to the SelectedDriverId property can cause unexpected results while printing.
Before calling IPrinter::StartPrinting, check that SelectedDriverId is not null. If AutoSelectDriverByName cannot find a compatible driver, SelectedDriverId will be null and the call to StartPrinting will fail.