Get Data with a C# App from Domino Server

Hi i have made some tests to get data from a view (notes db) on a domino server.

I want to use the COM server (domobj.tlb) to get the data.

I have downloaded the .net toolkit with some vb.net samples.

so far so good, i can get the data from local db’s…

but if i try to connect the domino server a exception is occured (!?)

----c# code-----------------------

Domino.NotesSession session;

Domino.NotesDatabase db;

Domino.NotesView view;

Domino.NotesDocument doc;

string subject;

    try

    {

           session = new Domino.NotesSession();

           session.Initialize("xxxxxx");

           db = session.GetDatabase("SERVER1/OSP/CH", @"HelpDesk\CareCenter.nsf", false);   

           view = db.GetView("(Dispatcher)");

           doc = view.GetFirstDocument();



      if(doc != null)

           {

                 subject =  doc.GetFirstItem("ChainName").Text; 

           }

      else

           {

                 subject = "DB not found.";

           }

            label1.Text = subject;

    }

      catch(Exception ex)

    {

            label1.Text = "Error: " + ex.Message;

    }

    finally

    {

            session = null;

    }

}


how do i’m get the docs from the view?

P.S.

Yes i have tryed the NotesSQL connector, but all users has a local installed Notes Client and NO NotesSQL is installed.

Thanks in advance for any tips :slight_smile:

Volkan S.

Subject: Are you familiar with the ADO.NET option?

Our company makes a native managed ADO.NET data provider for accessing Notes/Domino data and services. Of course. using the ADO.NET standard has numerous advantages. Many who have started with “COM Interop” or “ODBC” solutions end up using our data driver. For details, see Products A-Z.

Subject: RE: Are you familiar with the ADO.NET option?

I know N2N, but is a little to expensive for me for this mini project.

It should only display a trayicon if a new Ticket is generated in the Helpdesk db with the subject.

How much is the price for a single server / developer?

thanks

Volkan

Subject: RE: Are you familiar with the ADO.NET option?

Pricing information is at the bottom of the page at Products A-Z. For your as (as I understand it) you would not need a server license, since you would not be building a server app. Rather you would need 1 developer’s license plus desktop runtme licenses (minimum bundle is 10 users).