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

createItemFromTemplate and VCF files



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 9th 06, 04:20 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 1
Default createItemFromTemplate and VCF files

Hi there,

Does anybody know if there's a way to leverage the
createItemFromTemplate (or similar) function to create a contact item
in ol2003 using either redemption or outlook apis?

I'm using it to parse large numbers of emails - and their attachments -
and the createItemFromTemplate(filename) works fine for .msg and .eml
files but not .vcf files. When I use it against a vcf, I get the
following error thrown:

Run-time exception thrown : System.Runtime.InteropServices.COMException
- Can't open file: c:\crap\203\0011.vcf. The file may not exist, you
may not have permission to open it, or it may be open in another
program. Right-click the folder that contains the file, and then click
Properties to check your permissions for the folder.

Opening the file by double-clicking it works fine. All I'm interested
in is reading it in, then extracting the information into a legible
format, then deleting it.

Thanks in advance
Dave

Ads
  #2  
Old February 9th 06, 04:27 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default createItemFromTemplate and VCF files

CreateItemFromTemplate works only with .oft and .msg files. You need to use a different approach with .vcf files, either parsing their text using the vCard specification (hard) or opening them with a shell Execute command and using the resulting Inspector (easy - see http://www.outlookcode.com/codedetail.aspx?id=212
for a code sample)

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


wrote in message ups.com...
Hi there,

Does anybody know if there's a way to leverage the
createItemFromTemplate (or similar) function to create a contact item
in ol2003 using either redemption or outlook apis?

I'm using it to parse large numbers of emails - and their attachments -
and the createItemFromTemplate(filename) works fine for .msg and .eml
files but not .vcf files. When I use it against a vcf, I get the
following error thrown:

Run-time exception thrown : System.Runtime.InteropServices.COMException
- Can't open file: c:\crap\203\0011.vcf. The file may not exist, you
may not have permission to open it, or it may be open in another
program. Right-click the folder that contains the file, and then click
Properties to check your permissions for the folder.

Opening the file by double-clicking it works fine. All I'm interested
in is reading it in, then extracting the information into a legible
format, then deleting it.

Thanks in advance
Dave

 




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
how to import a .vcf file into outlook programatically Darryn Lavery Outlook - Using Forms 0 March 3rd 06 04:09 PM
.VCF cards and Outlook Mac Outlook - Using Contacts 0 January 26th 06 11:32 PM
vcf file attaches itself to email Yappy Box Outlook - Using Contacts 1 January 20th 06 05:25 AM
Problems in Outlook 2003 SP2 - CreateItemFromTemplate Sledge Hammer Outlook - Using Forms 0 January 12th 06 11:01 AM


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


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.