大家看看这里有没有错?我导出水晶报表时,导出的是乱码
CrystalReportViewer1.ReportSource = Server.MapPath("to_hk_truck_order.rpt");
CrystalReportViewer1.DataBind();
to_hk_truck_order myrpt= new to_hk_truck_order();
CrystalDecisions.Shared.DiskFileDestinationOptions opt=new CrystalDecisions.Shared.DiskFileDestinationOptions();
myrpt.ExportOptions.ExportDestinationType=CrystalDecisions.Shared.ExportDestinationType.DiskFile;
myrpt.ExportOptions.ExportFormatType=CrystalDecisions.Shared.ExportFormatType.PortableDocFormat;
opt.DiskFileName="d:\\to_hk_truck_order.xls";
myrpt.ExportOptions.DestinationOptions =opt;
myrpt.Export();