S
Serduko
Выгружаю, автоматом переносит строки, как можно исправить?выгружайте в CSV - в чем вопрос-то?
<div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">Код</div></div><div class="sp-body"><div class="sp-content">
Код:
Const Path = "D:\"
Const sc = ";"
Dim s As New NotesSession
Dim db As NotesDatabase
Dim v As NotesView
Dim col As NotesDocumentCollection
Dim doc As NotesDocument
Dim temp As NotesDocument
Dim arr(1 To 57) As String
Dim csvstr As String
Dim i As Integer
Dim rtitem As NotesRichTextItem
Dim Stream As NotesStream
Set db = s.Currentdatabase
Set v = db.Getview("ByNum3")
'Set col = v.Getalldocumentsbykey("RKCK", true)
'Set doc = col.Getfirstdocument()
Set doc = v.Getfirstdocument()
Set temp = db.Createdocument()
Set rtitem = New NotesRichTextItem(temp, "list")
While Not doc Is Nothing
arr(1) = doc.CorFrom(0)
.....
.....
arr(52) = doc.Data_reg(0)
For i=1 To UBound(arr)
If i <> UBound(arr) Then
csvstr = csvstr + arr(i) + sc
Else
csvstr = csvstr + arr(i)
End If
Next
Call rtitem.AddNewline(1)
Call rtitem.AppendText(csvstr)
Set doc = v.Getnextdocument(doc)
Wend
Set stream=s.CreateStream
Call Stream.Open(Path + db.Filename + ".csv")
Call Stream.WriteText(rtitem.text)
Call Stream.Close
Call temp.Remove(True)