| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
|
| Hi Lotus community I am working on developing plugins for Lotus Notes Client 6.x that can be used for "clipping" text. In other words, the user should be able to select text in an e-mail, press a button and a method in a dll should be called. I have developed similar plugins in Outlook but I am a newbie to the Lotus world, and its not been easy going till now. I am stuck on the following: 1. My dll is actually a COM wrapper for a .net assembly. I see it in the "Ole Objects" in the references pane but if I try to use it using CreateObject or CreateObject, I get an error saying "Cannot create automation object" when I try to call a method in an object in the dll. Maybe I have left out an important piece of information that might help answering this question. Any pointers will be highly recommended. Here's my piece of code: Sub Click(Source As Button) Dim proxy As Variant Set proxy = CreateObject("TSProxy.TSLocalProxy") Dim uiWorkspace As New NotesUIWorkspace Dim uiDoc As NotesUIDocument Dim rc As Boolean Set uiDoc = uiWorkspace.CurrentDocument Call uiDoc.FieldSetText("MyRTF", uiDoc.FieldGetText("Today")) Call uiDoc.Refresh Dim text As String Dim rtfselected As NotesRichTextSection proxy.ClipText("Harsh") End Sub where TSProxy is listed in the "Ole References" and TSLocalProxy is listed in the TSProxy tree. 2. Can the mail template file be modified programmatically? I am planning to put my action button in a subform and insert the subform in the forms in the mail template file. I want to give my users an installer to do it so that they don't have to manually fiddle with the template. I read in one of the threads that nnotes.dll has method Subforminsert. Can this be used? Also, I can't seem to get a list of methods available in nnotes.dll. Can someone point me to this? Any help, suggestions, pointers will be highly appreciated. Thanks for reading this posting. Harsh |
|
#2
|
| I don't do the type of work you do for the plug-in, so I'll just address the last bit: Yes, you can modify the template. If this is going to be universal, you can change the master template for the mail files (which is dependent on the version). Just put your new code in the Memo form of that template. If you only want certain people to have this, I think it will be best to create a copy of the master mail template, put your code in it, and create a button the user can push that changes the template for the template of the user (since it will come in an email, it will be the CurrentDatabase) to this second template. Alex Harsh wrote: > > 2. Can the mail template file be modified programmatically? I am > planning to put my action button in a subform and insert the subform in > the forms in the mail template file. I want to give my users an > installer to do it so that they don't have to manually fiddle with the > template. I read in one of the threads that nnotes.dll has method > Subforminsert. Can this be used? Also, I can't seem to get a list of > methods available in nnotes.dll. Can someone point me to this? > > Any help, suggestions, pointers will be highly appreciated. > > Thanks for reading this posting. > > Harsh > |
|
#3
|
| Alex, Do the COM objects have to be OLE compliant for them to be usable in Lotus? Harsh Alex Moore wrote: > I don't do the type of work you do for the plug-in, so I'll just address > the last bit: > > Yes, you can modify the template. If this is going to be universal, you > can change the master template for the mail files (which is dependent on > the version). Just put your new code in the Memo form of that template. > > If you only want certain people to have this, I think it will be best to > create a copy of the master mail template, put your code in it, and > create a button the user can push that changes the template for the > template of the user (since it will come in an email, it will be the > CurrentDatabase) to this second template. > > Alex > > Harsh wrote: > > > > > 2. Can the mail template file be modified programmatically? I am > > planning to put my action button in a subform and insert the subform in > > the forms in the mail template file. I want to give my users an > > installer to do it so that they don't have to manually fiddle with the > > template. I read in one of the threads that nnotes.dll has method > > Subforminsert. Can this be used? Also, I can't seem to get a list of > > methods available in nnotes.dll. Can someone point me to this? > > > > Any help, suggestions, pointers will be highly appreciated. > > > > Thanks for reading this posting. > > > > Harsh > > |
|
#4
|
| I honestly don't know: You might want to check out notes.net to see. Alex Harsh wrote: > Alex, > Do the COM objects have to be OLE compliant for them to be usable in > Lotus? > Harsh > > Alex Moore wrote: > |
![]() |
| Thread Tools | |
| Display Modes | |