How can generate RDLC report on two columns?

2019-04-12 11:41发布

问题:

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