请遇到过类似水晶报表导出问题的高手们帮忙看看,谢谢啦 WEB应用程序中调用水晶报表,一切正常,用水晶报表自带的工具条进行导出:(1)导出PDF和Word格式均正常,但是导出Excel格式则发生变化,连水晶报表工具条都一起导出,而且数据排成一列,实在找不出什么原因导致(2)现在每次导出时报表都是自动打开,怎么设置能在打开前先出现提示保存对话框?系统怎么只允许最多给100分,解决了我肯定再给! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在crystalViewer控件中的导出.case "MS Excel (XLS)":rptDoc.ExportOptions.ExportFormatType=CrystalDecisions.Shared.ExportFormatType.Excel;cryDiskF.DiskFileName = filePathNameXLS;rptDoc.ExportOptions.DestinationOptions = cryDiskF;rptDoc.SetParameterValue("InvID",AVal); rptDoc.Export(); rptDoc.Close(); // Response.Clear(); Response.Buffer = true; Response.AddHeader("Content-Type", "application/xls"); Response.AddHeader("Content-Disposition", "attachment;filename="+ Session.SessionID+".xls;"); fs = new FileStream(filePathNameXLS,FileMode.Open); fileSize = fs.Length; bBuffer = new byte[Int32.Parse(fileSize.ToString())]; fs.Read(bBuffer,0,Int32.Parse(fileSize.ToString())); fs.Close(); Response.BinaryWrite(bBuffer); Response.Flush(); Response.Close(); break; 如何获取自定义控件中模板的值 如何把解析的XML数据 绑定到页面上啊 求C#开发QQ客户端代码 怎么设置dataGridView某一行被Selected时,滚动条自动滚动这行上啊. <C#>求 2/1 , 3/2 , 5/3 , 8/5 , 13/8 , 21/13 ,……这个数列的前 100项之和。 请问声明这样的语句 根据用户权限普通用户不能访问修改的页面 Sql语句查询的结果如何返回到数组????? winform中comboBox的一个疑问 关于ComboBox的DropDownList属性 C#中如何调用delphi写的dll 获取中间几位数据
case "MS Excel (XLS)":
rptDoc.ExportOptions.ExportFormatType=CrystalDecisions.Shared.ExportFormatType.Excel;
cryDiskF.DiskFileName = filePathNameXLS;
rptDoc.ExportOptions.DestinationOptions = cryDiskF;
rptDoc.SetParameterValue("InvID",AVal);
rptDoc.Export();
rptDoc.Close();
//
Response.Clear();
Response.Buffer = true;
Response.AddHeader("Content-Type", "application/xls");
Response.AddHeader("Content-Disposition", "attachment;filename="+ Session.SessionID+".xls;");
fs = new FileStream(filePathNameXLS,FileMode.Open);
fileSize = fs.Length;
bBuffer = new byte[Int32.Parse(fileSize.ToString())];
fs.Read(bBuffer,0,Int32.Parse(fileSize.ToString()));
fs.Close(); Response.BinaryWrite(bBuffer);
Response.Flush();
Response.Close();
break;