Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Fri, 28 Mar 2008 12:53:51 -0000,    group: microsoft.public.exchange.clients        back       


What "InFolder" to spec for Org Forms lib?   
I am trying to convert some old VB code to C#, and part of it is publishing 
some forms to the org forms lib. In VB, the "InFolder" property was 
optional, but .Net requires this (presumably a side effect of interop).
Whatever I try though, I get an Exception of "One or more parameter values 
are not valid". Any ideas?

Code sample ("Microsoft.Office.Interop.Outlook" replaced with ** for 
tidyness)
The exception occurs on the second line.



String _formpath = Application.StartupPath + "\\Outlook Forms\\myform.oft";
object _obj = olApp.CreateItemFromTemplate(_formpath, 
**.OlDefaultFolders.olFolderCalendar);
**.AppointmentItem _form = (**.AppointmentItem)_obj;
**.FormDescription _formdesc = _form.FormDescription;
 _formdesc.DisplayName = "Opsis_Appointment _ test";
_formdesc.Name = "Opsis_Appointment _ test";
_formdesc.PublishForm(**.OlFormRegistry.olOrganizationRegistry,**.OlDefaultFolders.olFolderCalendar);
date: Fri, 28 Mar 2008 12:53:51 -0000   author:   James B am

Re: What "InFolder" to spec for Org Forms lib?   
I recommend that you ask this in the m.p.exchange.development newsgroup.
-- 
Ed Crowley
MVP - Exchange
"Protecting the world from PSTs and brick backups!"

"James B" <jamesb_opsis@nospam.nospam> wrote in message 
news:eIHhjKNkIHA.4120@TK2MSFTNGP06.phx.gbl...
>I am trying to convert some old VB code to C#, and part of it is publishing 
>some forms to the org forms lib. In VB, the "InFolder" property was 
>optional, but .Net requires this (presumably a side effect of interop).
> Whatever I try though, I get an Exception of "One or more parameter values 
> are not valid". Any ideas?
>
> Code sample ("Microsoft.Office.Interop.Outlook" replaced with ** for 
> tidyness)
> The exception occurs on the second line.
>
>
>
> String _formpath = Application.StartupPath + "\\Outlook 
> Forms\\myform.oft";
> object _obj = olApp.CreateItemFromTemplate(_formpath, 
> **.OlDefaultFolders.olFolderCalendar);
> **.AppointmentItem _form = (**.AppointmentItem)_obj;
> **.FormDescription _formdesc = _form.FormDescription;
> _formdesc.DisplayName = "Opsis_Appointment _ test";
> _formdesc.Name = "Opsis_Appointment _ test";
> _formdesc.PublishForm(**.OlFormRegistry.olOrganizationRegistry,**.OlDefaultFolders.olFolderCalendar);
date: Fri, 28 Mar 2008 12:53:10 -0700   author:   Ed Crowley [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us