Skip to Content
author's profile photo Former Member
Former Member

Help! Dynamic Top N for Cross Tab group sort Epert

I have using Cross Top in my report. I want pass the Top N from my VB.Net code to the Top N. I have set the formula _TopN in the report and assign it in the Cross Tab Group sort expert. But the number pass from my code to the formula not work. I pass in 1 to the formula _TopN but it keep show me 10 record which default set in the report.

Any one have any idea or work around.

Below is the code how I pass the number to the formula

rpt.DataDefinition.FormulaFields("_TopN").Text = CInt(sTopN)

Please Help!

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 09, 2011 at 08:19 AM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.