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

Hello Everyone,



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 19th 06, 06:33 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Hello Everyone,

Thanks for clearing that up. You didn't remove the large item body control on the custom form layout, did you? THat must be present if you want users to be able to attach files.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Rupang" wrote in message ...
I am using published form and I am publising it to the our own Custom Folder
in the Custom PST file.


We have a Outlook 2003 AddIn developed in VB.NET (.NET1.1)

So when we open that Contact Form and click on the Insert-Item option on
the Menu bar; we get following error:

"Unhandled exception at 0x30069a0b in OUTLOOK.EXE: 0xC0000005: Access
violation reading location 0x00000000."

And then Outlook crashes!

What could be the problem and any solution to this problem?

Thanks,
Rupang



  #2  
Old September 19th 06, 08:57 PM posted to microsoft.public.outlook.program_addins
Rupang
external usenet poster
 
Posts: 9
Default Hello Everyone,

Thats correct! The Large item body control does exists on the Contact Form
Layout.
Do I need to check any property ect?

And the Insert-File menu does work only this Insert-Item throws this
exception!


"Sue Mosher [MVP-Outlook]" wrote:

Thanks for clearing that up. You didn't remove the large item body control on the custom form layout, did you? THat must be present if you want users to be able to attach files.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Rupang" wrote in message ...
I am using published form and I am publising it to the our own Custom Folder
in the Custom PST file.


We have a Outlook 2003 AddIn developed in VB.NET (.NET1.1)

So when we open that Contact Form and click on the Insert-Item option on
the Menu bar; we get following error:

"Unhandled exception at 0x30069a0b in OUTLOOK.EXE: 0xC0000005: Access
violation reading location 0x00000000."

And then Outlook crashes!

What could be the problem and any solution to this problem?

Thanks,
Rupang




  #3  
Old September 19th 06, 09:09 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Hello Everyone,

I don't have any ideas on why that won't work. DId you install the PIA for Outlook 2003 by running Office setup?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Rupang" wrote in message ...
Thats correct! The Large item body control does exists on the Contact Form
Layout.
Do I need to check any property ect?

And the Insert-File menu does work only this Insert-Item throws this
exception!

I am using published form and I am publising it to the our own Custom Folder
in the Custom PST file.


We have a Outlook 2003 AddIn developed in VB.NET (.NET1.1)

So when we open that Contact Form and click on the Insert-Item option on
the Menu bar; we get following error:

"Unhandled exception at 0x30069a0b in OUTLOOK.EXE: 0xC0000005: Access
violation reading location 0x00000000."

And then Outlook crashes!

What could be the problem and any solution to this problem?


  #4  
Old September 19th 06, 09:22 PM posted to microsoft.public.outlook.program_addins
Rupang
external usenet poster
 
Posts: 9
Default Hello Everyone,

That's correct! The PIA's are installed using the Office Setup.

Also the previous version of the Add-In works fine for this action as well!

Its just his new version that we release recently has introduced this issue!

There is no major change in any code or deployment technique!

Thanks,


"Sue Mosher [MVP-Outlook]" wrote:

I don't have any ideas on why that won't work. DId you install the PIA for Outlook 2003 by running Office setup?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Rupang" wrote in message ...
Thats correct! The Large item body control does exists on the Contact Form
Layout.
Do I need to check any property ect?

And the Insert-File menu does work only this Insert-Item throws this
exception!

I am using published form and I am publising it to the our own Custom Folder
in the Custom PST file.


We have a Outlook 2003 AddIn developed in VB.NET (.NET1.1)

So when we open that Contact Form and click on the Insert-Item option on
the Menu bar; we get following error:

"Unhandled exception at 0x30069a0b in OUTLOOK.EXE: 0xC0000005: Access
violation reading location 0x00000000."

And then Outlook crashes!

What could be the problem and any solution to this problem?



  #5  
Old September 19th 06, 10:46 PM posted to microsoft.public.outlook.program_addins
Tom at GSD
external usenet poster
 
Posts: 84
Default Hello Everyone,

Hi Rupang,

It sounds like you are not publishing the form correctly. You may want to
revisist the way that you are publishing the form. If you are following an
example from CodeProject with regard to publishing a form then that is the
reason you are getting the exceptions thrown.


Tom -



"Rupang" wrote:

That's correct! The PIA's are installed using the Office Setup.

