- -----/-- (--)
- スポンサー広告
新しい記事を書く事で広告が消せます。
- none
へたれのソフトウエア技術者です。PG限界説の年齢はとうに過ぎてます。日ごろ得た情報のメモを残す健忘録です。solaris,ORACLE,UNIX,WINDOWS,LotusNotesなど。
雛形帳票の番号 テキスト、編集可能 obj_no
雛形帳票の種類 テキスト、編集可能 obj_kind
ファイル格納場所 リッチテキスト、編集可能 obj_name
Dim ss As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
set db = ss.CurrentDatabase
set view = db.getview("view1")
Call view.Refresh
set doc = view.GetFirstDocument
Do Until doc Is Nothing
If doc.obj_no(0) = "1" Then
set ritem = doc.GetFirstItem("obj__name")
If (ritem.Type = RICHTEXT) Then ' 念のため確認しておく
Forall o In ritem.EmbeddedObjects
If (o.Type = EMBED_ATTACHMENT) Then
Call o.ExtractFile(o.Source)
filename = o.Source
End If
End Forall
End If
Exit Do
End If
Set doc = view.getnextdocument(doc)
Loop
Set excel = CreateObject("Excel.Application")
excel.Visible = False
excel.Workbooks.Open(filename)
Dim s_work As String
excel.Workbooks("シート名").Activate
excel.Workbooks.Activesheet.cells(セルの位置).value = doc.元データ
http://jp1jsm.blog114.fc2.com/tb.php/14-1810e05d
この記事にトラックバックする(FC2ブログユーザー)
Comment
Page Top