Sort,Group at runtime

Any way to accomplish sort,group at runtime?

Comments

  • edited 6:14AM
    Hello,

    Do you mean do this in code? Look at Demos\C#\ReportFromCode demo.
  • edited 6:14AM
    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 6:14AM
    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

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.