|
I want to list all the mailboxes present in the mail folder and then want to access each mailbox emails from Domino Server.
I am using C# as programming language.
|
|
|
|
|
Lotus notes allows me to create two form with exactly same name.
In programming how can I distinguish between these two forms and act on them differently. Is there any Id or something?
So, when I need to extract document how can I manage which Form actually creates that document?
If you know please reply
|
|
|
|
|
HI abraham..
Thankx for such nice project.
In your project you have retrieved first and Last names.
How do we retrieve the remaining fields, i mean how can we find the remaining field values, where do find the string values to be passed.
Thanx
Swamy
|
|
|
|
|
i want to search documents by documentid in database and have to create nsf file based on those documents .if document is in the folder then i acn get the foldername and create the folder in the newly created database but if it is in the view or if i searched using getdocument i cant get the location of document...
plz help its very urgent
2)
while creating the folders for document from existing folders do i need to copy all the properties
3)
as i want to use the database template from the existing one hw can i determine that template as domino servers database template function returns the name as stdmailr8.ntf in case of mail database but actual stored is mail8.ntf
(8 is for version )
plz help me out
thanks in advance
|
|
|
|
|
Hi Abraham,
Before anything else, I wanna say thank you first for such a great article. Really a big help.
Anyway, I am currently working on lotus notes project right now. I'm trying to create an executable using Lotus notes API in MS VC++ and call this executable using @Command([Execute]...), I want this executable be able to get the selected document and open it using NSFNoteOpen(hDB, note_id, 0, &hNote).
I want this for instance select an item in the Inbox and then click a button to call the executable.
I hope you can help me with this.
Thanks.
-ej-
|
|
|
|
|
Use the CaretNoteID By implementing a view export DLL, or implemet a DDE Client with the Lotus Notes DDE Server
Imed
|
|
|
|
|
Anyone know how to programmatically retrieve properties of workspace icons in Lotus Notes?
- Ellen
|
|
|
|
|
Hello !
This article is very nice,It is very usefull for beginners as me.
I am developing a pplication which extract mails data from NSF file,Now I have extracted most of all data,but I cant able to get letterhead for particuler received message.So how can I get it.
I have tried to iterate all notes of a nsf file and found image for each latterhead but now how can i determine that ,image is for letterhead or for other ?
you kindly suggetion to this problem will be great help to me.
Thanks
|
|
|
|
|
in the NSFItemAppend, the user data format is const void far *item_value,
my document in MFC is processed by Serialize function. So how to transfer the *item_value from the document?
Would you please give me an answer? Thanks.
Jack
STATUS LNPUBLIC NSFItemAppend(
NOTEHANDLE note_handle,
WORD item_flags,
const char far *item_name,
WORD name_len,
WORD item_type,
const void far *item_value,
DWORD value_len);
|
|
|
|
|
Hello,
Can I know the database name for the calendar. As we store the contacts in names.nsf in Lotus Notes, under what name, the appointments,meetings,anniversaries are all stored in the calendar of Lotus Notes. I searched a lot of nsf files in my system, but could not get where the appointemnts,meetings are all stored. Please help me in this regard and thans a lot in advance.
Amogh
|
|
|
|
|
Hello,
I am trying to add the contacts like "FirstName", "LastName", "MiddleInitial" to the "names.nsf" and to display them when we open the contacts in Lotus Notes Client. I am able to add them in "names.nsf" and am able to see the added contacts once I open the "names.nsf" in notepad. But I am unable to see them in the Lotus Notes Client once I open the Contacts in Lotus Notes.
Please do help me in this regard. Here is my code for that which is given below. Please tell me if I have done mistake in the code or if some other APi's need to be called or some other code needs to be added to it.
#include <stdio.h>
#include <stdlib.h> // _itoa
#include <global.h>
#include <nsfdb.h> // NSFDbOpen
#include <nsfsearc.h> // NSFSearch
#include <nsfnote.h> // NSFNoteOpen
#include <osmem.h> // OSMemFree
#include <nif.h> //For NIFFindView
#include <nsfdata.h> //For NSF Data
#include <osmisc.h> //For OSLoadString
#include <textlist.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys stat.h="">
#include <sys types.h="">
/*Notes API Headers */
#include <lapicinc.h>
#include <lapiplat.h>
#include <stdnames.h>
#include <osmem.h>
#include <osfile.h>
#include <design.h>
#include <foldman.h>
#include <idtable.h>
DBHANDLE hdb;
/* ascii compile */
#if defined(OS390) && (__STRING_CODE_SET__==ISO8859-1)
#include <_Ascii_a.h> /* NOTE: must be the LAST file included */
#endif /* OS390, ascii compile */
/* define exit codes if they are not defined elsewhere */
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#endif
#ifndef EXIT_FAILURE
#define EXIT_FAILURE 1
#endif
/* Local function prototypes */
void print_api_error (STATUS);
char *StripBlanks(char *InputString);
STATUS AddANote(DBHANDLE hdb);
STATUS LNPUBLIC DeleteNotes(VOID *db_handle,
SEARCH_MATCH *search_info,
ITEM_TABLE *summary_info);
//#define ServerName "SILOKABLR" /* Name of the Notes Server */
#define ServerName "Local" /* Name of the Notes Server */
//#define FormName "person" /* Name of the Note Document */
//#define InputFile "names.nsf" /* Name of the Input file */
#define RecordLength 241 /* Length of the record to be read */
typedef struct NotesDocFieldsDef
{
char EMPNO[6];
char Filler0[1];
char ULNAME[13];
char LNAME[11];
char FNAME[12];
char Filler1[2];
char MNAME[9];
char PHONE[12];
char Filler2[6];
char FAX[12];
char Filler3[6];
char TITLE[22];
char DEPT[3];
char Filler4[8];
char SITE[19];
char OFFICE[20];
char Filler6[1];
char EMAIL[20];
char Filler7[1];
char MO_SAL[7];
char Filler8[1];
char SAL_YTD[9];
char Filler9[1];
char RAISE[6];
char Filler10[1];
char BONUS[9];
char Filler11[60];
} NotesDocFields;
NotesDocFields *EmpInfoPtr;
int main (int argc, char *argv[])
{
/* Local data declarations */
char *path_name; /* pathname of database */
char *db_name="C:\\Program Files\\lotus\\notes\\data\\names.nsf";
char fullpath_name[101]; /* Full pathname of database */
char buffer[NSF_INFO_SIZE];/* database info buffer */
char title[NSF_INFO_SIZE]; /* database title */
STATUS error; /* error code from API calls */
DBHANDLE db_handle; /* open handle to sample db */
NOTEHANDLE note_handle; /* note handle */
FILE *FilePtr; /* Pointer to the open file */
char FileDataBuffer[300]; /* Input record buffer */
WORD wLength;
char DataDir[256];
char pathfile_name[560];
char *viewname = "($contacts)";
HCOLLECTION collhandle=NULL;
HANDLE bufferhandle;
DWORD count;
WORD flg;
COLLECTIONPOSITION collpos;
DWORD matches;
NOTEID viewid;
NOTEID pNoteID;
NOTEID main_nid;
BOOL found;
char *itemname=" ";
STATUS ret=NULL;
WORD wbuild;
// char InputFile[85];
#if defined(OS390)
char LMBCSArg[MAXPATH]; /* translation buffer */
#endif /* OS390 */
/* Get the pathname of the database from the command line. */
if (argc != 2)
{
/* ascii compile */
#if defined(OS390) && (__STRING_CODE_SET__==ISO8859-1)
OSNativeToLMBCS(argv[0], MAXWORD, LMBCSArg, MAXPATH);
printf( ²\nUsage: %s <database filename="">\n² , LMBCSArg);
#else
printf( "\nUsage: %s <database filename="">\n" , argv[0] );
#endif /* OS390, ascii compile */
// exit (EXIT_SUCCESS);
}
#if defined(OS390)
OSNativeToLMBCS(argv[1], MAXWORD, LMBCSArg, MAXPATH);
path_name = LMBCSArg;
#else
path_name = argv[1];
#endif /* OS390 */
/* Start a notes connection */
error = NotesInitExtended (argc, argv);
if (error)
{
printf("\nError initializing Notes\n" ) ;
exit (EXIT_FAILURE);
}
else
{
printf("\nThe notes is initialized\n");
}
wLength = OSGetDataDirectory(DataDir);
if(wLength > 0)
printf("\nThe length of data directory is %s\n\n\n", DataDir);
/* Open the database. */
if (error = NSFDbOpen (db_name, &hdb))
// if (error = NSFDbOpen (fullpath_name, &hdb))
{
printf("\nUnable to open the database\n");
//print_api_error (error);
NotesTerm();
exit (EXIT_FAILURE);
}
else
{
printf("\nThe database is opened\n");
}
/* Get the database title. */
if (error = NSFDbInfoGet (hdb, buffer))
{
//print_api_error (error);
NSFDbClose (hdb);
NotesTerm();
exit (EXIT_FAILURE);
}
/* Get the title from returned buffer */
NSFDbInfoParse (buffer, INFOPARSE_TITLE, title, NSF_INFO_SIZE - 1);
if (error = NSFDbGetBuildVersion(hdb, &wbuild))
{
printf("\nUnable to get Lotus Notes version:\n");
NSFDbClose(db_handle);
NotesTerm();
return(error);
}
/* Print the title. */
#if defined(OS390) && (__STRING_CODE_SET__!=ISO8859-1)
OSLMBCSToNative(title, MAXWORD, LMBCSArg, sizeof(LMBCSArg));
printf (²\n #1 Create a Form in this database s)(%s)\n² ,
path_name,LMBCSArg);
#else
// printf ("\n Create a Form in this database s)(%s)\n" ,path_name,title);
printf ("\nCreate a Form in this database s)(%s)\n" ,NULL,title);
#endif /* OS390, ebcdic compile */
/* if (error = NSFSearch
(hdb, // database handle
NULL, // selection formula (all)
NULL, // title of view in selection formula
0, // search flags
NOTE_CLASS_DATA,// note class to find
NULL, // starting date (unused)
DeleteNotes, // action routine for notes found
&hdb, // argument to action routine
NULL)) // returned ending date (unused)
{
NSFDbClose (hdb);
}
NSFDbClose (hdb);*/
//Start Loop and read all records in the file
// if (error = AddANote(FileDataBuffer,hdb))
if (error = AddANote(hdb))
{
//print_api_error (error);
// Close the database.
if (hdb)
{
if (error = NSFDbClose (hdb))
{
//print_api_error (error);
NotesTerm();
exit (EXIT_FAILURE);
}
}
}
TCHAR *strFormula = "SELECT Form = \"Person\" ";
int len = strlen(strFormula);
FORMULAHANDLE hFormula;
WORD wLen = 0;
WORD wd = 0;
// Compile the Formula
ret = NSFFormulaCompile(NULL, 0,
(TCHAR*)(LPCSTR)strFormula,len,
&hFormula,
&wLen, &wd, &wd, &wd, &wd, &wd);
NSFDbClose (hdb);
//End Loop read all records in the file
/* End Loop read all records in the file */
// fclose(FilePtr);
/* Terminate Notes. */
NotesTerm();
/* End of main program. */
exit (EXIT_SUCCESS);
}
/* ===================================================== */
/* This function prints the API error message associated */
/* with an Lotus Notes C API error code. */
/* ===================================================== */
void print_api_error (STATUS api_error)
{
STATUS string_id = ERR(api_error);
char error_text[200];
WORD text_len;
/* Get the message for this API error code from */
/* the resource string table. */
text_len = OSLoadString (
NULLHANDLE,
string_id,
error_text,
sizeof(error_text));
/* Display the message. */
/* ebcdic compile */
#if defined(OS390) && (__STRING_CODE_SET__!=ISO8859-1)
OSLMBCSToNative(error_text, MAXWORD, error_text, sizeof(error_text));
#endif /* OS390, ebcdic compile */
fprintf (stderr, "\n%s\n", error_text);
}
/**********************************************************************/
/* */
/* FUNCTION: AddANote */
/* */
/* PURPOSE: Local function called by the main to create a new */
/* notes document in a database. */
/* */
/**********************************************************************/
STATUS AddANote(DBHANDLE db_handle)
{
/* Local data declarations. */
STATUS error = NOERROR; /* return code from API calls */
TIMEDATE timedate; /* contents of a time/date field */
double TempDouble;
double NotesDouble;
double ZeroDouble; /* JAM doubleword zero constant */
char TempStr[101]; /* Null Term item text string */
char TempFullName[101]; /* Null Term item text string */
NOTEID viewid;
NOTEID FormNoteId=NULL;
HANDLE IDTable_handle=NULL;
NOTEID FNoteID=NULL;
NOTEHANDLE note_handle=NULL; /* note handle */
STATUS ret=NULL;
HANDLE hIDTable=NULL;
NOTEID pNoteID=NULL;
NOTEID main_nid;
//NOTEID Doc_ID;
TempDouble = 0;
ZeroDouble = 0; /* JAM */
EmpInfoPtr = NULL;
char FormName[85];
char *viewname="($contacts)";
// EmpInfoPtr = (NotesDocFields *)TextMsg;
/* Create a new data note. */
/* if (error = NSFNoteCreate (db_handle, ¬e_handle))
return (error);*/
HCOLLECTION collhandle;
COLLECTIONPOSITION collpos;
if(error=NSFNoteCreate(hdb,¬e_handle))
{
printf("\nYnable to create the note\n");
NSFDbClose(hdb);
NotesTerm();
return(error);
}
else
{
printf("\nThe note has been created\n");
}
NSFNoteGetInfo(note_handle,pNoteID,&main_nid);
if (error = NIFFindView (hdb, viewname, &viewid))
{
NSFDbClose (hdb);
NotesTerm();
return (error);
}
if (error = NIFOpenCollection(
hdb,
hdb,
viewid,
0,
NULLHANDLE,
&collhandle,
NULLHANDLE,
NULL,
NULLHANDLE,
NULLHANDLE))
{
NSFDbClose (hdb);
return(error);
NotesTerm();
// return (1);
}
if(error = FolderCreate(hdb,NULLHANDLE,0L,NULLHANDLE,FOLDER_CONTACTS,
(WORD)strlen(FOLDER_CONTACTS),DESIGN_TYPE_SHARED,0L,&FNoteID));
printf("\nEnter the name of the form\n");
scanf("\n%s",FormName);
// gets(FormName);
//Write the form name to the note.
if (error = NSFItemSetText (note_handle, "Form", FormName, MAXWORD))
{
NSFNoteClose (note_handle);
return (error);
}
if (error = NSFNoteUpdate (note_handle, 0))
{
printf("\nUnable to save the note:\n");
NSFNoteClose (note_handle);
NSFDbClose(db_handle);
return(error);
}
else
{
printf("\nThe form has been updated\n");
}
memset(&(TempStr[0]),'\0' , sizeof(TempStr));
// memcpy(&(TempStr[0]),EmpInfoPtr->EMPNO ,sizeof(EmpInfoPtr->EMPNO));
/* Set the Employee Number Field in the note. */
TempDouble = atof(TempStr);
if (error = NSFItemSetNumber(note_handle,"Empno",&NotesDouble))
{
NSFNoteClose (note_handle);
return (error);
}
memset(&(TempStr[0]),'\0' , sizeof(TempStr));
printf("\nEnter the Last name of the contact\n");
scanf("\n%s",TempStr);
// gets(TempStr);
// memcpy(&(TempStr[0]),EmpInfoPtr->LNAME ,sizeof(EmpInfoPtr->LNAME));
// strcpy(TempStr,StripBlanks(TempStr));
sprintf(TempFullName,"%s" , TempStr);
/* Set the Office Field in the note. */
if (error = NSFItemSetText(note_handle,"LastName", TempStr,MAXWORD))
{
NSFNoteClose (note_handle);
return (error);
}
if(error = NSFItemAppend(note_handle,NULL,"LastName",(WORD)strlen("LastName"),TYPE_TEXT,TempStr,(DWORD)strlen(TempStr)))
{
NSFNoteClose (note_handle);
return (error);
}
memset(&(TempStr[0]),'\0' , sizeof(TempStr));
printf("\nEnter the First name of the contact\n");
scanf("\n%s",TempStr);
// memcpy(&(TempStr[0]),EmpInfoPtr->FNAME ,sizeof(EmpInfoPtr->FNAME));
// strcpy(TempStr,StripBlanks(TempStr));
sprintf(TempFullName,"%s, %s" , TempFullName,TempStr);
/* Set the Office Field in the note. */
if (error = NSFItemSetText(note_handle,"FirstName" , TempStr,MAXWORD))
{
NSFNoteClose (note_handle);
return (error);
}
if(error = NSFItemAppend(note_handle,NULL,"FirstName",(WORD)strlen("FirstName"),TYPE_TEXT,TempStr,(DWORD)strlen(TempStr)))
{
NSFNoteClose (note_handle);
return (error);
}
memset(&(TempStr[0]),'\0' , sizeof(TempStr));
printf("\nEnter the Middle name of the contact\n");
// scanf("\n%s",EmpInfoPtr->MNAME);
scanf("\n%s",TempStr);
// memcpy(&(TempStr[0]),EmpInfoPtr->MNAME ,sizeof(EmpInfoPtr->MNAME));
// strcpy(TempStr,StripBlanks(TempStr));
sprintf(TempFullName,"%s %c" , TempFullName,TempStr[0]);
/* Set the Office Field in the note. */
if (error = NSFItemSetText(note_handle,"MiddleInitial" , TempStr,MAXWORD))
{
NSFNoteClose (note_handle);
return (error);
}
if(error = NSFItemAppend(note_handle,NULL,"MiddleInitial" ,(WORD)strlen("MiddleInitial" ),TYPE_TEXT,TempStr,(DWORD)strlen(TempStr)))
{
NSFNoteClose (note_handle);
return (error);
}
/* To add documents to this folder, create an id table of docs */
if (error = IDCreateTable(sizeof(NOTEID), &hIDTable))
{
printf("\nError creating ID table:");
NSFDbClose (hdb);
NotesTerm();
return(error);
}
if (error = IDInsert(hIDTable,main_nid, NULL))
// if (error = IDInsert(IDTable_handle,Doc_ID, NULL))
{
OSUnlockObject(hIDTable);
OSMemFree (hIDTable);
IDDestroyTable(hIDTable);
printf("\nError saving note to ID table\n");
NSFDbClose (db_handle);
NotesTerm();
return(error);
}
else
{
printf("\nThe tabel is inserted \n");
}
// IDDestroyTable(hIDTable);
if(error=FolderDocAdd(hdb, NULLHANDLE, FNoteID, hIDTable, 0L))
{
printf("\nUnable to add the document:");
NSFDbClose (hdb);
NotesTerm();
return(error);
}
else
{
printf("\nThe document is added\n");
}
NIFUpdateCollection(collhandle);
/* Add the note to the database. */
if (error = NSFNoteUpdate (note_handle, 0))
{
NSFNoteClose (note_handle);
return (error);
}
else
{
printf("\nThe note has been updated\n");
}
DesignRefresh(" ",hdb,NULL,NULL,NULL);
/* Deallocate the new note from memory. */
/* if (error = NSFNoteClose (note_handle))
return (error);
/* End of function. return status. */
return (error);
}
/**********************************************************************/
/* */
/* FUNCTION: DeleteNotes */
/* */
/* PURPOSE: Local function that will delete a notes document. */
/* This function will be called for each document that was */
/* found with the notes search function (NSFsearch). */
/* */
/**********************************************************************/
STATUS LNPUBLIC DeleteNotes(VOID *hdb,
SEARCH_MATCH *search_info,
ITEM_TABLE *summary_info)
{
//Local data declarations.
STATUS error;
SEARCH_MATCH SearchMatch; // local copy of search match
memcpy ((char*)(&SearchMatch),(char *)search_info,
sizeof(SEARCH_MATCH));
if (error = NSFNoteDelete(*(DBHANDLE*)hdb,
SearchMatch.ID.NoteID,0))
return (ERR(error));
return (NOERROR);
}
/**********************************************************************/
/* */
/* FUNCTION: StripBlanks */
/* */
/* PURPOSE: Local function that will remove all blank from the */
/* end of a string. This function will be called from */
/* the AddANote function. */
/* */
/**********************************************************************/
char *StripBlanks(char *InputString)
{
char OutputString[201];
int I,O;
memset(&(OutputString[0]),'\0', sizeof(OutputString));
O = 0;
for(I=0;I
|
|
|
|
|
Hello Sir,
I am able to add contacts like "FirstName", "LastName" and "MiddleInitial" into "names.nsf" database through Lotus Notes C API programming. I could able to see the fields and their values added if I open the "names.nsf" as a notepad. But I am unable to view them on the Lotus Notes Client in "Contacts" view.
I tried lot of methods like Refreshing the database after adding the fields using DesignRefresh
Finding a view called contacts and opening the collection and updating it.
Please help me in this regard. I have been desperate in displaying the fileds in the Lotus Notes Client
Please help me.
Amogh
|
|
|
|
|
Hello,
I am able to retrieve the contacts from the Lotus Notes through NSFSEARCH API. Now I am trying to add contacts like "FirstName", "LastName", :Email", "Suffix" etc. dynamically from the Lotus Notes C API programming. But it is not getting updated to the Lotus Notes.
As you told earlier that you would have to create a new note document. Then add the values to the fields of that note and then add the note to the database, I followed the same steps.
But I am not able to update the note with added contacts to the Database. I am trying it from 3 days and not getting the solution for it. I am desperately looking for your reply and guidance. Please do help me in this regard, since my deadline is very near and I am not finding any solution in this regard.
Please reply me as soon as possible, since I am desperately waiting for your reply.
Amogh
|
|
|
|
|
Hello Sir,
In the way similar to the one which you used to retrieve the Firsta Name and Last name, I tried to retrive Email Address and Pffice Phone Number of a particular contact. But I am unable to retrive them. Please tell me how to search them and retrieve them from the Lotus Notes Database.
Amogh
|
|
|
|
|
HI all,
I even tried the same but unable to retrieve.
Can any one give us a solution
Thankx
Swamy
|
|
|
|
|
Hi,
Can you please tell me how to import a VC++ dll into a C#.net application. I have developed a dll in VC++ 6.0. I want to use this code in my C# .net 2005 application.
Please help me.
Thanks
Smitha
|
|
|
|
|
Hi
I saw your code to retrieve contacts from Lotus Notes. It is working perfectly fine.Now I want to add some contacts to my address book. I tried to give "insert into values" in your code but the contact is not getting appended.
Can you tell me how to add the record from the same code.
Thanks
Smitha
|
|
|
|
|
Hi Smitha,
Inorder to create a new contact, instead of the NoteOpen function, you would have to create a new note document. Then add the values to the fields of that note and then add the note to the database.
Regards
|
|
|
|
|
Hello,
I am interested in creating an application that send automatically a mail having as server mail Lotus Notes.
Using a SMTP server is not a solution in my case.
Can you provide some help for this issue?
Bubulina
|
|
|
|
|
Hi!
I've problems opening a Notes database (Mail database in my case) using Lotus Notes C++ API.
Wait.. its not that simple a problem!
I can easily open the database using the Open() method and it works perfectly fine!
But when i try to open the same database from an external application (say Windows desktop Search in my case), it just hangs on the "db.Open();" statement!
I am totally helpless at this stupendous problem. If one process(a test application) can nicely open the database, how can some other process fail at that?
Is there something to do with process priorities & access priviliges with this?
FYI, i've written an IFilter for the Windows Desktop Search(WDS) application to filter "nsf" files, and from there(i.e. from the WDS context) i make a call to the Open() method. And i guess WDS works on least priority.
Any help in this regard is seriously needed!
"Work Smarter, not Harder!"
Love,
TJ
|
|
|
|
|
Does your code create an LNNotesSession object then call the Init() method on that object? For example:
LNNotesSession session;
Session.Init();
LNDatabaseArray dbArray;
Session.GetDatabasesArrray(&dbArray);
For(int i = 0; i < dbArray.Count(); i++)
{
LNDatabase db = dbArray[i];
If(! db.IsNull() )
{
If(!db.IsOpen() )// <- this is important
Db.Open();
//Process data……
}
Db.Close();
}
If this is already establish then your problem may be do to the user.id who is running the program. If you are using the NotesC++ Api there is no way to pass in a user names and password to the LNNotesSession object, so when your program runs it will (try to) prompt you for a password (not to desirable, you can write a hook to prevent this behavior but that’s another topic). The Notes C Api will allow you to pass in a user name and password to the session object but remember the user.id that gets passed in to the session object must have access to the App’s (.nsf). If the user is in the ACL of the .nsf this should work.
Let me know if this helped.
-e
P.S. the formating in the example snippet got a little messed up
-- modified at 13:25 Saturday 28th January, 2006
|
|
|
|
|
I have the same problem, too.
I am using sample code from notescpp, same method works well, but this time it fail. According to my application, the only difference is that the target viewfolder is larger than previous one... Seems not able to be solved by myself. If someone knows how to get over, pls let me know.
|
|
|
|
|
Can you give me more detail on what you are doing?
Are you trying to open a database (.nsf) from a program that is outside the notes execution directory? If so you will have to set the path to the notes execution directory from the program (e.g. put the notes directory "C:\Program Files\Lotus\Notes" on the env. path). The notes C++ api needs to nowhere the notes.dll is located(there are a few more dependency on that .dll as well...but there all in the notes execution directory).
Send me the code and I will look at it.
-Eric
|
|
|
|
|
Thanks, e. I'm aware the directory setting issues. I'm quite sure that I have strictly follow the instructions from how to compile in help file. But it doesn't work, these codes worked fine in the previous project. So I convert it into .NET 2003 prj, since it works in .NET, I don't want to waste time on those configurations. I'm not a professional programmer, just write some tools to improve my effeciency. These prj is using our company's database, so pls forgive me that I can't share my code with you. Current problem is that, there is a embedded view in the document, in the embedded view, there are several document links. I'm trying to get the access to the linked documents. I just registered in IBM lotus forum, as name Bo B Yuan, that's my real name. As you can see, I'm Chinese. At last, let me express my appreciation for your concern, thanks.
|
|
|
|
|
Hi
I am zeeshan... my mail id zmohammad@pivotal.com
I can send all kind of images into the body of Message but with the same code when i send any document or html file... it does not send .
Surprise when i saw the send item in Lotus mail... it compose perfectly correct.
can ony one suggest some solution??
Thanks in advance
Zeeshan
|
|
|
|
|