![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Ads |
#2
|
|||
|
|||
![]()
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 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "S K" wrote in message ... 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 |
#3
|
|||
|
|||
![]()
Sorry I tried this. It does not work. Any more ideas?
"Sue Mosher [MVP-Outlook]" wrote: 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 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "S K" wrote in message ... 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 |
#4
|
|||
|
|||
![]()
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 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "S K" wrote in message ... Sorry I tried this. It does not work. Any more ideas? "Sue Mosher [MVP-Outlook]" wrote: 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. "S K" wrote in message ... 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 |
#5
|
|||
|
|||
![]()
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 ? "Sue Mosher [MVP-Outlook]" wrote: 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 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "S K" wrote in message ... Sorry I tried this. It does not work. Any more ideas? "Sue Mosher [MVP-Outlook]" wrote: 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. "S K" wrote in message ... 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 |
#6
|
|||
|
|||
![]()
Assuming that other code on the form is running, I'm out of ideas.
-- 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 "S K" wrote in message news ![]() 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 ? "Sue Mosher [MVP-Outlook]" wrote: 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 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "S K" wrote in message ... Sorry I tried this. It does not work. Any more ideas? "Sue Mosher [MVP-Outlook]" wrote: 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. "S K" wrote in message ... 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 |
#7
|
|||
|
|||
![]()
Interesting no one has got this kind of issue ? It is very easy to replicate.
Anyways Thanks Sue. "Sue Mosher [MVP-Outlook]" wrote: Assuming that other code on the form is running, I'm out of ideas. -- 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 "S K" wrote in message news ![]() 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 ? "Sue Mosher [MVP-Outlook]" wrote: 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 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "S K" wrote in message ... Sorry I tried this. It does not work. Any more ideas? "Sue Mosher [MVP-Outlook]" wrote: 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. "S K" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2003 and Echange 2003 SP2 | ldo | Outlook - Using Contacts | 1 | June 24th 06 01:55 PM |
Voting button dissappear in Outlook 2003 (version 11.8002.6568) | semut | Outlook - General Queries | 0 | June 8th 06 12:00 PM |
Outlook 2003 (SP2) security | DustWolf | Outlook - General Queries | 3 | June 5th 06 03:41 PM |
Outlook 2003 SP2 (7 Day view) | Grahamjk | Outlook - Calandaring | 0 | April 14th 06 10:07 PM |
Trying to install Outlook 2003 after using trial version Office 2003 | Sherry C | Outlook - General Queries | 5 | February 4th 06 11:54 PM |