Bug ID Number |
BUG-000167134 |
Submitted | April 30, 2024 |
Last Modified | June 27, 2025 |
Applies to | ArcGIS Pro SDK for .NET |
Version found | 3.2 |
Operating System | Windows OS |
Operating System Version | 10.0 64 Bit |
Status | As Designed
After review by the development team, it has been determined that this behavior is as designed. See the Additional Information section for details.
|
Additional Information
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);
Workaround
Use the new Pro 3.5 MapView.Print(printerSettingInfo) or Layout.Print(printerSettingInfo, MapSeriesOptions) functions.
Steps to Reproduce