+ All Categories

Bp309

Date post: 23-Dec-2014
Category:
Upload: john-head
View: 507 times
Download: 0 times
Share this document with a friend
Description:
 
Popular Tags:
46
BP309 – Extreme Integration - Techniques for Advanced Integration of Office and OpenOffice with IBM Lotus Notes and Domino John Head – PSC Group, LLC
Transcript
Page 1: Bp309

BP309 – Extreme Integration - Techniques for Advanced Integration of Office and OpenOffice with IBM Lotus Notes and Domino

John Head – PSC Group, LLC

Page 2: Bp309

Before we begin …

Please turn off/set to vibrate/mute allCell PhonesPagesComputers

Please remember to fill out your evaluationsHand in at end of sessionFill out via Lotusphere Online

Page 3: Bp309

Otherwise known as

The “Kumbaya” Session

or

“The only session where IBM and Microsoft are going to play nice and not beat each other up at Lotusphere”

Page 4: Bp309

Who is John Head?

Offering and Development Manager for our enTouch frameworks Technical and Sales role

Involved in Lotus technology since 1993

Speaker for 20 sessions at Lotusphere since 1996

Speaker at Advisor conferences

IBM Lotus Notes/Domino Certified

Author for Advisor Magazine and Group Computing on Office and SmartSuite integration with Notes

Blog and site with articles www.johndavidhead.com

Page 5: Bp309

Where do I work?

PSC Group, LLC (www.psclistens.com)

Midwest Mid-Market Professional Services Firm

IBM Premium Business Partner for 15 Years

Host of Ed Brill’s blog (www.edbrill.com)

Host of Alan Lepofsky’s Notes Tip’s blog (www.alanlepofsky.net)

Host of OpenNTF.org (www.openntf.org)

Winner of 2005 Lotus Award for Best Competitive Win!

Page 6: Bp309

What has John been doing since Lotusphere05?

Page 7: Bp309

What has John been doing since Lotusphere05?

Page 8: Bp309

John has been …

Working closer with Microsoft to make the new .NET technology be read for “prime time”

Building Web Services until his eyes fall out

Building OpenOffice samples

Losing sleep over the OpenOffice APIs

Shaking his head at the document standard war

And all of the above

Page 9: Bp309

Purpose

Present new ways to integrate

Utilize new features in Visual Studio.NET and Visual Studio Tools for Office 2005

Utilize new features in OpenOffice 2.0.1

Take advantage of Notes & Domino 7 functionality

Demonstrate some of the possibilities

Discuss the ‘XML format’ war started in 2005

but most importantly …

Push Microsoft Office and OpenOffice to the EXTREME

Expect lots of Code !!!

Page 10: Bp309

A little poll

Who is using … Office 97 and earlier

Office 2000

Office XP

Office 2003

OpenOffice / StarOffice

Office for the Mac

Microsoft Works

iWorks or Appleworks

SmartSuite

Other

Page 11: Bp309

Agenda

Getting Started

Word Solutions with COM

Word Solutions with Web Services

Dealing with Templates

XML in Office

Visual Studio.NET

Visual Studio Tools for Office

OpenOffice Mail Merge

Resources

Question and Answers

Page 12: Bp309

Getting Started

This session builds on top of JMP204 –The Hitchhikers Guide to Microsoft Office Integration with IBM Lotus Notes and Domino

Terms used in this presentation XML

Well Formed Schemas Transform

Web Services SOAP UDDI WDSL

Office 2003 wordprocessingML / spreadsheetML / etc SmartDocuments

Page 13: Bp309

Integration in 2006

Proprietary Technologies are being replaced Moving to standards-based

Office XML and OpenDocument formats

XML and Web Services

No Longer limited to OLE and COM

Integration without needing local data Notes Client not required

XML is the foundation

Page 14: Bp309

Integration in 2006 (cont)

New applications and tools

Difficulty scale increasing drastically

Limitations being removed Speed

Data Size

