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



Not displaying based on data present? Expand / Collapse
Author
Message
Posted 1/5/2008 1:19:26 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 5/28/2008 10:15:00 PM
Posts: 97, Visits: 124
I have a Group header in my report that prints out the Schedulable User Notes from ...
reportDataSet1 - WorkorderHeader.LT_Client_Label_TechNotes

I would like to set it so that if there are no schedulable user notes then the Group Header will not print.  I thought the following might do it for a pre print script in the Group header:

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

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

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

BUT ... It prevents anything from printing even when there are notes.  Could you please provide the right sytax for me?

Post #3660
Posted 1/5/2008 3:30:26 PM
AyaNova Sales & Support

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

Group: Administrators
Last Login: 2 days ago @ 7:58:18 AM
Posts: 1,851, Visits: 4,300
Hi

As requested in this Report Template forum section, if you would a question about a custom report template, do always attach a zipped export of your report template so that I can see exactly what is occurring with your report template.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #3661
Posted 1/5/2008 8:16:33 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 5/28/2008 10:15:00 PM
Posts: 97, Visits: 124
I am not sure why you have to see the report as the question is straight forward?  I prefer not to submit the reports as it foes have my company specific details etc in it.  Is it not possible to simply answer the question?
Post #3662
Posted 1/9/2008 7:54:59 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 5/28/2008 10:15:00 PM
Posts: 97, Visits: 124
Does anyone else happen to know of the right syntax on this one for me?

Thanks kindly.

Post #3698
« 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 6:02am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.031. 13 queries. Compression Disabled.