Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Outlook 2007 Programming ISBN: 978-0-470-04994-5
This is the forum to discuss the Wrox book Professional Outlook 2007 Programming by Ken Slovak; ISBN: 9780470049945
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Outlook 2007 Programming ISBN: 978-0-470-04994-5 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 15th, 2007, 04:07 PM
Authorized User
Points: 457, Level: 7
Points: 457, Level: 7 Points: 457, Level: 7 Points: 457, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: Burbank, CA, USA.
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Arsi
Default Opening a saved Outlook customized form

Hi again,

After putting in all the code I needed, I published my form. The way our organization works with forms, is that the form is emailed as an attachment to a user. The user would typically double-click on the icon to open the form and fill it out. My form does not allow the user to double-click on the icon to open it. When the user double-clicks on the file, and clicks open, the following message is displayed:

"Outlook has blocked access to this form template file. If you know and trust the person who created the form, on the File menu, point to New, click Choose Form, and then in the Look In list, click User Templates in File System".

At the dialog box, if the user clicks "Ok", a blank email message opens with the proper subject line and Send To: email address pertaining to the form.

What do I need to do to make the "double-clicking" of the icon for the form work for the user?

Also, I've tried saving the emailed file to a local drive then selecting it from Tools-->Choose Form, but it doesn't look like the code for the form executes when that's done.

What can I do?

Thanks!

Arsi

*******(*)*******
__________________
*******(*)*******
Reply With Quote
  #2 (permalink)  
Old November 15th, 2007, 04:46 PM
Wrox Author
 
Join Date: Sep 2007
Location: Winter Park, Florida, USA.
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Starting with Outlook 2003 SP3 I believe it was and continuing with Outlook 2007 no code will run from an unpublished form. No code also runs from one-offed forms. You also can no longer just double-click to open an OFT file and expect the code to run either.

There's no way around that. Each user must have the form published in their Personal Forms Library or the form must be published in the Organizational Forms Library if your organization has one of those on the Exchange server.

To open an OFT file (that's the format that has to be used) you must select Tools, Forms, Design a Form, select User Templates in the File System, open the OFT file and publish it. Or something like a COM addin or script can publish the form using code instead of having the user do that. That's what I usually do, write code in a COM addin to publish any required OFT files.

Outlookcode.com has a good write-up of the security on unpublished forms and how to publish a form from either the UI or by using code.


Ken Slovak
Reply With Quote
  #3 (permalink)  
Old November 15th, 2007, 04:56 PM
Authorized User
Points: 457, Level: 7
Points: 457, Level: 7 Points: 457, Level: 7 Points: 457, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: Burbank, CA, USA.
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Arsi
Default

Hi Ken,

Thank you very much!

Arsi

*******(*)*******
Reply With Quote
  #4 (permalink)  
Old January 11th, 2012, 03:47 PM
bpl bpl is offline
Authorized User
Points: 86, Level: 1
Points: 86, Level: 1 Points: 86, Level: 1 Points: 86, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2009
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default Opening a saved Outlook customized form after moving to another folder

I have similar problem. After putting in my customized form all code I needed, I published my form. The way our organization works with form, is that the published form opened in the same folder as published, user fill out all items and then form approved by his manager and saved in the same folder. In Item_Open event I included code to make checkbox "Manager Approved" disabled after manager checked checkbox and saved the form. This works fine and after director of department open the form again, checkbox "Manager Approved" is disabled.
Now director has to approve the form too, check checkbox "Director Approved", save form again and in this case approved by director form moved to another folder for IT processing using function Item.Move in Item_Write function. I also included in Item_Open event code to make checkbox "Director Approved" disabled after director checked checkbox and saved the form. But when form is opened in another folder after saving and moving, checkbox "Director Approved" still enabled and I found that vbscript in Item_Open event don't run after form is opened in another folder.
Is this mean that form became "one-off" after moving to another folder? Is there any way to make code run in Item_Open event to make checkbox disabled?
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Subform Record Saved, Update/Requery Form controls CB-VTXer Access VBA 2 August 6th, 2007 02:35 PM
Opening a customized page Snuffles ASP.NET 2.0 Basics 8 April 1st, 2007 10:53 AM
Closing a form after opening another form rosebushr Access 2 January 7th, 2006 03:34 AM



All times are GMT -4. The time now is 03:22 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.