| |

VerySource

 Forgot password?
 Register
Search
View: 1506|Reply: 2

How do I use LotusScript in C / S to insert pictures on a database resource in the RichText domain?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2021-4-22 18:00:01
| Show all posts |Read mode
How do I use LotusScript in C / S to insert pictures on a database resource in the RichText domain?

Import external files with IMPORT, but there is no way to import the image in the database resource.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2021-4-23 11:15:02
| Show all posts
To make a clear point, what is the structure, how to import, or there is no way to help you.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Pakistan

Post time: 2021-4-23 12:00:02
| Show all posts
Sub initialize
ON Error Goto Errhandle
DIM SS AS New Notesession
DIM DB AS NotesDatabaseDoase
DIM NC AS NotesNotecollection
DIM Noteid As String
Dim Docimage as NotesDocument
DIM Item As NotesItem
DIM IMG AS STRING
DIM Context As NotesDocument
DIM IMGITEM AS NotesItem
DIM Count As Integer

COUNT = 0
Set context = ss.documentContext
Set imgitem = context.getfirstItem ("imagelist")
SET DB = SS.CURRENTDATABASE
Set nc = db.createnotecollection (false)
Call nc.selectallformateLements (false)
nc.selectimageresources = TRUE
Call nc.buildcollection

Noteid = nc.getfirstnoteid
Do While Not Noteid = "" "
Count = count + 1
SET DOCIMAGE = db.getDocumentByid (Noteid)
IMG = DOCIMAGE.GETITEMVALUE ("$ TITLE") (0)
Call Imgitem.AppendtotextList ("Image" + CSTR (COUNT) + "| + IMG)
Noteid = nc.getNextNoteid (Noteid)
Loop
EXIT SUB
Errhandle:
Print Error $
Print Erl ()
End Sub
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list