I have following code to access Lotus Form's Fields(COM Interop), But i am unable to get its dataType.(e.g. : Text , Number , DataTime)
NotesSession notesSessionClass = new NotesSession();
notesSessionClass.Initialize(pPassword);
NotesDatabase pNotesDatabase= notesSessionClass.GetDatabase("", pDatabaseName, false);
object objectForms = pNotesDatabase.Forms;
Array formArray = (System.Array)objectForms;
for (int cnt = 0; cnt < formArray.Length; cnt++)
{
NotesForm localForm = (NotesForm)formArray.GetValue(cnt);
Array fieldsArray = (System.Array)localForm.Fields;
for (int fieldCnt = 0; fieldCnt < fieldsArray.Length; fieldCnt++)
{
string field = (string)fieldsArray.GetValue(fieldCnt);
FIELD_TYPE fieldType = localForm.GetFieldType(field);
string strFieldType = fieldType.ToString();
}
}