![]() |
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
|
|||
|
|||
![]()
I need to create new appontment from template and I do not want to publish my
form to any folder. I can handle the NewInspector event for Instectors object (for example, the cell in Calendar grin is double-clicked). In the handling method, I do the following: 1. Take passed through parameter Inspector (Inspector1) and set AppointmentItem for it (AppItem1). 2. Create new AppiontmentIten in Calendar folder using CreateItemFromTemplate method (AppItem2). 3. Copy Start and End properties from AppItem1 to AppItem2. 4. Display AppItem2. How can I close Inspector1 and do not save AppItem1? |
Ads |
#2
|
|||
|
|||
![]()
Call the Close method:
myInspector.Close olDiscard You should use Inspector.Activate not Inspectors.NewInspector to process the new item. NewInspector may provide only a weak reference to the item. Why would you want to use a template, given that an unpublished form is not going to handle custom properties or code as a published form would? -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Fedor Kanukhin" wrote in message ... I need to create new appontment from template and I do not want to publish my form to any folder. I can handle the NewInspector event for Instectors object (for example, the cell in Calendar grin is double-clicked). In the handling method, I do the following: 1. Take passed through parameter Inspector (Inspector1) and set AppointmentItem for it (AppItem1). 2. Create new AppiontmentIten in Calendar folder using CreateItemFromTemplate method (AppItem2). 3. Copy Start and End properties from AppItem1 to AppItem2. 4. Display AppItem2. How can I close Inspector1 and do not save AppItem1? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Create Own Business Card Template | BillGatesFan | Outlook - Using Contacts | 1 | January 25th 08 05:32 PM |
How do I create an outlook contact template? | Blip | Outlook - Using Forms | 2 | August 22nd 06 07:41 PM |
How do I create a custom fax template? | [email protected] | Outlook - General Queries | 2 | May 8th 06 11:38 PM |
create simple template | Brad Zenner | Outlook - Using Forms | 0 | February 23rd 06 05:42 AM |
create simple template | [email protected] | Outlook - Using Forms | 0 | February 23rd 06 05:39 AM |