CodeSmith Community
Your Code. Your Way. Faster!

Using netTiers as DataSource for RDLC Report.

Latest post 05-11-2007 7:06 AM by smallinov. 2 replies.
  • 05-08-2007 9:51 AM

    • akaclacey
    • Not Ranked
    • Joined on 05-08-2007
    • Posts 2
    • Points 40

    Using netTiers as DataSource for RDLC Report.

    First, I love netTiers. I started using it about 2 weeks ago and absolutely love it! Thank you very much.
    How can I use a TList<> as a datasource for an RDLC report?  I'm guessing I need to make an XSD file with the schema?
    I know how to add it as a datasource at runtime but I was wondering how to use ?something? for design time.

    Thank you!

    Filed under: ,
    • Post Points: 5
  • 05-08-2007 2:31 PM In reply to

    • akaclacey
    • Not Ranked
    • Joined on 05-08-2007
    • Posts 2
    • Points 40

    Re: Using netTiers as DataSource for RDLC Report.

    OK, I figured it out... (Please let me know though if it's not the best way Big Smile)

    I did this in code:

    InventoryService inventoryService = new InventoryService();
    TList inventory = inventoryService.GetAll();
    DataSet ds = inventory.ToDataSet(false);
    ds.WriteXmlSchema("c:\\inventory.xsd");

    (Is there an easier way to produce the xsd?)

    Then I copied the xsd to my App_Code directory and I can now design my report.


    Thanks, Tony
    • Post Points: 35
  • 05-11-2007 7:06 AM In reply to

    Re: Using netTiers as DataSource for RDLC Report.

    Once you created that schema file did you just use code behind to load in a TList as your datasource for your report?

    Thanks,
    Ryan

    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems