[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Problem

Asked by prateek_prasoonp in Lotus Word Pro Word Processing Software, Lotus Domino Email Server, Lotus Notes

Tags: lotus notes, IBM, domino8.0

I have a form in Lotus notes consisting 100 fields.15 fields among the 100 are of subform that is within the form.

Now I want to migrate all the documents made on the form to excel sheet.

If I code for each and every 100 fields then the code will be too long.

How can I do this without coding so much.

The code I used is :-

Set db=ss.currentDatabase
      Set col = db.UnprocessedDocuments
      Set doc = col.GetFirstDocument
      tlcount=col.count
      count=1
      'checks whether record exists
      If Doc Is Nothing Then
            Msgbox "There are no Document selected.",MB_OK + 64,"No Document found"
            Exit Sub
      End If
     
      'Excel instance
      Set xlApp=CreateObject("Excel.Application")
      xlApp.Application.Visible = False
      xlApp.Workbooks.Add
      Set xlSheet = xlApp.Workbooks(1).Worksheets(1)
     
      With xlsheet
            .Range("A1").Value = "SNo."
            //and so on for each column

            Do While Not doc Is Nothing
            count=count+1
            With xlSheet
      .Cells(row, 1).Value=doc.SNO(0)      

      //Code for Checkbox or multiple value field
      Forall b In doc.PAC_Allergens_Choices
      If string ="" Then
      string =b
      Else      
      string =string +" , " +b
      End If
                       
      End Forall
      .Cells(row, 54).Value=string

      //and so on for all fields
     

      Set doc = col.GetNextDocument(doc)
            row=row+1      
      Loop
      Print "Done"
      Exit Sub
[+][-]04/21/09 09:47 AM, ID: 24196422Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/21/09 10:39 AM, ID: 24196915Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/21/09 04:02 PM, ID: 24200160Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/21/09 04:08 PM, ID: 24200185Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/22/09 03:16 AM, ID: 24203022Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/23/09 01:56 AM, ID: 24212983Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/23/09 02:11 AM, ID: 24213054Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/23/09 03:13 AM, ID: 24213360Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/23/09 03:32 AM, ID: 24213464Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/23/09 06:24 AM, ID: 24214697Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/23/09 06:25 AM, ID: 24214714Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625