水晶报表导出WORD文件,
不过客户端要装WORD才能即时浏览。
在WORD他喜欢怎样设置,就怎样设置。

解决方案 »

  1.   

    我就是不会写,不知道兄弟有没有源代码。
    发给我一分!!邮箱:[email protected],谢谢
      

  2.   

    Dataset_gc set1=new Dataset_gc();
        SqlDataAdapter reader=new SqlDataAdapter(strsql,conn);
    reader.Fill(set1,"t_report_gc");
    CrystalReport_gc  myreport=new CrystalReport_gc();
    myreport.SetDataSource(set1);
    CrystalDecisions.Shared.DiskFileDestinationOptions  diskopts=new CrystalDecisions.Shared.DiskFileDestinationOptions();
    myreport.ExportOptions.ExportDestinationType=CrystalDecisions.Shared.ExportDestinationType.DiskFile;
    myreport.ExportOptions.ExportFormatType=CrystalDecisions.Shared.ExportFormatType.Excel;
    //myreport.ExportOptions.ExportFormatType=CrystalDecisions.Shared.ExportFormatType.WordForWindows;
    diskopts.DiskFileName=@"d:\report\市场质量工程不良一览表" + "-" + year_gc + "-" + month_gc + ".xls";
    //diskopts.DiskFileName=@"d:\report\市场质量工程不良一览表" + "-" + year_gc + "-" + month_gc + ".doc";
    myreport.ExportOptions.DestinationOptions=diskopts;
    myreport.Export();
      

  3.   

    哈哈 老兄  打印机的终端控件的代码 很简单,但是我估计你那里面要用到web service   我提信你,在.net里对控件的终端操作的安全性要求是非常严格的。 慢慢来吧! 这中老板 不干也罢!