Exporting Lotus Notes document to CSV & Excel Files

旧巷老猫 提交于 2019-12-11 19:19:42

问题


Can Anyone suggest me which method (freefile or ole object creation) is Efficient to export lotus notes documents to CSV and Excel files?


回答1:


i used formula as well to export as csv & excel.

@Command([FileExport]; "Comma Separated Value"; "c:\text.csv")




回答2:


Efficient? Use a NotesDXLExporter to export to DXL/XML. See link. Easy? Select the document in a view and use File/Export, Save as type: Comma Separated Value. You can prepare your own view with the data you need exported.




回答3:


i got the below simple code for exporting CSV files.

[Link]

fileNum% = Freefile()
Open filename For Output As fileNum%

' use the view column titles as the CSV headers
Forall c In view.Columns
    If cns = "" Then    
        cns = c.title
    Else
        cns = cns + +","  + c.title         
    End If
End Forall      
Print #fileNum%, cns


 ' now get and print the values for each row and column
Set vc = view.AllEntries
Set entry = vc.GetFirstEntry()
While Not entry Is Nothing 
    rowstring = ""
    Forall colval In entry.ColumnValues
        If rowstring = "" Then
            rowstring = colval
        Else
            rowstring = rowstring + +","  + colval
        End If          
    End Forall
    Print #fileNum%, rowstring
    Set entry = vc.GetNextEntry(entry)
Wend
Close fileNum%


来源:https://stackoverflow.com/questions/10749499/exporting-lotus-notes-document-to-csv-excel-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!