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



Indicate a carriage return with a combined... Expand / Collapse
Author
Message
Posted 8/24/2009 10:03:25 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: 3/17/2010 7:34:22 AM
Posts: 2,190, Visits: 5,029
An AyaNova user has contacted us with the following information they would like posted on the forum to share with other AyaNova users on how to have a carriage return in a control field so that the first field is displayed above any other fields such as if you want the Address line to display on the first line, and then the city and state and postal on a second line all with one script:

(the script example below is based on a control field named label26, and the datafields are located in a DetailReport band:

private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
label26.Text = string.Format("{0}\r{1},  {2}  {3}", DetailReport.GetCurrentColumnValue("LT_Address_Label_DeliveryAddress"), DetailReport.GetCurrentColumnValue("LT_Address_Label_City"), DetailReport.GetCurrentColumnValue("LT_Address_Label_StateProv"), DetailReport.GetCurrentColumnValue("LT_Address_Label_Postal"));
}



AyaNova Sales & Technical Support
http://www.ayanova.com
Post #4769
« 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 12:24am

Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.031. 7 queries. Compression Disabled.