| With AyaNova 4, there is now a new feature that can automatically "suck" out the client's email address if attaching a detailed workroder report to an email, without having to copy it from the client entry screen. If you have a new installation of AyaNova 4, you will see this in the Sample Detailed Service Workorder with Grand Total report template, or if you have upgraded to AyaNova 4, you can edit your detailed workorder report templates to take advantage of this feature. To see how this was edited: 1. Open a detailed report template from a workorder in the report designer. For example, open a workorder, select Print, hold down the SHIFT key from your keyboard and select Sample Detailed Service Workorder with Grand Total whic hopens this report template in the report designer) 2. Click on the Detail band for the WorkorderHeader 
3. Expand the Scripts property for this band 
4. Open up the OnBeforePrint script (in this screenshot it already has the script entered - this is to show you where the script needs to be placed) 
5. The script as shown is private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { xtraReport1.ExportOptions.Email.RecipientAddress = System.Convert.ToString(DetailReport.GetCurrentColumnValue("LT_Client_Label_Email")); } 
6. Save the report template. 7. Now from the workorder entry screen, select Print this detailed report template. When the Print Preview opens, select on the Email menu option. IN our screenshots below, we selected the attachment to be a PDF 

8. Save the attachment as a file to your hard drive. You can name the attachment anything you want. 
9. Your default email program will open up, automatically entering the client's email address into the TO: field, automatically attaching the report template, and the Subject: will automatically have your computer login name. You can edit as needed now, as well as include your message to your client. 
Do note that this feature is available when Print Previewing for a single workorder from that workorder's entry screen.
- AyaNova Sales & Technical Support
- http://www.ayanova.com
|