Code will move MapView from here and place it in the above DocumentViewer. The user wants to be able to print the map but the application always throws an ArgumentNullException. ``` ``` public MainWindow() { InitializeComponent(); this.Loaded += (sender, args) => { // Remove the MapView from the Layout GridLayout.Children.Remove(MyMapView); MyMapView.Width = MyMapView.Height = 300; // Add the MapView to a Fixed Page var fixedPage = new FixedPage { Width = 300, Height = 300 }; fixedPage.Children.Add(MyMapView); GridLayout.Children.Remove(listBox); listBox.Width = listBox.Height = 300; fixedPage.Children.Add(listBox); // Add the FixedPage to the PageContent var pageContent = new PageContent { Child = fixedPage }; // Add the PageContent to the FixedDocument MyFixedDocument.Pages.Add(pageContent); }; } ```"/>
laptop and a wrench

不具合

ArgumentNullException is returned when hosting MapView in Microsoft DocumentView control for client side printing.

最後に公開された状態: December 30, 2015 ArcGIS Runtime SDK
不具合 ID 番号 BUG-000092761
送信されましたDecember 5, 2015
最終更新日June 20, 2022
適用対象ArcGIS Runtime SDK
見つかったバージョン10.2.5
サーバー プラットフォームWindows OS
クライアント プラットフォーム7.0 64 Bit
ステータスNon-Reproducible

参考情報

Appears to be a bug in FixedDocument. Suggested workaround: ``` Code will move MapView from here and place it in the above DocumentViewer. The user wants to be able to print the map but the application always throws an ArgumentNullException. ``` ``` public MainWindow() { InitializeComponent(); this.Loaded += (sender, args) => { // Remove the MapView from the Layout GridLayout.Children.Remove(MyMapView); MyMapView.Width = MyMapView.Height = 300; // Add the MapView to a Fixed Page var fixedPage = new FixedPage { Width = 300, Height = 300 }; fixedPage.Children.Add(MyMapView); GridLayout.Children.Remove(listBox); listBox.Width = listBox.Height = 300; fixedPage.Children.Add(listBox); // Add the FixedPage to the PageContent var pageContent = new PageContent { Child = fixedPage }; // Add the PageContent to the FixedDocument MyFixedDocument.Pages.Add(pageContent); }; } ```

再現の手順

不具合 ID: BUG-000092761

ソフトウェア:

  • ArcGIS Runtime SDK

ArcGIS の専門家からヘルプを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動

このトピックについてさらに調べる