谁能建议我哪种方法(freefile或ole对象创建)可以有效地将lotus notes文档导出为CSV和Excel文件?
发布于 2012-05-30 18:07:47
我也使用公式导出为csv和excel。
@Command(FileExport;“逗号分隔值”;"c:\text.csv")
发布于 2012-05-27 00:36:40
高效?使用NotesDXLExporter导出到DXL/XML。参见link。容易吗?在视图中选择文档,然后使用文件/导出、另存为类型:逗号分隔值。您可以使用需要导出的数据准备自己的视图。
发布于 2012-05-29 16:24:56
我得到了以下用于导出CSV文件的简单代码。
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
复制相似问题