Also the previous version of the Add-In works fine for this action as well!

Its just his new version that we release recently has introduced this issue!

There is no major change in any code or deployment technique!

Thanks,


"Sue Mosher [MVP-Outlook]" wrote:

I don't have any ideas on why that won't work. DId you install the PIA for Outlook 2003 by running Office setup?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Rupang" wrote in message ...
Thats correct! The Large item body control does exists on the Contact Form
Layout.
Do I need to check any property ect?

And the Insert-File menu does work only this Insert-Item throws this
exception!

I am using published form and I am publising it to the our own Custom Folder
in the Custom PST file.


We have a Outlook 2003 AddIn developed in VB.NET (.NET1.1)

So when we open that Contact Form and click on the Insert-Item option on
the Menu bar; we get following error:

"Unhandled exception at 0x30069a0b in OUTLOOK.EXE: 0xC0000005: Access
violation reading location 0x00000000."

And then Outlook crashes!

What could be the problem and any solution to this problem?



  #6  
Old September 20th 06, 04:40 PM posted to microsoft.public.outlook.program_addins
Rupang
external usenet poster
 
Posts: 9
Default Hello Everyone,

Below is the code for publishing the oft form:
Please suggest that if it seems to be the root cause then how should I
modify it?

myFolder = m_olOutlook.GetNamespace("MAPI").Folders.Item("My Contact
Management").Folders.Item("MyContacts")

myItem = m_olApp.CreateItemFromTemplate(myKey.GetValue("Tem platesPath") &
"\MyContact.oft", myFolder)
myItem.FormDescription.PublishForm(Outlook.OlFormR egistry.olFolderRegistry,
OpenMAPIFolder("\\My Contact Management\MyContacts"))


"Tom at GSD" wrote:

Hi Rupang,

It sounds like you are not publishing the form correctly. You may want to
revisist the way that you are publishing the form. If you are following an
example from CodeProject with regard to publishing a form then that is the
reason you are getting the exceptions thrown.


Tom -



"Rupang" wrote:

That's correct! The PIA's are installed using the Office Setup.

Also the previous version of the Add-In works fine for this action as well!

Its just his new version that we release recently has introduced this issue!

There is no major change in any code or deployment technique!

Thanks,


"Sue Mosher [MVP-Outlook]" wrote:

I don't have any ideas on why that won't work. DId you install the PIA for Outlook 2003 by running Office setup?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Rupang" wrote in message ...
Thats correct! The Large item body control does exists on the Contact Form
Layout.
Do I need to check any property ect?

And the Insert-File menu does work only this Insert-Item throws this
exception!

I am using published form and I am publising it to the our own Custom Folder
in the Custom PST file.


We have a Outlook 2003 AddIn developed in VB.NET (.NET1.1)

So when we open that Contact Form and click on the Insert-Item option on
the Menu bar; we get following error:

"Unhandled exception at 0x30069a0b in OUTLOOK.EXE: 0xC0000005: Access
violation reading location 0x00000000."

And then Outlook crashes!

What could be the problem and any solution to this problem?


  #7  
Old September 20th 06, 05:00 PM posted to microsoft.public.outlook.program_addins
Tom at GSD
external usenet poster
 
Posts: 84
Default Hello Everyone,

Hi Rupang,

Try moving the oft file to a location other than the template folder. I
believe that your problem is the "CreateItemFromTemplate" call. I believe I
had problems when I specified the last parameter and I see you are specifying
the contacts folder. Try removing that. That is what was giving me the
problem I believe. Also the form name is missing which might also be an issue.

Below is my C++ code which is sligtly different than yours.

CComVariant myFolder(DISP_E_PARAMNOTFOUND, VT_ERROR);
Outlook::_ContactItemPtr spCustomContactItem =
m_pApplication-CreateItemFromTemplate(
btCustomFormLocation,
myFolder);


spForm-PutName(_bstr_t(FORM_NAME_DEFINE));
spForm-PublishForm(Outlook:lFolderRegistry, _variant_t(spContacts, false));







"Rupang" wrote:

Below is the code for publishing the oft form:
Please suggest that if it seems to be the root cause then how should I
modify it?

myFolder = m_olOutlook.GetNamespace("MAPI").Folders.Item("My Contact
Management").Folders.Item("MyContacts")

myItem = m_olApp.CreateItemFromTemplate(myKey.GetValue("Tem platesPath") &
"\MyContact.oft", myFolder)
myItem.FormDescription.PublishForm(Outlook.OlFormR egistry.olFolderRegistry,
OpenMAPIFolder("\\My Contact Management\MyContacts"))


"Tom at GSD" wrote:

Hi Rupang,

It sounds like you are not publishing the form correctly. You may want to
revisist the way that you are publishing the form. If you are following an
example from CodeProject with regard to publishing a form then that is the
reason you are getting the exceptions thrown.


Tom -



"Rupang" wrote:

That's correct! The PIA's are installed using the Office Setup.

Also the previous version of the Add-In works fine for this action as well!

Its just his new version that we release recently has introduced this issue!

There is no major change in any code or deployment technique!

Thanks,


"Sue Mosher [MVP-Outlook]" wrote:

I don't have any ideas on why that won't work. DId you install the PIA for Outlook 2003 by running Office setup?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Rupang" wrote in message ...
Thats correct! The Large item body control does exists on the Contact Form
Layout.
Do I need to check any property ect?

And the Insert-File menu does work only this Insert-Item throws this
exception!

I am using published form and I am publising it to the our own Custom Folder
in the Custom PST file.


We have a Outlook 2003 AddIn developed in VB.NET (.NET1.1)

So when we open that Contact Form and click on the Insert-Item option on
the Menu bar; we get following error:

"Unhandled exception at 0x30069a0b in OUTLOOK.EXE: 0xC0000005: Access
violation reading location 0x00000000."

And then Outlook crashes!

What could be the problem and any solution to this problem?


  #8  
Old September 20th 06, 05:10 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Hello Everyone,

In addition to Tom's suggestions, you should break out the operations that return the name of the .oft file

strOFTPath = myKey.GetValue("TemplatesPath") & "\MyContact.oft"
MessageBox.Show(strOFTPath) ' does this look right?

and the MAPIFolder object, especially the latter:

targetFolder = OpenMAPIFolder("\\My Contact Management\MyContacts")
If targetFolder Is Nothing Then
MessageBox.Show "You can't publish a form to a nonexistent folder"
Else
myItem = m_olApp.CreateItemFromTemplate(strOFTPath)
myItem.FormDescription.PublishForm(Outlook.OlFormR egistry.olFolderRegistry, targetFolder)
End If

Note that you don't need the second parameter for CreateItemFromTemplate.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Rupang" wrote in message ...
Below is the code for publishing the oft form:
Please suggest that if it seems to be the root cause then how should I
modify it?

myFolder = m_olOutlook.GetNamespace("MAPI").Folders.Item("My Contact
Management").Folders.Item("MyContacts")

myItem = m_olApp.CreateItemFromTemplate(myKey.GetValue("Tem platesPath") &
"\MyContact.oft", myFolder)
myItem.FormDescription.PublishForm(Outlook.OlFormR egistry.olFolderRegistry,
OpenMAPIFolder("\\My Contact Management\MyContacts"))


"Tom at GSD" wrote:

Hi Rupang,

It sounds like you are not publishing the form correctly. You may want to
revisist the way that you are publishing the form. If you are following an
example from CodeProject with regard to publishing a form then that is the
reason you are getting the exceptions thrown.


Tom -



"Rupang" wrote:

That's correct! The PIA's are installed using the Office Setup.

Also the previous version of the Add-In works fine for this action as well!

Its just his new version that we release recently has introduced this issue!

There is no major change in any code or deployment technique!

Thanks,


"Sue Mosher [MVP-Outlook]" wrote:

I don't have any ideas on why that won't work. DId you install the PIA for Outlook 2003 by running Office setup?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Rupang" wrote in message ...
Thats correct! The Large item body control does exists on the Contact Form
Layout.
Do I need to check any property ect?

And the Insert-File menu does work only this Insert-Item throws this
exception!

I am using published form and I am publising it to the our own Custom Folder
in the Custom PST file.


We have a Outlook 2003 AddIn developed in VB.NET (.NET1.1)

So when we open that Contact Form and click on the Insert-Item option on
the Menu bar; we get following error:

"Unhandled exception at 0x30069a0b in OUTLOOK.EXE: 0xC0000005: Access
violation reading location 0x00000000."

And then Outlook crashes!

What could be the problem and any solution to this problem?


 




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


All times are GMT +1. The time now is 09:39 AM.


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.