AyaNova service management & work order software
AyaNova Support Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Excluding band without Excluding data? Expand / Collapse
Author
Message
Posted 1/5/2008 9:20:02 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Today @ 9:55:31 AM
Posts: 85, Visits: 108
I have spent several hours creating a great work order that contains everything that I need and it works exactly as I need it to BUT (Always a but there ) ...

I need to exclude the group footers that total parts, travel and labour without excluding the data.  Currently the group footers total the line items and it works like a charm, I then have a grand total which also works perfectly.  Howver, when I set the group footer to not be visible, the grand total does not include the totals from the group.

My Current on before print script is:

private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
   //*************************
   //Don't print band if there is no data:

   object o=DetailReport4.GetCurrentColumnValue("ID");
                        if(o==null)
                            {
                              e.Cancel=true;
                              return;
                            }

                            System.Guid g=(System.Guid)o;
                            if(g==Guid.Empty)
    e.Cancel=true;//cancel this print event
   //**************************
}

Is there anyway to modify it so that it does not show on the report but the totals are still there for the grand total to work?

Thank you for any help that you can give

Post #3652
Posted 1/5/2008 10:07:16 AM
AyaNova Sales & Support

AyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & Support

Group: Administrators
Last Login: Today @ 10:45:49 AM
Posts: 1,689, Visits: 3,988
Hi

If you have totals in a reportfooter that come from groupfooters, those groupfooters must be visible.

If you do not want groupfooters to show, than you can not use groupfooters.

Instead the datafields themselves must each have scripts to keep a running total for display in the reportfooter.

For example, the individual Part Line Total datafield must have a script to maintain a running total for your Parts Line Total in your reportfooter. Same with Labor Line Total and Travel Line Total.

Do a search onthis forum for running total to bring up a number of report templates that use similar such as

http://forum.ayanova.com/Topic1961-103-1.aspx?Highlight=running+total

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #3653
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: AyaNova Sales & Support

Permissions Expand / Collapse

All times are GMT -8:00, Time now is 4:09pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.094. 16 queries. Compression Disabled.