Presentation Options

Integration should always focus on the end user

Page 15: Bp309

The Starting Point – Word 2003

COM and OLE are not bad!

Builds on existing Domino skills LotusScript = VBA

Allows access to Domino data using familiar techniques

Can be initiated in multiple places Notes Client

Office Application

Internet Explorer (via VBScript and ActiveX)

Page 16: Bp309

Baby Steps

Focus on end user and the goalWhere will the file be stored?Is the file for printing/viewing/storageWhat does the end user community want?

Page 17: Bp309

Word 2003 Demo

Create a new documentPrompt User to select somethingPlace data into document

Let’s look see the demo

Page 18: Bp309

Limitations with the ‘traditional method’

Notes Client must be installedMust have understanding of

Notes Object Model Notes Storage Model

Can be slow with large amounts of data

Page 19: Bp309

Web Services

Self-contained application published and invoked from the Web

Based on XML

Uses WSDL and SOAP

Designed for machine-to-machine interaction over a network

Advantages Connects various applications running on different platforms

Use open standards and protocols

Use HTTP bypassing firewall and other security measures

Disadvantages Poor performance as opposed to DCOM

Page 20: Bp309

First things first

First, you need to build a Web Service

They can be written using LotusScript, Java or importing WSDL

They are very similar to an agent

To be able to write a web service, you must know how to write a Class

AD202 – Web Services and IBM Lotus Notes and Domino 7

AD230 – Tips and Topics for Developing Web Services in IBM Lotus Domino

Designer

Page 21: Bp309

Web Service Classes

Example of a simple class

Class GetPersonInfo

Sub New

End Sub

Public Function GetEmailAddress(personname As String) As String

End Function

Public Function GetPhoneNumber(personname As String) As String

End Function

End Class

Page 22: Bp309

Word 2003 Demo with Web Services

Same demo as the Word 2003 COM demo

Different Technology

Get to the same place with different technologies

Remember, it is not how you build it, but how the user experiences it

Page 23: Bp309

Word 2003 Demo – Web Services

Create a new documentPrompt User to select somethingPlace data into document

Let’s look see the demo

Page 24: Bp309

Office Templates

How did I get that template in my New dialog?

Template Installation Tool Each template is a document

Supports all Office 2000, XP (2002), and 2003 applications

Can also be used as a programmatic template tool

Will be submitted to OpenNTF.org this week

Let’s see the demo

Page 25: Bp309

Office 2003 and XML

XML is everywhere!Many documents can be stored as XML

Options to save only data

Import data from XML fileSpecific/Import XML SchemaTransform XML with XML Style Sheets

Page 26: Bp309

XML

The Extensible Markup LanguageCan describe different types of dataHuman and machine readable formatSelf-documenting

Page 27: Bp309

XML Sample

<?xml version=“1.0”?><LOTUSPHERE>

<SESSION>BP309</SESSION><PRESENTER>John Head</SESSION><ROOM>SW 10</ROOM><DATE>1.25.2006</DATE><STARTTIME>1330</STARTTIME><DURATION>60</DURATION>

</LOTUSPHERE>

Page 28: Bp309

Well Formed Data

XML file that conforms to strict rules

Most programs require well formed data to open/read the file

Applications that support Well Formed XML OpenOffice 1.X and 2.X

Access

Excel

InfoPath

Word

Page 29: Bp309

Schemas

XML file definition

<xsd:element name=“LOTUSPHERE”><xsd:complexType>

<xsd:sequence>

<xsd:element name=“SESSION” type=“xsd:string”/>

<xsd:element name=“PRESENTOR” type=“xsd:string”/>

<xsd:element name=“ROOM” type=“xsd:string”/>

<xsd:element name=“DATE” type=“xsd:date”/>

<xsd:element name=“STARTTIME” type=“xsd:time”/>

<xsd:element name=“DURATION” type=“xsd:integer”/>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

Page 30: Bp309

Transforms

Allows for reuse of a single data file with multiple presentation formats

