Outlook 2003 version(11.6568.6568) SP2

G

Guest

Hi-

We are observing a issue with Printing of Custom Form.
Code works absolutely fine in Outlook 2000 but fails in Outlook 2003
version(11.6568.6568) SP2.

Chr(13) does not seem to work. When I print, chr(13) seems to be ignored and
everything just prints as one line.
Pl. see code below..


'''''''''''''''''''''
Function GetProp(sProp)
GetProp = Item.UserProperties.Find(sProp).Value
End Function
''''''''''''''''''''''''''''''''''''''''''''''''''''''
Sub SetProp(sProp,vValue)
Item.UserProperties.Find(sProp).Value = vValue
End Sub
'''''''''''''''''''''''''''''''''''''''''''''''''''''

'''Print function
Sub UpdatePrintField()

Dim iProp
Dim strType
Dim strSymbol
Dim sPrint
Dim NL
Dim TB
Dim TB2
Dim TB3
Dim TB4

TB = Chr(9)
TB2 = TB & TB
TB3 = TB & TB & TB
TB4 = TB & TB & TB & TB
NL = Chr(13)

'General Tab
sPrint = sPrint & Item.Subject & NL
sPrint = sPrint & "Status: " & GetProp("Exp Status") & NL & NL

sPrint = sPrint &
"--------------------------------General---------------------------------" &
NL
sPrint = sPrint & "Date Created: " & TB3 & GetProp("dtmDate") & NL

' Copy
SetProp "Details", sPrint


End Sub

UpdatePrintField() is called in Function Item_Open.
"Display" field is of type text and validation tab I have selected
"Include this field for Printing and Save As".


Any ideas, Please help!

Thanks in advance-
Som
 
S

Sue Mosher [MVP-Outlook]

I would normally use vbCrLf to insert a carriage return/linefeed, rather than just a carriage return. Don't know if that will affect your data in this scenario.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

Is the particular field's control set for multiline? I wouldn't expect that to make a difference, but you never know till you try it.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

Sorry Sue , I just tried this out. This too did not make a difference.
but same form works absolutely fine with outlook 2000.

Any ideas ?
 
S

Sue Mosher [MVP-Outlook]

Assuming that other code on the form is running, I'm out of ideas.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

Interesting no one has got this kind of issue ? It is very easy to replicate.

Anyways Thanks Sue.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top