Outlook View Control - Open a saved Form

D

Daniel Albisser

Hello everybody,

I have to implement a html-page that opens a saved Form in the Outlook.
I use the Outlook View Control to access Outlook, e.g.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>View Control</TITLE>
</HEAD>
<BODY>
<OBJECT id=ViewCtl classid=CLSID:0006F063-0000-0000-C000-000000000046></OBJECT>

<SCRIPT language=VBScript>
Sub Window_onLoad()
ViewCtl.NewForm
End Sub
</SCRIPT>
</BODY>

This sample code opens the choose form popup!

Is it possible to open the saved form immediately without the choose box?

Would be great if somebody has an idea about that!

Thanks and greetz,
Dan
 
S

Sue Mosher [MVP]

To create a new instance of a custom form programmatically, use the Add method on the target folder's Items collection. If it's a message form, you can use the Drafts folder as the target. If the target is a default folder, you can use the Namespace.GetDefaultFolder method to return it as a MAPIFolder object. Otherwise, you can use the code at http://www.slipstick.com/dev/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
D

Daniel Albisser

Hi Sue,

May be I redescribe my problem from the beginning for claryfing it.
May be there is another way to do that!

On our Outlook Server is a public form saved (includes textfields, textboxes,
checkboxes etc.) , that people can use to send formatted emails to other
people (intenal).

The people should be able to send such an email over a web portal.
E.g. we provide a html-page that looks like the form where the people can
fill in their information. At the end they send the form to somebody in the same
company (form installed) that should see the filled form with that information.

Is it possible to create emails (forms) outside of the Outlook, e.g. in a dynamic-webpage,
e.g. jsp, php etc. ?

Or is there just the way over ActiveX?
If yes, could you please send me some more details?

--
NOTE:
Remove "spam." from the Email-Address to send me direct emails!

To create a new instance of a custom form programmatically, use the Add method on the target
folder's Items collection. If it's a message form, you can use the Drafts folder as the target. If
the > target is a default folder, you can use the Namespace.GetDefaultFolder method to return it as
a MAPIFolder object. Otherwise, you can use the code at
http://www.slipstick.com/dev/code/getfolder.htm to walk the folder hierarchy and return the
MAPIFolder corresponding to a given path string.
 

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