具有多列的 RDLC 报告 [英] RDLC Reporting with multiple Columns

查看:39
本文介绍了具有多列的 RDLC 报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 VS2008 和 VS2013 是为了为我们的客户创建一些小型客户报告.然而,我为使这项工作所做的一切努力都无济于事,而且我看到的一半教程要么不再适用,要么对 VS2008、VS2010 或 VS2013 的应用有所不同.

I'm using VS2008 and VS2013 in order to create some small client reports for our customers. However, everything I try to do to make this work is getting me nowhere, and half the tutorials I see either don't apply anymore, or apply differently to either VS2008, VS2010, or VS2013.

我想要完成的事情在概念上似乎很容易.该页面将有 3 列,表格在各列中重复.该表有三列,一个客户编号,一个交货金额,然后是一个空白列.

What I'm trying to accomplish seems easy in concept. The page is to have 3 columns, with a table repeating through the columns. The table had three columns, a customer number, a delivery amount, and then a blank column.

然而,我尝试的一切:A) 导致重复数据.B) 创建一列继续到下一页而不重复它的标题.C) 只会导致代码错误.

However, everything I try either: A) Causes repeating data. B) Creates one column that continues onto the next pages without repeating it's header. C) Simply causes a code error.

我研究了很多东西,我看到一些非常接近(将表包装到 RDLC 中的多列),但是,我无法复制他们在我的版本中所做的事情,因为通常只是他们正在做的事情之一,我似乎没有可以访问.(在上面的链接中,尽我所能,我无法让组像他的图片显示的那样跨越两列)

I've looked into various things, and I've seen a few get extremely close (Wrap table to multi columns in RDLC), however, I'm unable to replicate what they're doing in my versions because usually just one of the things they're doing, I don't seem to have access to. (In the link above, try as I might, I can't get the group to span two columns like his picture showed)

是否需要下载额外的东西才能使其正常工作?

Is there something extra I need to download in order to get this working?

我们将不胜感激(或向其他 .net 报表设计者推荐).

Any help would be appreciated (or a recommendation to another .net report designer).

推荐答案

您可以设置报表的 ColumnsColumnSpacing 属性:

You can set Columns and ColumnSpacing properties of your report:

  1. 显示属性窗口
  2. 点击Report(页面外的灰色区域)
  3. 查找并设置Columns 属性
  1. display Property window
  2. click on Report (grey area outside your page)
  3. find and set Columns properties

在 VS2008 中,您必须单击 Report Body 以设置 Columns 属性.

In VS2008 you have to click on Report Body to set the Columns properties.

然后只需将您的 3 列 Tablix 放在 Column 1 中.

Then simply put your 3-columns Tablix in the Column 1.

此方法不会优化报告空间(如链接中的那个):它填充一列然后传递到下一列.

This method doesn't optimize report space (as the one in your link): it fills a column and then pass to the next.

请注意,要查看所需的输出,您需要预览/打印/导出报告;普通视图只显示一列.

Please note that to see the desired output you need to preview/print/export the report; normal view only display one column.

这篇关于具有多列的 RDLC 报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