Once the code is complete, save the attachment back to the Notes document
This will prevent user mistakes
Dim newrichtextfield As notesrichtextitem Dim newobject As notesembeddedobject newdoc.removeitem ("Attachment") Set newrichtextfield = newdoc.CreateRichTextItem("Attachment") Set newobject = newrichtextfield.EmbedObject(EMBED_ATTACHMENT, "", filepath + filename)
Attachment Demo Demo — Example 4 User form that works with attachments pe01832_
Designed on an interface-based component model called Universal Network Objects (UNO)
UNO offers interoperability between different programming languages, different object models, different machine architectures, and different processes; either in a local network or even via the Internet
UNO components can be implemented in, and accessed from, any programming language for which a UNO language binding exists
hwd.ActiveWindow.Selection.SlideRange.Shapes("Rectangle 2").Select hwd.ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Select hwd.ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(1,0).Select With hwd.ActiveWindow.Selection.TextRange .Text = sessiontitle End With
Working with PowerPoint Demo — Example 10 Create a presentation using contacts or sessions pe01832_
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Dim s As New Domino.NotesSession Dim dbdir As Domino.NotesDbDirectory Dim db As Domino.NotesDatabase Try s.Initialize() ‘ you can also use s.Initialize("password") dbdir = s.GetDbDirectory("") db = dbdir.OpenDatabase(TextBox1.Text) Label1.Text = db.Title Label2.Text = db.FileName Label3.Text = db.FilePath Label4.Text = db.ReplicaID Label5.Text = db.Size Label6.Text = db.Created Label7.Text = db.LastModified Catch ex As Exception Label1.Text = ("An Error Happend " & ex.Message & “ “ & ex.Source) Finally System.Runtime.InteropServices.Marshal.ReleaseComObject(s) End Try End Sub
ASP.NET Calling Domino via COM Demo — Example 16 Creating an ASP.NET Web page that calls Domino via COM pe01832_
Thank You! Questions & Answers Please remember to fill out your evaluation. Samples available from www.johndavidhead.com [email_address] [email_address] www.johndavidhead.com kassabov.wordpress.com www.psclistens.com
The information contained in this publication is provided for informational purposes only. While efforts were made to verify the completeness and accuracy of the information contained in this publication, it is provided AS IS without warranty of any kind, express or implied. In addition, this information is based on IBM’s current product plans and strategy, which are subject to change by IBM without notice. IBM shall not be responsible for any damages arising out of the use of, or otherwise related to, this publication or any other materials. Nothing contained in this publication is intended to, nor shall have the effect of, creating any warranties or representations from IBM or its suppliers or licensors, or altering the terms and conditions of the applicable license agreement governing the use of IBM software.
References in this presentation to IBM products, programs, or services do not imply that they will be available in all countries in which IBM operates. Product release dates and/or capabilities referenced in this presentation may change at any time at IBM’s sole discretion based on market opportunities or other factors, and are not intended to be a commitment to future product or feature availability in any way. Nothing contained in these materials is intended to, nor shall have the effect of, stating or implying that any activities undertaken by you will result in any specific sales, revenue growth or other results.
IBM, the IBM logo, Lotus, Lotus Notes, Notes, Domino and Lotusphere are trademarks of International Business Machines Corporation in the United States, other countries, or both. Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States, and/or other countries. Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Microsoft and Windows are trademarks of Microsoft Corporation in the United States, other countries, or both.