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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , ,

Create appointment from template





 
 
Thread Tools Display Modes
  #1  
Old May 28th 08, 01:17 AM posted to microsoft.public.outlook.program_addins
Fedor Kanukhin[_2_]
external usenet poster
 
Posts: 2
Default Create appointment from template

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  
Old May 28th 08, 02:36 AM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,561
Default Create appointment from template

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
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
Create Own Business Card Template BillGatesFan Outlook - Using Contacts 1 January 25th 08 04:32 PM
How do I create an outlook contact template? Blip Outlook - Using Forms 2 August 22nd 06 06:41 PM
How do I create a custom fax template? taraflynn@gmail.com Outlook - General Queries 2 May 8th 06 10:38 PM
create simple template Brad Zenner Outlook - Using Forms 0 February 23rd 06 04:42 AM
create simple template bzenner@gmail.com Outlook - Using Forms 0 February 23rd 06 04:39 AM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Cell Phones - Online Advertising - Free Advertising - Personal Injury Lawyer Los Angeles - Credit