Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use Microsoft.office.Interop
#1
Hi, 

i try to learn how to use LibreAutomate and i'm stuck for a single test ... 

 
Code:
Copy      Help
/*/ nuget -\Microsoft.Office.Interop.Outlook; /*/

using Microsoft.Office.Interop.Outlook;
using Outlook = Microsoft.Office.Interop.Outlook;

Outlook.Application Application = new Outlook.Application();
Outlook.Accounts accounts = Application.Session.Accounts;

foreach (Outlook.Account account in accounts)
{
Console.WriteLine(account.DisplayName);
}

return;

and i have this error message :
Script1.cs(2,27): error CS0234: The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Script1.cs(1,17): error CS0234: The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

i have try to insert the lib in properties but i m stuck can you help me ?

also, i m not a Visual Studio user and with your install the nuget file config was not set ...
you should probably add an initial file if %AppData%\NuGet\NuGet.config does not exist with nuget.org into .


Messages In This Thread
use Microsoft.office.Interop - by alsk - 12-06-2022, 11:27 PM
RE: use Microsoft.office.Interop - by Gintaras - 12-07-2022, 06:00 AM
RE: use Microsoft.office.Interop - by alsk - 12-07-2022, 08:26 AM
RE: use Microsoft.office.Interop - by burque505 - 06-08-2023, 05:19 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)