Skip to content

Infragistics Community Forum / Cross Platform / Ultimate UI for Xamarin / How to write code such as WhilePrintingRecords!

How to write code such as WhilePrintingRecords!

New Discussion
Waqar
Waqar asked on Jan 30, 2012 3:09 PM

Hello Sir,

I am creating a report which I already have created using Crystal Reports or MS Access Reports. I want to place a formula field on page header which will be “total_header” and one field on page footer which will be “total_footer”.

I want to show brought forward total on the header in “total_header” field in the header and carried forward total in “total_footer” field on the footer.

I used the following code in crystal reports in a formula field:

WhilePrintingRecords;
NumberVar total;
total := total + <fieldToTotal>;

The field with above mentioned code will be in details section and following code in both fields “total_header” and “total_footer”:

WhilePrintingRecords;
NumberVar total;
total := total;

It works in crystal reports but here If someone can tell me how to write these codes, that will be helpful.

Thanks

Sign In to post a reply

Replies

  • 0
    [Infragistics] Elena
    [Infragistics] Elena answered on Jan 27, 2012 4:06 PM

    Hello logic2006,

     

    I have been looking into your questions and I can suggest you check our ExportProgress event which provides you the functionality to get the current processed elements:

    http://help.infragistics.com/Help/NetAdvantage/Reporting/2011.2/CLR4.0/html/InfragisticsSL4.Controls.Reports.v11.2~Infragistics.Controls.Reports.XamReportViewer~ExportProgress_EV.html

     

    Still looking into your post I am not quite sure that I get your requirements, so in case I have misunderstood you in any way, please do not hesitate to contact me, and would you please attach a screenshot that demonstrate the design you are trying to achieve.

     

    Thanks in advance. 

    • 0
      Waqar
      Waqar answered on Jan 28, 2012 2:31 AM

      Thanks for replying but Sorry but it is totally different answer. I need to printing running total on header and footer.

      • 0
        [Infragistics] Elena
        [Infragistics] Elena answered on Jan 30, 2012 3:09 PM

        Hello ,

         

        Excuse me for the misunderstanding. The Infragistics reporting provides the functionality to use parameters in your report as shown in the following link from our documentation, so you can use it in order to hold the values that you want to display:

        http://help.infragistics.com/NetAdvantage/reporting/2011.2/CLR4.0?page=How_to_Work_with_Parameters.html

         

        About the way you can use the report’s section in order to show the information you can have a look at the following link:

         

        http://help.infragistics.com/NetAdvantage/reporting/2011.2/CLR4.0?page=How_To_Using_the_Report_Sections.html

        http://help.infragistics.com/NetAdvantage/reporting/2011.2/CLR4.0?page=Report_Designer_Designer_Surface_Structure.html .

         

         

        Furthermore you can also check some custom approaches to use our reporting from our feature browser:

        http://samples.infragistics.com/reporting/RunSamples.aspx?cn=designing-reports#/designing-reports/expressions

         

        If this still doesn't suit your task, or if you need any further assistance on this matter, please do not hesitate to ask.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Waqar
Favorites
0
Replies
3
Created On
Jan 30, 2012
Last Post
14 years, 7 months ago

Suggested Discussions

Tags

Created by

Created on

Jan 30, 2012 3:09 PM

Last activity on

Feb 12, 2026 8:58 AM