troubleshooting Question

Print Document in Lotus Notes using C#

Avatar of solarissf
solarissf asked on
Lotus IBMCC#
21 Comments2 Solutions1466 ViewsLast Modified:
Hi guys... I'm still new to this but basically I am going to the last email in my "sent" folder, and wanting to print it.

So far I was able to find the last email in folder, but can't print it, any help would be GREATLY appreciated.!!!!
thanks!!!

private void PrintLastEmail()
{
//Lotus Notes Object Creation
NotesSession _notesSession = new NotesSession();
NotesDatabase _notesDataBase = null;
NotesDocument _notesDocument = null;
string sServerName =comboBox1.Text;//"NJROS1NML45/SERVER/Prudential"; //ConfigurationManager.AppSettings["NJROS1NML45/SERVER/Prudential"];
string sMailFile = "/Mail/" + login + ".nsf"; //"/Mail/x152169.nsf"; 
string password = login; //ConfigurationManager.AppSettings["x152169"];
object oItemValue = null;
_notesSession.Initialize(password);
_notesDataBase = _notesSession.GetDatabase(sServerName, sMailFile,
false);
//If the database is not already open then open it. 
if (!_notesDataBase.IsOpen)
{
_notesDataBase.Open();
}

Open in new window

ASKER CERTIFIED SOLUTION
Sjef Bosman
Groupware Consultant

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 21 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 21 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros