How can generate RDLC report on two columns?

≯℡__Kan透↙ 提交于 2019-12-09 19:49:43

问题


I'm using Visual Studio 2010. I must generate a REPORT like that:

 _________________________________
| NAME SURNAME   | NAME SURNAME   |
| ADDRESS        | ADDRESS        |
| NUMBER         | NUMBER         |
|                |                |
| NAME SURNAME   | NAME SURNAME   |
| ADDRESS        | ADDRESS        |
| NUMBER         | NUMBER         |

But the result now is like that:

 _________________________________
| NAME SURNAME   |                |
| ADDRESS        |                |
| NUMBER         |                |
|                |                |
| NAME SURNAME   |                |
| ADDRESS        |                |
| NUMBER         |                |
|                |                |
| NAME SURNAME   |                |
| ADDRESS        |                |
| NUMBER         |                |
|                |                |
| NAME SURNAME   |                |
| ADDRESS        |                |
| NUMBER         |                |

I've associated to my report a DataSource (one Business Object) like that:

public class User
{
   public string Name {get;set;}
   public string Surname {get;set;}
   etc..
}

I've tried with Table, Lists and Matrix but I have had always the second result.

How can I fix that?

Thanks for your support.


回答1:


Ciao,

you have to set Columns and ColumnSpacing properties of your report:

  1. display Property window
  2. click on Report (grey area outside your page)
  3. find and set Columns property



回答2:


I never done this kind of report but think you are after newsletter-Style report. you can find more information here MSDN and example solution



来源:https://stackoverflow.com/questions/28343587/how-can-generate-rdlc-report-on-two-columns

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!