Sort,Group at runtime

edited 11:57AM in FastReport .NET
Any way to accomplish sort,group at runtime?

Comments

  • edited 11:57AM
    Hello,

    Do you mean do this in code? Look at Demos\C#\ReportFromCode demo.
  • edited 11:57AM
    i saw the code from this example.

    I am looking for something like

    report1.RegisterData(context.products, "Products");
    report1.Load("C:\\test.frx");
    report1.Pages[0].detailband.Sort("[Product.Cost]")'
    report1.Design();

    Basically, is there a way to access the bands via runtime from report1
  • edited 11:57AM
    Here is the code:

    report1.Load("C:\\test.frx");
    (report1.FindObject("Data1") as DataBand).Sort.Add(new Sort("[Product.Cost]"));
  • edited July 2012
    the code you showed works like a charm!

    Can you access the report's code via runtime? I want to implement a convert for the fr3.
    Is the source code available for fr3tofrx.exe so I can batch process reports?

    EDIT: I found how to reach the report's code via runtime -> report1.ScriptText

Leave a Comment