Export a .oft

M

mmark75

I am wanting to find a way to export the contents of my .oft file i've
created as a work order within outlook 2000 public folders, to a .txt
or .asp or .html or any other format that can be rendered via web based
mail. The avenue i was thinking of is to have an 'Export' button bar
on the .oft file that when clicked, will copy the contents of the .oft
work order to a format that will render in web mail. How can this be
done in this environment. Thank you
 
S

Sue Mosher [MVP-Outlook]

..oft files ordinarily don't have contents. They are custom form templates used to create data items, which contain the data entered in the form. Are you saying that you saved data as .oft files? Or that you created items with an .oft template and now want to export them?

Furthermore, code won't run on .oft templates.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
M

mmark75

Yes, i've got data that has been entered into the .oft file(the data
put into the template). And i'd like that data exported to one of the
formats mentioned before, in some manner. People fill out work order
information into the .oft's and those are placed within public folders.
So i guess the second scenerio you mentioned might be what we're
trying to do. Currently, the .oft's will query the Exchange Gal and
will populate the send to with different people via department chosen.
So i thought there may be a way to do this. Thank You
 
S

Sue Mosher [MVP-Outlook]

Since an .oft file does not run code (unless you've seriously compromised Outlook security), you will need to write some additional application to .oft file programmatically with the Application.CreateItemFromTemplate method and then access the properties of the resulting item. Once you have the item and its properties, you can do whatever you need with them.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
M

mmark75

Yes - thank you. Do you know of where i can look at some code samples
that use this method. Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top