toggle menu
FastReport Forum
FastReport Forum
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Activity
Sign In
·
Register
×
Home
›
Fast Reports Products
›
FastReport .NET
Sort,Group at runtime
william32
July 2012
edited 11:57AM
in
FastReport .NET
Any way to accomplish sort,group at runtime?
Comments
AlexTZ
July 2012
edited 11:57AM
Hello,
Do you mean do this in code? Look at Demos\C#\ReportFromCode demo.
william32
July 2012
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
AlexTZ
July 2012
edited 11:57AM
Here is the code:
report1.Load("C:\\test.frx");
(report1.FindObject("Data1") as DataBand).Sort.Add(new Sort("[Product.Cost]"));
william32
July 2012
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
Paragraph
H2
Toggle Heading Menu
List Unordered
Toggle Heading Menu
Quote
Toggle Heading Menu
Paragraph
Paragraph
H2
Heading 2
H3
Heading 3
H4
Heading 4
H5
Heading 5
List Unordered
Bulleted List
List Ordered
Ordered List
Indent
Indent
Outdent
Outdent
Quote
Quote
Paragraph Code Block
Code Block
Spoiler
Spoiler
Bold
Italic
Strikethrough
Paragraph Code Block
Link
Close
Emoji
Embed
Home
•
FastReport .NET
Comment As ...
Comments
Do you mean do this in code? Look at Demos\C#\ReportFromCode demo.
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
report1.Load("C:\\test.frx");
(report1.FindObject("Data1") as DataBand).Sort.Add(new Sort("[Product.Cost]"));
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