In Office, defined for each application

True power of XML in Office

Page 31: Bp309

Sample Transform File

<?xml version=“1.0”?>

<xsl:stylesheet version=“1.0”>

<TABLE><TR>

<TH>SESSION</TH><TH>PRESENTOR</TH><TH>ROOM</TH><TH>DATE</TH><TH>STARTIME</TH><TH>ENDTIME</TH>

</TR>

<xsl:for-each select=“LOTUSPHERE”><TR ALIGN=“LEFT” VALIGN=“TOP”>

<TD><xsl:value-of select=“SESSION”/>

</TD>

</TR>

</xsl:for-each>

</TABLE>

Page 32: Bp309

Using XML with Excel

Read XML from a Notes Database

XML generated via Agent in Notes Database

Chart the data using Excel charting tools

Works with Domino 5.X, 6.X, 6.5.X

Page 33: Bp309

Visual Studio.NET

Microsoft Development Environment

Supports Multiple Languages VB.NET

C#

Etc

Support for WinForms

Uses .NET Security

Page 34: Bp309

Visual Studio.NET WinForms Demo

Same data as the Excel Database

Uses a Web Service

Stand-alone applications

Let’s look at the demo and code

Page 35: Bp309

Smart Documents

New class of Office application development

Built with Visual Studio Tools for Office

Inherits Visual Studio.NET security model “Managed Code”

VS.NET can build installers for VSTO applications

Page 36: Bp309

Visual Studio Tools for Office

Addin for Visual Studio.NETAdds support for

Word Excel InfoPath Outlook

Can develop in Visual Basic C#

Page 37: Bp309

Building a VSTO application

Incorporate Web Services and VSTO

Session Selection in Task Pane

Let’s see the demo

Page 38: Bp309

What?

Page 39: Bp309

OpenOffice

New version release in 2005 2.0

2.0.1 just released

Many people use OpenOffice in place of Office

Introduction samples in Jumpstart

Let’s look at Mail Merge with OpenOffice

Page 40: Bp309

OpenOffice Integration

With Notes, we use the COM object

Set objServiceManager = CreateObject("com.sun.star.ServiceManager")

Set objCoreReflection= objServiceManager.createInstance("com.sun.star.reflection.CoreReflection")

Set objDesktop = objServiceManager.createInstance("com.sun.star.frame.Desktop")

Set objDocument = objDesktop.loadComponentFromURL("private:factory/swriter", "_blank", 0, args)

Page 41: Bp309

OOo Mail Merge

Same concepts as Word Mail Merge1. User selects data

2. Generate data file

3. Detach template

4. Launch Writer

5. Execute Mail Merge

6. Produce End Document

Two steps today

Let’s see the demo

Page 42: Bp309

The Future

ND7 will help bring web services into our world

The standard battle will be hardest on the developer Office 12 XML formats

OpenDocument

Office “12” will be very different New User Interface

New File Formats

Lots of new options and customization vehicles How much of what works today will work in 12?

OpenOffice 2 is a great alternative

Page 43: Bp309
Page 44: Bp309

Wrap-up

Reviewed how to architect integration projects

Got an understanding of the technologies used

Walked thru lots of examples

Introduction to new Notes & Domino 7 functionality

Showed OpenOffice.org is an alternative

Page 45: Bp309

ResourcesLDD Discussions (Notes.Net)

http://www-130.ibm.com/developerworks/lotus

Advisor Magazine

http://www.advisor.com

MSDN

http://msdn.microsoft.com

OpenOffice

http://www.openoffice.org

Domino and .NET Samples

http://www.msdomino.net

John Head’s blog

http://www.johndavidhead.com

Slides and content available from

http://www.johndavidhead.com

http://www.psclistens.com on the Events menu

Page 46: Bp309

Questions & Answers

Thank You!

Please turn in your evaluations or fill them out online!

[email protected] www.johndavidhead.com www.psclistens.com


Recommended