Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Createobject and pictogram

Createobject and pictogram

Createobject and pictogram

Hello all,

i've build a code that will attach a file using notesui.
The attachingcode:

call uidoc.createobject("Tezzt", ,"C:\testfile.doc")
This way the complete document is placed in the form i'm using. I know it's possible to turn this document in a pictogram thus not showing the complete document.

Does anyone know how this is done?

grtz Flippertje!

RE: Createobject and pictogram

If you want an icon, you should try attaching to the doc instead of embedding.


RE: Createobject and pictogram

Hi Pmonnet,

i didn't use embed (i think..) I created an object. When i do this manually i have an option that changes the (word)object to a pictogram in stead of showing the full document. That is what i'm trying to do in VBA...

grtz Flippertje

This is my code:


dim workspace
dim uidoc
dim bestand9 as string


set workspace=createobject("Notes.NotesUIWorkspace")
set uidoc=workspace.composedocument("servername","databasename","nameofNewNotesDocument")

call uidoc.gotofield ("Fieldname where Attachment will be put")
call uidoc.createobject("TestOpject", , bestandje)

set workspace=nothing
set uidoc=nothing

Many thanks for your trouble!!!

RE: Createobject and pictogram

Indeed, you are creating an object, which means you are embedding, not attaching (in NotesSpeak).
I think you should try to use a createobject method instead. That would most probably give you the icon you want.


RE: Createobject and pictogram

I'm a superdeluxe beginner at this so this is a dumm question... but what should i try to change to createobject?

Many thanks already!

grtz Flippertje

RE: Createobject and pictogram

You will need a NotesRichTextItem and you will probably need to create it on the NotesDocument object - at least, that is the way to do it LotusScript.
Once you have your NotesDocument and RTitem objects, then you use the EmbedObject method of the RTitem class (embeddedObject.EMBED_ATTACHMENT for Java).

That should sort you out.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close