czlt
发表于 2014-8-27 16:45:00
回复 10楼czlt的帖子
你好,图片中的4个选项想要一开始就默认为全选,然后再根据自己选择再进行查看显示区域和隐藏不显示区域,谢谢!
iceman
发表于 2014-8-27 18:54:00
回复 11楼czlt的帖子
问题已经查收,明天反馈给你。谢谢
iceman
发表于 2014-8-28 18:49:00
回复 10楼czlt的帖子
10# 问题我通过附件的 Demo 没有重现,请把你的重现问题 Demo 上传我们调查下。
截图:
iceman
发表于 2014-8-29 14:48:00
回复 11楼czlt的帖子
参数默认值,可以通过如图方式设置:
czlt
发表于 2014-8-29 16:41:00
你好,谢谢解答,10楼的问题已经解决,9楼的问题还在查看中。另外想咨询一下,如果报表数据太多,拉到下边后,表头就看不到了,能否做成类似excel的冻结效果。谢谢!
iceman
发表于 2014-8-29 17:59:00
回复 15楼czlt的帖子
你好,可以考虑把表头发在 PageHeader 中,普通Table无法实现这个功能。
czlt
发表于 2014-9-6 14:34:00
你好,导出问题,多几个参数又到不出数据了,只能导出表头,代码如下
protected void btnExcel_Click(object sender, EventArgs e)
{
// 加载报表
LoadReport(txtCustName.Text, txtContractid.Text, txtDept.Text, txtStartTime.Text, txtEndTime.Text);
string CompanyCD = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).CompanyCD;//获取公司的名称
GrapeCity.ActiveReports.PageReport report1 = new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(Server.MapPath("JtSalseDetail.rdlx")));
report1.Report.ReportParameters.DefaultValue.Values.Clear();
report1.Report.ReportParameters.DefaultValue.Values.Add(txtCustName.Text);
report1.Report.ReportParameters.DefaultValue.Values.Clear();
report1.Report.ReportParameters.DefaultValue.Values.Add(txtContractid.Text);
report1.Report.ReportParameters.DefaultValue.Values.Clear();
report1.Report.ReportParameters.DefaultValue.Values.Add(txtDept.Text);
report1.Report.ReportParameters.DefaultValue.Values.Clear();
report1.Report.ReportParameters.DefaultValue.Values.Add(txtStartTime.Text);
report1.Report.ReportParameters.DefaultValue.Values.Clear();
report1.Report.ReportParameters.DefaultValue.Values.Add(txtEndTime.Text);
report1.Report.ReportParameters.DefaultValue.Values.Clear();
report1.Report.ReportParameters.DefaultValue.Values.Add(CompanyCD);
report1.Report.ReportParameters.DefaultValue.Values.Clear();
report1.Report.ReportParameters.DefaultValue.Values.Add("table1");
report1.Report.ReportParameters.DefaultValue.Values.Add("table2");
report1.Report.ReportParameters.DefaultValue.Values.Add("table3");
report1.Report.ReportParameters.DefaultValue.Values.Add("table4");
// 导出
GrapeCity.ActiveReports.Document.PageDocument _reportRuntime = new GrapeCity.ActiveReports.Document.PageDocument(report1);
GrapeCity.ActiveReports.Export.Excel.Page.ExcelTransformationDevice _renderingExtension = new GrapeCity.ActiveReports.Export.Excel.Page.ExcelTransformationDevice();
GrapeCity.ActiveReports.Rendering.IO.MemoryStreamProvider _provider = new GrapeCity.ActiveReports.Rendering.IO.MemoryStreamProvider();
_reportRuntime.Render(_renderingExtension, _provider);
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("content-disposition", "inline;filename=MyExport.xls");
System.IO.MemoryStream ms = new System.IO.MemoryStream();
_provider.GetPrimaryStream().OpenStream().CopyTo(ms);
Response.BinaryWrite(ms.ToArray());
Response.End();
// 导出
}
iceman
发表于 2014-9-9 15:33:00
回复 17楼czlt的帖子
能否请你把报表模板发上来查看,我这边再结合这个代码看能否重现问题。
另外,请在导出之前尝试执行 report1.Run() 方法。
czlt
发表于 2014-9-10 15:54:00
你好,这是报表的代码。问题:无法导出检索后的数据,想要做到页面显示内容=导出内容。
iceman
发表于 2014-9-10 19:24:00
回复 19楼czlt的帖子
感谢反馈,问题已经查收,需要进一步调查,有结果反馈给你。