倒入水晶报表 RPT文件

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;
   }

posted on 2006-06-12 04:59  彭灿明  阅读(459)  评论(0编辑  收藏  举报

导航