A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2003 version(11.6568.6568) SP2



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 19th 06, 10:33 AM posted to microsoft.public.outlook.program_forms
S K
external usenet poster
 
Posts: 6
Default Outlook 2003 version(11.6568.6568) SP2

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  
Old July 19th 06, 12:55 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2003 version(11.6568.6568) SP2

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  
Old July 27th 06, 05:16 AM posted to microsoft.public.outlook.program_forms
S K
external usenet poster
 
Posts: 6
Default Outlook 2003 version(11.6568.6568) SP2

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  
Old July 27th 06, 12:18 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2003 version(11.6568.6568) SP2

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  
Old July 27th 06, 01:42 PM posted to microsoft.public.outlook.program_forms
S K
external usenet poster
 
Posts: 6
Default Outlook 2003 version(11.6568.6568) SP2

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  
Old July 27th 06, 01:51 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2003 version(11.6568.6568) SP2

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  
Old July 27th 06, 02:11 PM posted to microsoft.public.outlook.program_forms
S K
external usenet poster
 
Posts: 6
Default Outlook 2003 version(11.6568.6568) SP2

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 03:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.