c# - Lotus Notes - Add a Form Programmatically - NotesForm -



c# - Lotus Notes - Add a Form Programmatically - NotesForm -

i re-create form 1 nsf nsf programmatically. aware notesdocument class has copytodatabase method, , notesdatabase class has createview method.

however, have not found allow me add together form nsf.

i using lotus notes 8.5.2, com, , c#.

i have no problem retrieving info forms or deleting them, , have next code snippet:

//notesconnectiondatabase , nd2 objects of type notesdatabase , //members of same session. //write name of each form console. //delete each form database. (int = 0; <= (((object[])notesconnectiondatabase.forms)).length - 1; i++) { console.writeline(((notesform)((object[])notesconnectiondatabase.forms)[i]).name); ((notesform)((object[])notesconnectiondatabase.forms)[i]).remove(); } //for each form in nd2, re-create form notesconnectiondatabase. (int j = 0; j <= (((object[])nd2.forms)).length - 1; j++) { //i aware there no such method notesform.copytodatabase ((notesform)((object[])nd2.forms)[j]).copytodatabase(notesconnectiondatabase); }

using notesnotecollection class can collection of forms. selectforms property should set true , rest should set false.

after building notesnotecollection contain collection of form (documents) can accessed this:

nid = nc.getfirstnoteid = 1 nc.count set doc = db.getdocumentbyid(nid) nid = nc.getnextnoteid(nid)id next

the document can copied copytodatabase method

c# com lotus-notes lotus lotus-domino

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -