/// <summary> /// 刷新页面 /// </summary> public void Navigate() { if (ReportViewType == ReportViewType.Export) { HtmlView.Navigate(reportExportContent, ReportAbsoluteUrl); } else { HtmlView.Navigate(reportContent, ReportAbsoluteUrl); } }
/// <summary> /// 刷新Congos页面 /// </summary> public void Navigate() { if (CognosViewType == ReportViewType.Export) { HtmlView.Navigate(congosExportContent, CognosAbsoluteUrl); } else { HtmlView.Navigate(congosContent, CognosAbsoluteUrl); } }
protected override void OnInitialized(EventArgs e) { base.OnInitialized(e); // Load base html string path = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; var isRtl = Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft; HtmlView.Navigate(new Uri(Path.Combine(path, isRtl ? "editor_rtl.html" : "editor.html"))); }
protected override void OnInitialized(EventArgs e) { base.OnInitialized(e); string path = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; HtmlView.Navigate(new Uri(Path.Combine(path, "ThreadView.html"))); ICustomDoc doc = (ICustomDoc)HtmlView.Document; doc.SetUIHandler(new DocHostUIHandler()); }
/// <summary> /// 导航绝对页面 /// </summary> /// <param name="url"></param> public void Navigate(string url) { HtmlView.Navigate(reportContent, url); }