locked
How to generate a PDF report in RDLC RRS feed

  • Question

  • User1279400534 posted

    Am working on Visual Studio 2010. I tried to generate an RDLC report in PDF format and it worked fine. But I got stucked with the format in which data need to be displayed.

    PDF Report should be generated in a format specified below:

    There will be many division headings. For each division heading there will be different set of subgroups. The subgroups displayed will differ based on conditions. Under each subgroup there will be a set of employee details(with column fields name, designation, phone number, email id etc.)

    Can anyone help me to identify a solution to display the data in RDLC report in the format specified above.

     What I tried is like this..(Class A and Class B has some properites in it)

    public class A

    {

    ....

    }

    public class B

    {

    .....

    }

    public class C

    {

    private List<A> _a;

    private List<B> _b;

    public C()

    {

    _a = new List<A>();

    _a.Add(new A("qw", "asd"));

    _b = new List<B>();

    _b.Add(new B("asa", "yty"));

    }

    public List<A> GetA()

    {

    return _a;

    }

    public List<B> GetB()

    {

    return _b;

    }

     

    For example, I have 2 business and 3 sub-business like

    Business1 -> Sub-Buisiness1, Sub-Business2

    Business2 -> Sub-Buisiness1, Sub-Business2, Sub-Buisiness3.  I need to display data in heirarchial model like

    Business1

                Sub-Buisiness1

                Sub-Business2

    Business2

                Sub-Buisiness1

                Sub-Business2

                Sub-Buisiness3

    how I will create this kind of implementaion using rdlc?  Could any one help me into solve this issue?

    Tuesday, January 17, 2012 1:27 AM

Answers