漏洞 ID 编号 |
BUG-000167134 |
已提交 | April 30, 2024 |
上次修改时间 | June 27, 2025 |
适用范围 | ArcGIS Pro SDK for .NET |
找到的版本 | 3.2 |
操作系统 | Windows OS |
操作系统版本 | 10.0 64 Bit |
状态 | As Designed
经开发团队审核,已确定此行为符合设计。 有关详细信息,请参阅“其他信息”部分。
|
附加信息
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);
解决办法
Use the new Pro 3.5 MapView.Print(printerSettingInfo) or Layout.Print(printerSettingInfo, MapSeriesOptions) functions.
重现步骤