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

InfoPathEditor Fails in Outlook 2007 FormRegion



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old September 12th 06, 04:06 AM posted to microsoft.public.outlook.program_forms
John Guin
external usenet poster
 
Posts: 12
Default InfoPathEditor Fails in Outlook 2007 FormRegion

First, a dumb question: does the outlook item get left showing in a reading
pane?

Second, can you post the relevant code (I assume you are using C# with a
replace region).

Lastly, does this work on an old style forms^3 form?

Thanks,
John



"Pete Loveall" wrote:

I am using the InfoPathEditor control (InfoPath 2007) in a FormRegion in
Outlook 2007 (don't ask, suffice it to say the integrated InfoPath support is
not what we need). I must use the ActiveX control as Outlook 2007 does not
support managed controls in the forms.

I have written an addin which basically mirrors the MS article on adding
formregions using an addin. When the formregion is activated for a read, I
execute a LoadFromStream using a stream created using CreateStreamOnHGlobal
(the same error occurs when I use a file name and use the Load method). I am
doing nothing else with the form at this time except displaying it.

This all works fine the first time through and forever as long as one form
stays open (doesn't matter whether it is the first or one opened after the
first and then closing the first one). However, if I open a message in the
form (the formregion is a ReplaceAll region on IPM.Note.xyz where xyz is a
dummy form name) and then close it, all further attempts to open a message in
that form produce a COM error which reports that InfoPath is unable to open
the form due to an error in the code (there is none in the form). The error
reported by InfoPath is that "Index refers beyond end of list" which is an
XML parsing error. Yes, the file is exactly the same being passed to the
control's load commands.

The interesting part of this is that as long as I leave a form open with the
control in it, it works without error every time. I am going to cross-post
this to the Outlook group since this may be an Outlook clean-up issue.

 




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
Outlook 2007 beta 2 - Instant Search Install Fails Fred Jacobowitz Outlook - Installation 3 July 16th 06 07:14 AM
Outlook Fails To Start 'Open' Kahuna Outlook - General Queries 2 March 16th 06 09:39 AM
Outlook fails to load Cocajola Outlook - Using Forms 0 March 15th 06 10:27 AM
Outlook Startup fails Tomk Outlook - Installation 0 March 3rd 06 04:41 PM
Outlook express fails to open in Win98 Anil Bhattacharji Outlook Express 3 February 4th 06 03:59 AM


All times are GMT +1. The time now is 02:08 PM.


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