/ Forums / Advansys Formativ / Creating Solutions with Formativ / Same code – different results / Reply To: Same code – different results
September 17, 2007 at 4:59 pm
#7873
We are unable to re-produce the behaviour you described above with the code below. No line break inserted between FullName and Title in HTML or Plain text view. The behaviour is the same in composing new message, reply or forwarded message.
We are using GroupWise 7.0.2 (06/04/2007). Which version of the GroupWise client you are using? If you are using the earlier version of the GroupWise client then you may need to try against latest version.
const FullName = "Bill Smith"
const Title = "Softwarer Engineer"
const CompanyName = "Novell"
const Street = "Pitt Street"
const City = "Sydney"
const State = "NSW"
const Zip = "2566"
const Phone = "9999999"
const FaxNum = "8888888"
const Email1 = "bill@domain.com"
const Website = "www.advansyscorp.com"
'-------------------------------------------------------------------------------
' Mainline processing
'-------------------------------------------------------------------------------
Sub Main(Client, GWEvent)
If (GWEvent = "GW#C#COMPOSE" or GWEvent = "GW#C#FORWARD") then
InsertSignature()
Call GroupWise.FocusSet(0, "")
Elseif (GWEvent = "GW#C#REPLY") then
InsertSignature()
Else
Call MsgBox("No GroupWise message was found for signature insertion.", 64, CAPTION)
End If
End Sub
' Insert Signature
sub InsertSignature()
Call GroupWise.FocusSet(10, "")
GroupWise.PosTextTop
GroupWise.TypeText(vbcrlf & FullName)
GroupWise.TypeText(vbcrlf & Title)
GroupWise.TypeText(vbcrlf & CompanyName)
GroupWise.TypeText(vbcrlf & Street)
GroupWise.TypeText(vbcrlf & City & ", " & State & " " & Zip)
GroupWise.TypeText(vbcrlf & "Phone: " & Phone)
GroupWise.TypeText(vbcrlf & "Fax: " & FaxNum)
GroupWise.TypeText(vbcrlf & "Email: " & LCase(Email1))
GroupWise.TypeText(vbcrlf & "Website: " & Website)
Groupwise.Enter()
GroupWise.PosTextTop
end sub
Regards,
Advansys Support