I understand that Outlook has set items, i.e. Mail, Task, Calendar, Notes, etcetera. How can you create a custom Item that Outlook will recognize as the others? I know that when you add the Business Contact Manager it creates Items like "Opportunities"
我了解Outlook已设置项目,即邮件,任务,日历,便笺等。如何创建Outlook将识别为其他项目的自定义项?我知道当您添加Business Contact Manager时,它会创建“机会”之类的项目
Can you override an Item, or inherit an Item and alter/add properties and methods?
您可以覆盖Item,还是继承Item并更改/添加属性和方法?
examples:
olAppointmentItem 1 Represents an AppointmentItem
olContactItem 2 Represents a ContactItem
olDistributionListItem 7 Represents an DistListItem
olJournalItem 4 Represents a JournalItem
olMailItem 0 Represents a MailItem
olNoteItem 5 Represents a NoteItem
olPostItem 6 Represents a PostItem
olTaskItem 3 Represents a TaskItem
3 个解决方案
#1
You cannot create new "types"; but you can certainly re-use the existing types by adding your own properties.
你不能创建新的“类型”;但您可以通过添加自己的属性来重复使用现有类型。
That comment is not correct. you can certainly use custom forms, you just need to publish them first to a forms library, and make them accesible to users. generally they are based on the design of one of the default item types, and can also be associated with a folder as the default item type.
这个评论不正确。您当然可以使用自定义表单,只需将它们首先发布到表单库,然后使用户可以访问它们。通常它们基于默认项类型之一的设计,并且还可以与文件夹关联作为默认项类型。
Edit: (updating post as per comment request)
编辑:(根据评论请求更新帖子)
A.Create and publish a custom form - http://office.microsoft.com/en-au/outlook/HA012106101033.aspx
A.创建并发布自定义表单 - http://office.microsoft.com/en-au/outlook/HA012106101033.aspx
B. programmatically create an instance of the custom form.
B.以编程方式创建自定义表单的实例。
Outlook.Application olApp = new Outlook.Application();
//mapifolder for earlier versions (such as ol 2003)
Outlook.Folder contacts = olApp.Session.GetDefaultFolder(Outlook.olDefaultFolders.olFolderContacts);
//must start with IPM. & must be derived from a base item type, in this case contactItem.
Outlook.ContactItem itm = (Outlook.ContactItem)contacts.Items.Add(@"IPM.Contact.CustomMessageClass");
itm.Display(false);
#2
Outlook has the ability to create custom forms. You use the forms designer bultin to outlook, there is one built all versions of Outlook. You can launch a design session with the Tools | Forms | Design a Form command. Alternatively, open any Outlook item in Outlook 2003 or earlier and choose Tools | Forms | Design This Form.
Outlook可以创建自定义表单。你使用表单设计器bultin来展望,有一个内置所有版本的Outlook。您可以使用Tools |启动设计会话表格|设计一个Form命令。或者,在Outlook 2003或更早版本中打开任何Outlook项目,然后选择“工具”|表格|设计此表格。
When you design a form you start based on on of the exiting form such a appointment, task etc.. The closest thing to a blank form is the post form.
当你设计一个表格时,你可以根据退出表格开始这样的约会,任务等。最接近空白表格的是邮寄表格。
Forms can have VBScript code behind them to react to user actions -- validating data, synchronizing it with databases, creating new Outlook items, etc. To add code, once you're in form design mode, click the View Code command on the toolbar or ribbon.
表单后面可以有VBScript代码来响应用户操作 - 验证数据,与数据库同步,创建新的Outlook项目等。要添加代码,一旦处于表单设计模式,单击工具栏上的“查看代码”命令或丝带。
You can then publish you form into the Organization Forms library, so that everyone has access to them. They can also be published directly to a folder. Personal forms are published either to a folder or to your Personal Forms library.
然后,您可以将表单发布到组织表单库中,以便每个人都可以访问它们。它们也可以直接发布到文件夹。个人表单将发布到文件夹或个人表单库。
There is quite a lot of help documentation for this kind of thing in Outlook Help, also google will return loads of sites that show you how.
在Outlook帮助中有很多关于此类事情的帮助文档,谷歌也将返回大量的网站,向您展示如何。
#3
You cannot create new "types"; but you can certainly re-use the existing types by adding your own properties.
你不能创建新的“类型”;但您可以通过添加自己的属性来重复使用现有类型。
#1
You cannot create new "types"; but you can certainly re-use the existing types by adding your own properties.
你不能创建新的“类型”;但您可以通过添加自己的属性来重复使用现有类型。
That comment is not correct. you can certainly use custom forms, you just need to publish them first to a forms library, and make them accesible to users. generally they are based on the design of one of the default item types, and can also be associated with a folder as the default item type.
这个评论不正确。您当然可以使用自定义表单,只需将它们首先发布到表单库,然后使用户可以访问它们。通常它们基于默认项类型之一的设计,并且还可以与文件夹关联作为默认项类型。
Edit: (updating post as per comment request)
编辑:(根据评论请求更新帖子)
A.Create and publish a custom form - http://office.microsoft.com/en-au/outlook/HA012106101033.aspx
A.创建并发布自定义表单 - http://office.microsoft.com/en-au/outlook/HA012106101033.aspx
B. programmatically create an instance of the custom form.
B.以编程方式创建自定义表单的实例。
Outlook.Application olApp = new Outlook.Application();
//mapifolder for earlier versions (such as ol 2003)
Outlook.Folder contacts = olApp.Session.GetDefaultFolder(Outlook.olDefaultFolders.olFolderContacts);
//must start with IPM. & must be derived from a base item type, in this case contactItem.
Outlook.ContactItem itm = (Outlook.ContactItem)contacts.Items.Add(@"IPM.Contact.CustomMessageClass");
itm.Display(false);
#2
Outlook has the ability to create custom forms. You use the forms designer bultin to outlook, there is one built all versions of Outlook. You can launch a design session with the Tools | Forms | Design a Form command. Alternatively, open any Outlook item in Outlook 2003 or earlier and choose Tools | Forms | Design This Form.
Outlook可以创建自定义表单。你使用表单设计器bultin来展望,有一个内置所有版本的Outlook。您可以使用Tools |启动设计会话表格|设计一个Form命令。或者,在Outlook 2003或更早版本中打开任何Outlook项目,然后选择“工具”|表格|设计此表格。
When you design a form you start based on on of the exiting form such a appointment, task etc.. The closest thing to a blank form is the post form.
当你设计一个表格时,你可以根据退出表格开始这样的约会,任务等。最接近空白表格的是邮寄表格。
Forms can have VBScript code behind them to react to user actions -- validating data, synchronizing it with databases, creating new Outlook items, etc. To add code, once you're in form design mode, click the View Code command on the toolbar or ribbon.
表单后面可以有VBScript代码来响应用户操作 - 验证数据,与数据库同步,创建新的Outlook项目等。要添加代码,一旦处于表单设计模式,单击工具栏上的“查看代码”命令或丝带。
You can then publish you form into the Organization Forms library, so that everyone has access to them. They can also be published directly to a folder. Personal forms are published either to a folder or to your Personal Forms library.
然后,您可以将表单发布到组织表单库中,以便每个人都可以访问它们。它们也可以直接发布到文件夹。个人表单将发布到文件夹或个人表单库。
There is quite a lot of help documentation for this kind of thing in Outlook Help, also google will return loads of sites that show you how.
在Outlook帮助中有很多关于此类事情的帮助文档,谷歌也将返回大量的网站,向您展示如何。
#3
You cannot create new "types"; but you can certainly re-use the existing types by adding your own properties.
你不能创建新的“类型”;但您可以通过添加自己的属性来重复使用现有类型。