Design table with two datasets!

edited 10:36AM in FastReport .NET
Dear Sir:

We want to design report like Attachments,
but cloumns and row are two different datasets,
how can to this ?


Comments

  • edited 10:36AM
    Hello,

    1) use Matrix object:
    http://fast-report.com/documentation/UserM...trixreports.htm
    also look at the "Matrix" category in Demo.exe

    2) use Table object in its dynamic mode. You can read about it here:
    http://fast-report.com/documentation/UserM...objectprint.htm
    http://fast-report.com/documentation/UserM...ectexamples.htm
    Some examples can be found in the "Table" category in Demo.exe.
  • edited July 2010
    Dear Sir:

    I still can't work,
    it will shutdown the program,
    the follow code is my desgin report,
    what's wrong with it?

    private void Table4_ManualBuild(object sender, EventArgs e)
    {
    DataSourceBase rowData = Report.GetDataSource("Table2");
    rowData.Init();
    DataSourceBase colData = Report.GetDataSource("Table3");
    colData.Init();
    while (colData.HasMoreRows)
    {
    Table4.PrintColumn(0);
    Table4.PrintRows();
    colData.Next();
    }

    while (rowData.HasMoreRows)
    {
    Table4.PrintRow(0);
    Table4.PrintColumns();
    rowData.Next();
    }

    }
  • edited 10:36AM
    Dear Sir:

    The codes can't be run in FastReport .NET,
    So, how can we do for this repoert?
  • edited 10:36AM
    Dear Sir:

    i had wait for a week,
    this report is too hard to finish?

    thank you.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.