FrmRepBrower.cs 850 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Windows.Forms;
  3. using CoreFS.CA06;
  4. namespace Core.StlMes.Client.LgResMgt.Mcms
  5. {
  6. /// <summary>
  7. /// 报表公用界面
  8. /// </summary>
  9. public partial class FrmRepBrower : FrmBase
  10. {
  11. /// <summary>
  12. /// 报表地址
  13. /// </summary>
  14. private string strUrl = "";//报表地址
  15. public FrmRepBrower(OpeBase op, string url)
  16. {
  17. InitializeComponent();
  18. strUrl = url;
  19. }
  20. private void FrmRepExcel_Load(object sender, EventArgs e)
  21. {
  22. this.webBrowser1.Url = new Uri(strUrl);
  23. this.webBrowser1.ScriptErrorsSuppressed = true;//屏蔽脚本错误
  24. }
  25. private void FrmRepExcel_FormClosing(object sender, FormClosingEventArgs e)
  26. {
  27. webBrowser1.Dispose();
  28. }
  29. }
  30. }