public void LoadDocument() { try { Busy.IsBusy = true; Uri documentUri = new Uri(fileUrl); HttpPartRetriever myHttpPartRetriever = new HttpPartRetriever(documentUri); this.MyDocumentViewer.LoadAsync(myHttpPartRetriever, OnLoadAsyncCallback); } catch (System.Exception ex) { MessageBox.Show(ex.Message); MessageBox.Show(ex.StackTrace); } }
public void LoadDocument() { try { //Busy.IsBusy = true; Uri documentUri = new Uri(fileUrl); HttpPartRetriever myHttpPartRetriever = new HttpPartRetriever(documentUri); this.MyDocumentViewer.LoadAsync(myHttpPartRetriever, OnLoadAsyncCallback); } catch (System.Exception ex) { MessageBox.Show(ex.Message); MessageBox.Show(ex.StackTrace); } }