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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Evault custom form & preview pane code



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 30th 06, 02:58 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 3
Default Evault custom form & preview pane code

Hi all,

I'm trying to write a custom form which allows users to perform some
tasks before sending. My problem is however that because the form does
stuff on startup, recipients get the preview pane active scripting
error.

We however also have Evault which replaces old email items with a
custom form (IPM.Note.EnterpriseVault.Shortcut) which has loads of vb
code inside, however shows in the preview pane fine and when you open
it, runs code to pull an existing email from the vault and displays it
as a normal outlook item.

I'm trying to figure out how they've got it to run code when opening
the email message, but outlook doesn't complain when previewing the
item. Any ideas as I'm stumped and really need a solution!

Thanks,

Kristan

Ads
  #2  
Old August 30th 06, 04:19 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Evault custom form & preview pane code

Are you certain there's code in that custom form, and not an Add-In that's
doing something? AFAIK, it's impossible to use the preview pane if there's
ANY code behind a custom form.

BTW, there's a microsoft.public.outlook.program_forms newsgroup specific to
forms questions.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


" wrote:

Hi all,

I'm trying to write a custom form which allows users to perform some
tasks before sending. My problem is however that because the form does
stuff on startup, recipients get the preview pane active scripting
error.

We however also have Evault which replaces old email items with a
custom form (IPM.Note.EnterpriseVault.Shortcut) which has loads of vb
code inside, however shows in the preview pane fine and when you open
it, runs code to pull an existing email from the vault and displays it
as a normal outlook item.

I'm trying to figure out how they've got it to run code when opening
the email message, but outlook doesn't complain when previewing the
item. Any ideas as I'm stumped and really need a solution!

Thanks,

Kristan


  #3  
Old August 30th 06, 05:08 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 3
Default Evault custom form & preview pane code

There is indeed code in the custom form, if I copy the code out and
paste it into a new form based on IPM.Note it gives the active
scripting message in the preview pane.

Basically Enterprise vault works by trawling your mailbox, deleting
IPM.Note items and replacing them with
IPM.Note.EnterpriseVault.Shortcut items with the body as an HTML
message which consists of the first few lines of the original email and
any attachments as hyperlinks. When you open this item (doubleclick) it
triggers an addin to load the actual message from the vault. Without
the adding all it does it load the message the normal way and says the
original couldn't be retreived from the vault, so the addin doesn't
affect the preview pane behaviour. It's all very clever, but what I
really need to know is how it manages make the preview pane think it's
a normal email. I've had outlook spy on to compare my messages vs
evault items and there are differences but it's things like subject
etc.

I wasn't sure if it was a vba or form question tbh, I didn't want to
cross post but I'll try there if no-one here can help.


Eric wrote:
Are you certain there's code in that custom form, and not an Add-In that's
doing something? AFAIK, it's impossible to use the preview pane if there's
ANY code behind a custom form.

BTW, there's a microsoft.public.outlook.program_forms newsgroup specific to
forms questions.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


" wrote:

Hi all,

I'm trying to write a custom form which allows users to perform some
tasks before sending. My problem is however that because the form does
stuff on startup, recipients get the preview pane active scripting
error.

We however also have Evault which replaces old email items with a
custom form (IPM.Note.EnterpriseVault.Shortcut) which has loads of vb
code inside, however shows in the preview pane fine and when you open
it, runs code to pull an existing email from the vault and displays it
as a normal outlook item.

I'm trying to figure out how they've got it to run code when opening
the email message, but outlook doesn't complain when previewing the
item. Any ideas as I'm stumped and really need a solution!

Thanks,

Kristan



  #4  
Old August 31st 06, 06:51 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Evault custom form & preview pane code

Fellow MVP Dmitry Streblechenko knows the trick behind this:

"It is a bit in a property (internally called SideEffects) that indicates
that the message has active content:

{00062008-0000-0000-C000-000000000046}, 0x8510, PT_LONG

The bit is 0x2000. Set that bit on a regular message – no preview pane.
Remove that bit from a message that has a one-off form and a script – Outlook
will happily display its contents in the preview pane."

So if you're comfortable using CDO (or Redemption from
http://www.dimastr.com), give it a shot.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


" wrote:

There is indeed code in the custom form, if I copy the code out and
paste it into a new form based on IPM.Note it gives the active
scripting message in the preview pane.

Basically Enterprise vault works by trawling your mailbox, deleting
IPM.Note items and replacing them with
IPM.Note.EnterpriseVault.Shortcut items with the body as an HTML
message which consists of the first few lines of the original email and
any attachments as hyperlinks. When you open this item (doubleclick) it
triggers an addin to load the actual message from the vault. Without
the adding all it does it load the message the normal way and says the
original couldn't be retreived from the vault, so the addin doesn't
affect the preview pane behaviour. It's all very clever, but what I
really need to know is how it manages make the preview pane think it's
a normal email. I've had outlook spy on to compare my messages vs
evault items and there are differences but it's things like subject
etc.

I wasn't sure if it was a vba or form question tbh, I didn't want to
cross post but I'll try there if no-one here can help.


Eric wrote:
Are you certain there's code in that custom form, and not an Add-In that's
doing something? AFAIK, it's impossible to use the preview pane if there's
ANY code behind a custom form.

BTW, there's a microsoft.public.outlook.program_forms newsgroup specific to
forms questions.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


" wrote:

Hi all,

I'm trying to write a custom form which allows users to perform some
tasks before sending. My problem is however that because the form does
stuff on startup, recipients get the preview pane active scripting
error.

We however also have Evault which replaces old email items with a
custom form (IPM.Note.EnterpriseVault.Shortcut) which has loads of vb
code inside, however shows in the preview pane fine and when you open
it, runs code to pull an existing email from the vault and displays it
as a normal outlook item.

I'm trying to figure out how they've got it to run code when opening
the email message, but outlook doesn't complain when previewing the
item. Any ideas as I'm stumped and really need a solution!

Thanks,

Kristan




 




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 can I change the form the Custom Reading Pane uses? Sean McCloskey Outlook - Using Forms 4 March 12th 08 02:22 PM
Form in the Preview Pane glnbnz Outlook - Using Forms 1 July 29th 06 02:27 PM
why write some code in form then the reading pane can't display [email protected] Outlook - Using Forms 1 July 4th 06 02:01 AM
why write some code in form then the reading pane can't display [email protected] Outlook - Using Forms 1 June 19th 06 12:57 PM
Code to set Flag Status to complete on custom form ICT User Outlook - Using Forms 3 March 27th 06 11:59 PM


All times are GMT +1. The time now is 03:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright 2004-2024 Outlook Banter.
The comments are property of their posters.