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



OnBeforePrint - Question ... Expand / Collapse
Author
Message
Posted 1/28/2007 10:49:49 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 7:45:08 AM
Posts: 93, Visits: 116
In my report I have the following code for OnBeforePrint ...

private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
xrLabel8.Text = string.Format("{0} ({1}) {2}",  ("Technician's"), DetailReport.GetCurrentColumnValue("LT_WorkorderItemLabor_Label_UserID"), ("Service Notes"));
}

It displays fine but the technician's name is not coming through?  Can you tell me what I might be missing?

Post #2672
Posted 1/29/2007 8:03:26 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 @ 8:27:06 PM
Posts: 1,702, Visits: 4,008
Hi

I'm not sure without seeing it in context.

Do always attach a copy of the report template you are experiencing an issue with or have a question about, and always identify the exact field and its band. This way I am not guessing where you may have placed a field, or what is occurring, and able to see from the details you provide exactly what is occurring.

Do attach a copy of the report template, identify the field that script is tied to and what band it is in.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #2675
Posted 1/29/2007 9:11:35 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 7:45:08 AM
Posts: 93, Visits: 116
Ont he attached template - It is on the "Detail5" band - There is a text box named Technician.  In that field there is a OnBeforePrint script.

  Post Attachments 
Completed Work Order.zip (4 views, 36.75 KB)
Post #2681
Posted 1/30/2007 8:37:44 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 @ 8:27:06 PM
Posts: 1,702, Visits: 4,008
Hi again

Thanks - I will download and take a look and get back to you.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #2684
Posted 1/30/2007 11:30:10 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 @ 8:27:06 PM
Posts: 1,702, Visits: 4,008
Hi again

The reason why your script was not working was that you had identified the band as DetailReport, whereas in your report template the band where the Labor fields are in the band called DetailReport3.

If you edit your script to use DetailReport3 instead, then the user name will display.

Do that and let me know that now works.



AyaNova Sales & Technical Support
http://www.ayanova.com
Post #2687
Posted 1/30/2007 1:32:10 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 7:45:08 AM
Posts: 93, Visits: 116
Just when I thought I was getting good at this ... I miss something so obvious   Thanks for the help - Worked like a charm.
Post #2688
Posted 1/30/2007 1:36:35 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: Today @ 8:27:06 PM
Posts: 1,702, Visits: 4,008
Hi again

I liked your use of the combination string  - I'm sure other AyaNova users will see how you used it here and will now also use it in their custom report templates.

Glad I could help.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #2689
« 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 9:14pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 11 queries. Compression Disabled.