Is it posible to insert data from Lotus database in any control other than ListBox, that I can later fill GridView from. It is really urgent stuff so please help. Thanks all
Main Topics
Browse All Topicswith this code I have content of Lotus mailbox in Listbox, but actually I need to have this data in gridview or table so I can insert this in SQL server database. Every listbox should be one column of gridview/table. This is realy urgent. Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If you have to do the export/import only once, wouldn't it be a lot easier to export the contacts to a file, then import it in your SQL tables? Or write some agent/script in Lotus Notes to add the data directly to the SQL database? Or use LEI to connect to the SQL database?
PS I know nothing of grids, so I'm merely asking why you want to go through all the trouble to create a rather complex application to transfer some data...
That's not the right way to get the Body field. Evaluate shouldn't be used for every field, and certainly not when you don't need it. I think I mentioned the proper code to get Rich-text fields in some other question of yours.
Anyway, try this:
With vwInbox
docMessage = .GetLastDocument
Do
Dim bdy As String
bdy = docMessage.GetItemValue("B
List3.Items.Add(bdy)
docMessage = .GetPrevDocument(docMessag
Loop Until docMessage Is Nothing
End With
Strange... Here's a different way:
With vwInbox
docMessage = .GetLastDocument
Do
Dim bdy As String
bdy = docMessage.GetItemValue("B
List3.Items.Add(bdy)
docMessage = .GetPrevDocument(docMessag
Loop Until docMessage Is Nothing
End With
Or a two-step approach:
With vwInbox
docMessage = .GetLastDocument
Do
Dim obdy As Object
Dim bdy As String
obdy = docMessage.GetItemValue("B
bdy = obdy.Text
List3.Items.Add(bdy)
docMessage = .GetPrevDocument(docMessag
Loop Until docMessage Is Nothing
End With
I did that and it works. But I have problem with attachment names again, still getting 2 rows in listbox for mails with attachments. In one row I have attachment names and second row is empty. Second row is problem because now I have more rows in attachment listbox then in other listboxes. How to get only one row with attachment names?
List5.Items.Add(" ") is suppose to insert empty string for mails without attachment. If I remove this line of code I only get list of all attachments without empty rows for mails without attachment. Actually I need empty string in ListBox for mail without attachment and string with attachment names for mails with attachment.
Somehow, the EE-site got all garbled up. I hope they can correct it soon. Anyway, here's a different view on matters. The idea would be that you don't cycle through all documents 10 times, but you do it once and you pick up all data you need on the way.
See the code below (not tested, just to give you the general idea). The code is not updated with your latest changes!
A little faster, but a lot less code. And it should be a lot faster when there are many documents in the view.
About the mails without attachments: is that why you added a string with a single space?
Try this quick hack then:
Dim attachmentNames As Object
attachmentNames = appNotes.Evaluate("@Implod
If attachmentNames(0)="" Then attachmentNames(0)=" "
List5.Items.Add(attachment
Business Accounts
Answer for Membership
by: kahvedzicPosted on 2009-11-02 at 06:25:42ID: 25719519
any chance someone can help me