Numéro d’ID de bogue |
BUG-000167134 |
Envoi | April 30, 2024 |
Dernière modification | June 27, 2025 |
S’applique à | ArcGIS Pro SDK for .NET |
Version trouvée | 3.2 |
Système d’exploitation | Windows OS |
Version du système d’exploitation | 10.0 64 Bit |
Statut | As Designed
Après examen par l’équipe de développement, il a été déterminé que ce comportement est prévu. Pour plus d’informations, reportez-vous à la section Informations supplémentaires.
|
Informations supplémentaires
The older SDK MapView.Print(printerSettings) function was marked obsolete and was replaced by a new MapView.Print(printerSettingInfo) or Layout.Print(printerSettingInfo, MapSeriesOptions) function.
Here are some snippets:
PrinterSettingsInfo info = new PrinterSettingsInfo();
var printerSettings = info.PrinterSettings;
printerSettings.PrinterName = "some printer name";
printerSettings.DefaultPageSettings.Landscape = false;
printerSettings.Copies = 1;
info.DoShowSelectionSymbology = false;
info.LayoutOrMapName = layout.Name;
layout.Print(info);
Solution de contournement
Use the new Pro 3.5 MapView.Print(printerSettingInfo) or Layout.Print(printerSettingInfo, MapSeriesOptions) functions.
Étapes pour reproduire