OpenFileDialog dlg = new OpenFileDialog();
   dlg.Title = "Select Crystal Reports file";
   dlg.Filter = "Crystal Reports (*.rpt)|*.rpt|All Files (*.*)|*.*";
   dlg.InitialDirectory = "C:\\Program Files\\Microsoft Visual Studio.NET\\Crystal Reports\\Samples\\Reports";
   if (dlg.ShowDialog() == DialogResult.OK)   
   {
    this.Cursor = Cursors.WaitCursor;
    crystalReportViewer.ReportSource = dlg.FileName;
    this.Cursor = Cursors.Default;
   }

相关文章:

  • 2021-08-19
猜你喜欢
  • 2021-11-12
  • 2022-01-23
  • 2022-01-07
  • 2021-08-14
  • 2021-12-04
  • 2021-09-19
相关资源
相似解决方案