This project has moved. For the latest updates, please go here.

NetOffice API reference

Jun 8, 2011 at 12:44 PM

Hello,

      Where is NetOffice API reference ?

Coordinator
Jun 8, 2011 at 3:20 PM

Hello,
please take a look

Documentation

FAQ

Technical Documentation (Reference)

Technical FAQ

 

regards
Sebastian

Jun 9, 2011 at 2:32 AM

Hello,

       first, thank you for your reply,

       I have read these documents but i want to know every class or interface's methods ,properties reference

       such as .NET Framework Class Library at MSDN.

       Could you help me ?

Thank you.

Coordinator
Jun 9, 2011 at 8:09 AM

ah okay, one problem is codeplex offers very litmited possibilities for technical documentation i find.
what i can do is to use an UML tool do create a visual overview.
what not i can do is reproduce the microsoft office technical documentaton, i'm not sure its allowed.
give me some days to ask microsoft office community manager its a legal way to publish content of compiled help files.
but nice idea dude, maybe its possible.

 

Jun 17, 2011 at 3:19 PM

Hello,

              Could you tell me how to get Outlook Folder,Folders,Account,Accounts,Rules object?

             I get some bugs when i want to get a Folder object  and Folders object, but i can not get any Interface/Class reference.

Code summary :            

            LateBindingApi.Core.Factory.Initialize();

            Outlook.Application outlookApp = new Outlook.Application();

           Outlook._NameSpace outlookNS = outlookApp.GetNamespace("MAPI");

          Outlook.Folder outlookFolder = new Outlook.Folder("MAPI");

          Outlook.Folders outlookFolders = new Outlook.Folders("MAPI");

         //  bug : "progId not found. MAPI"

        // why do we get the _NameSpace object with the progId "MAPI" but can't get  Folder and Folders object whit "MAPI"?

       // which is the progID? How can i set it?

       // if get objects such as following

         Outlook.Folder outlookFolder = outlookNS.DefaultStore.GetRootFolder() as Outlook.Folder;

         Outlook._Folders outlookFolders = outlookNS.Folders;

     // get the outlookFolder.Count value  exactly

    // but get a bug " Object reference not set to an instance of an object." with outlookFolder.Name

          MessageBox.Show("Folders count is: " + outlookFolders.Count);
           
            for (int i = 0; i < outlookFolders.Count;i++ )
            {
                MessageBox.Show("Name is: "+outlookFolder.Name);
               
            }

 

 

 

 

Coordinator
Jun 17, 2011 at 4:04 PM

what is a prodid: http://en.wikipedia.org/wiki/ProgID

you can't use the CoClass Outlook.Folder in this way. not in interop, not in vsto and not in netoffice.
an outlook namespace and a progid are two different things.

a progid is stored in registry the constructor overload(there you use here) in netoffice helps you to handle different versions.
for example
new Outlook.Application("Outlook.Application.9") // this progid creates outlook 2000 application object if present.
new Outlook.Application("Outlook.Application.10") // this progid creates outlook 2002 application object if present.

in 99% of all scenarios its not necessary to use this constructor overload.

the second:

outlookFolder is null

please check this code line:
Outlook.Folder outlookFolder = outlookNS.DefaultStore.GetRootFolder() as Outlook.Folder;

i think GetRootFolder() returns null or an object that cannot be converted to Outlook.Folder.
In this case the 'as' operator returns null.


 




 

Jun 27, 2011 at 5:55 AM

Hello,

       Thank you for your help.

       I have checked following code that Outlook.Folder outlookFolder = outlookNS.DefaultStore.GetRootFolder() as Outlook.Folder 

       but i can not fix it.

      Could you tell me how to get a Folder Object that i want to enum folders' name.

 

Thank you!