The information in this article applies to:
SUMMARY
This article describes known limitations you may encounter when creating
custom forms and programming solutions with Microsoft Outlook 97. Issues
covered include limitations of the object model and other limitations
related to the architectural design of Outlook.
MORE INFORMATION
The Outlook object model focuses on folders and the Outlook items in
folders, not the program itself. This means that while you can manipulate
forms and folders, many of the commands or settings that are available
through the user interface are not available when programming.
http://www.microsoft.com/msdnNOTE: Because the Microsoft Web site is constantly updated, the site address may change without notice. If this occurs, link to the Microsoft home page at the following address: http://www.microsoft.com/ Changing Option SettingsThere is no way to programmatically change any of the program-level settings in Outlook, since these are not exposed by the object model. Examples are any of the settings in the Tools Options dialog box. However, if you are initially deploying Outlook in a corporate environment, you may be able to change these setting during Setup using .PRF modifications.For more information on setting up custom Outlook profiles, please see the following article in the Microsoft Knowledge Base: Q166778 OL97: Contents of the Profile.doc Readme File Modifying Folder PropertiesOutlook's object model does not expose folder properties, such as the default form to use for the folder, synchronization settings, or AutoArchive settingsSetting ViewsThere is no way to programmatically set or configure views, which includes all of the features listed under the View menu. These options are not exposed by the Outlook object model.Modifying the Outlook BarThere is no way to programmatically add folders or items to the Outlook Bar. All changes must be made through the user interface.Programming Rules for Incoming MailBecause all VBScript code is stored within individual Outlook items (such as messages or contacts), there is no simple way to execute code (fire an event) when mail enters the Inbox. The Inbox Assistant and Rules Wizard do not provide this functionality.To work around this limitation, set up a rule using the Inbox Assistant or Rules Wizard to forward all relevant messages to an "unprocessed" folder. Create a relatively simple Microsoft Visual Basic program that automates Outlook at regular intervals; the application would batch-process the items in the folder and then move or delete them as appropriate. Posting a File to a FolderThere is no way to post a file (as opposed to an Outlook item, such as a contact, appointment, task, and so on) to a folder using VBScript or the Outlook object model.Microsoft Word 97 and Microsoft Excel 97 do support a Post method if you want to post a Word document or Microsoft Excel workbook, but there is no direct way to specify a folder from within those programs. The Post method in these programs will display a dialog box prompting the user for a folder. Using Office Forms (Office Document Items)If you are using a Word Office form, Word will not execute any document event procedures, such as Document_Open. This is a design limitation of Word and is not specific to Office forms. Word does not support document event procedures when the Word object is embedded within a container application, form, or control.Changing the Mouse Pointer to an HourglassYou cannot control the appearance of the mouse pointer from VBScript. If you are writing VBScript code that takes some time to process, you cannot force Outlook to display an hourglass pointer if Outlook does not do it automatically.Storing RTF Information in Message ControlsEach Outlook item can only have one message (or notes) control to store Rich Text Format (RTF) information, including attachments. It is possible to add more than one control per form, but the controls will all be bound to the same field, so they will display the same information.Dragging Outlook Items to an OLE Container ControlYou can use an OLE container control on a Visual Basic form to hold objects that are dragged onto it. When Outlook items are dragged onto these controls, Outlook exposes only a few fields, and there is no way to change which fields are exposed.Simulating Contact Form FunctionalityYou cannot modify any of the default Contact form pages. If you create a custom form page, you cannot (or cannot fully) recreate the following default functionality:
Article-ID: Q173589 OL97: How to Create a Categories Button on a Custom Form Page Cut and Paste FunctionalityOutlook's object model does not support using the Clipboard in any way.REFERENCESFor more information about creating solutions with Microsoft Outlook 97, please see the following articles in the Microsoft Knowledge Base: Q166368 OL97: How to Get Help Programming with Outlook Q170783 OL97: Q&A: Questions about Customizing or Programming Outlook Additional query words: OutSol OutSol97 drag drop drag-and-drop simulate
Keywords : kbprg FmsProb ScriptHowTo kbprb |
Last Reviewed: November 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |