Hi, How to create a document? I have used the below code to create but couldnt know what to place at “theBinderId” and “profile”. How can i get those values?
Library lib = new Library(“http://aspire250/help/decsdoc.nsf”);
lib.connectAs("amandai", "amandai");
Binder binder = lib.getBinderById(theBinderId);
// fill out a profile for the new document
// profile = your code here ...
DDDocument newDoc = binder.createDocument();
newDoc.setContents(new File("C:\\My Documents\\Corbin.doc"));
newDoc.setName("New Java created document");
newDoc.setProfile(profile);
newDoc.save();
newDoc.checkin(Constants.CHECKIN_VERSION, Constants.CHECKIN_NEW,
false, "check in from Java");
System.out.println("new doc id = " + newDoc.getId());