Email:   
Home
In This Issue
Email a Friend
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Integrating Domino.Doc with other applications (continued)

For the ODMA32.DLL description, visit http://www.infonuovo.com/odma/downloads/odma20L.htm#ODMA32.lib-FileFormat.

However just to give you an example of how to declare and refer to the DLL in Visual Basic:


Declare function ODMSelectDoc Lib "odma32.dll" (ByVal odmHandle as Long, ByVal lpszDocId as String, pdwFlags as Long) as integer

Again, the Infonuovo site listed above will be of great help in connecting and calling methods and functions from the DLL.

You can find an entire ODMA wrapper at http://odma.info/downloads/ODMA-OCX-200-0.zip.

This will give you examples of how to call the ODMA32 via Visual Basic.

If you choose to use HTTP calls, you'll have to build everything from scratch. If you use the ODMA32.dll, you will rely on Microsoft to continue including this DLL in future versions of their OS. However, it will provide you with a full programming interface to i.e. Domino.Doc.

ODMA and Domino.Doc API
When the ODMA has been installed, you can connect to the Domino.Doc server in a much more correct way, or rather, a more Domino.Doc specific way.

By opening the object browser in your Notes designer client, you will see many Domino.Doc related type libraries, but two of the most interesting type libraries (public methods and properties in a DLL) are Lotus Domino.Doc (DominoDoc.Api) and DominoDocUI (ddocodma.odmaui).

The object browser and the Lotus Domino.Doc (DominoDoc.Api) are shown in Figure B.

FIGURE B

Here is the object browser and the Lotus Domino.Doc (DominoDoc.Api). Click picture for a larger image.

The object browser and the DominoDocUI (ddocodma.odmaui) are shown in Figure C.

FIGURE C

Here is the object browser and the DominoDocUI (ddocodma.odmaui). Click picture for a larger image.

These are the two objects that you will typically use when programming Domino.Doc. The first one is the common API model, where you work with Domino.Doc in the "background," like when manipulating "notesdatatabase" and "notesdocument" objects in common LotusScript. The second is the entry point, when writing your own ODMA integrations to Domino.Doc. This is the ODMA interface that you use to navigate documents to and from Domino.Doc.

Let's briefly look at a few of the methods in the ODMA type library.

To get you started you can use:

set myODMA=CreateObject("ddocodma.odmaui")

This will let you get a handle to the ODMA interface. From here there are several options.

DoModalOpen() will present the ODMA open document interface. DoModalSave() will present the save interface. When you have called one of these methods, you will have to use either the property "openeddocument" or "saveddocument" to get to the document that you have chosen in the DoModalOpen/DoModalSave UI.

OK, lets try to use DoModalOpen():


Call myODMA.DoModalOpen()
Set myODMAdoc = myODMA.openeddocument

Now we've got a handle to the document that we have just chosen from the ODMA UI. From here we can use the "DominoDoc.Api" the same way as we used "ddocodma.odmaui" in the createobject line.




[ Prev | Next ]

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
-- Advertisement --

AUTOMATE LOTUS NOTES USER ID MANAGEMENT
ID Manager 4.5 from HELP Software provides a new level of automaton for managing Lotus Notes IDs. ID Manager lets Lotus Notes administrators get out of the business of creating and managing user IDs. Use our ROI calculator to see how quickly ID Manager will pay for itself.

Learn more about HELP Software products
-- Advertisement --

SECURTRAC - MONITOR AND CONTROL YOUR DOMINO ENVIRONMENT
When it comes to your business, how do you ensure compliance with SOX, HIPAA or other industry driven regulations? Use SecurTrac to monitor and audit the life cycle of all objects in your Domino environment.
  • Database Monitor
  • Mail Monitor
  • Domino Directory Monitor
  • Notes.ini File Monitor
  • Intrusion Detection Monitor


Click here for details and a free evaluation copy.
Copyright © 1998-2008, ZATZ Publishing. All rights reserved worldwide.
Editor's Login