Plugin development

This is a discussion on Plugin development within the lotus-notes-programmer forums in Other Technologies category; 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 ...

Go Back   Database Forum > Other Technologies > lotus-notes-programmer

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-16-2005, 03:37 PM
Default Plugin development

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

Reply With Quote
  #2  
Old 08-16-2005, 11:57 PM
Default Re: Plugin development

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
>


Reply With Quote
  #3  
Old 08-18-2005, 04:28 PM
Default Re: Plugin development

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
> >


Reply With Quote
  #4  
Old 08-18-2005, 09:36 PM
Default Re: Plugin development

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:
>


Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 08:54 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Integrated by bbpixel2009 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.