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?