Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / July 2006

Tip: Looking for answers? Try searching our database.

Outlook 2003 version(11.6568.6568) SP2

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
S K - 19 Jul 2006 10:33 GMT
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
Sue Mosher [MVP-Outlook] - 19 Jul 2006 12:55 GMT
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.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> Hi-
>
[quoted text clipped - 57 lines]
> Thanks in advance-
> Som
S K - 27 Jul 2006 05:16 GMT
Sorry I tried this. It does not work. Any more ideas?

> 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.
>
[quoted text clipped - 59 lines]
> > Thanks in advance-
> > Som
Sue Mosher [MVP-Outlook] - 27 Jul 2006 12:18 GMT
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.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> Sorry I tried this. It does not work. Any more ideas?
>
[quoted text clipped - 61 lines]
>> > Thanks in advance-
>> > Som
S K - 27 Jul 2006 13:42 GMT
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 ?

> 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.
>
[quoted text clipped - 63 lines]
> >> > Thanks in advance-
> >> > Som
Sue Mosher [MVP-Outlook] - 27 Jul 2006 13:51 GMT
Assuming that other code on the form is running, I'm out of ideas.
Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> Sorry Sue , I just tried this out. This too did not make a difference.
> but same form works absolutely fine with outlook 2000.
[quoted text clipped - 68 lines]
>> >> > Thanks in advance-
>> >> > Som
S K - 27 Jul 2006 14:11 GMT
Interesting no one has got this kind of issue ? It is very easy to replicate.

Anyways Thanks Sue.

> Assuming that other code on the form is running, I'm out of ideas.
> > Sorry Sue , I just tried this out. This too did not make a difference.
[quoted text clipped - 69 lines]
> >> >> > Thanks in advance-
> >> >> > Som
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.