Search DominoPower's 11,443 Lotus-related article archive 
Home
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.
Twitter Feed Click here for the Twitter feed.
Integrating Domino with Office 2000 via XML (continued)

Print |<xml>|
Print |<o:OfficeDocumentSettings>|
Print |<o:DownloadComponents/>|
Print |<o:LocationOfComponents HREF="http://www.myserv.com/o2000/msowc.cab";/>|
Print |</o:OfficeDocumentSettings>|

Note: Remember that the vertical bar (i.e., the | character) is used in LotusScript as a multi-line delimiter. But it also is very useful as the string delimiter when you want to include quotes in your strings (as you would when generating HTML).

In addition to lots of new tags and attributes, Office introduces a whole set of CSS tags specific to its own documents. These tags won't be interpreted by browsers (although Microsoft may introduce this for Internet Explorer). All such tags begin with the mso- prefix (e.g. "mso-number-format: general" or "mso-protection:locked visible"). These two tags illustrate the way Office uses CSS both in its traditional use: to format text, and to pass settings specific to an application, such as cell protection for spreadsheets.

Here's an illustration of the styles for <TD> items (the tag for each cell of an HTML table) which has the following styles:

td {mso-style-parent:style0; padding:0px; mso-ignore:padding; color:windowtext; font-size:10.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Arial; mso-generic-font-family:auto; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}

Any of these styles can be overridden or set inside ordinary HTML tags. To change your heading font to Verdana, for instance, you'd use the following:

<TH style='font-family:Verdana'>

The bare bones
The internal structure of a single Excel XHTML document should follow the outline we'll describe in the next few sections. First of all, switch off the Domino HTTP header, so that you have full control over the resulting Web document:

Print |Content-Type: text/plain|Print |Content-Type: text/html|

Now you're going to create an <HTML> tag with the XML namespaces. If you intend to create custom Office document properties, be sure to include the namespace for dt, the datatype schema:

Print |<html xmlns:o="urn:schemas-microsoft-com:office:office"|
Print |xmlns:x="urn:schemas-microsoft-com:office:excel"|
Print |xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"|
Print |xmlns="http://www.w3.org/TR/REC-html40";>|

Create the HTML header, with META tags to identify the document as an Excel Web file:

Print |<head>|
Print |<meta http-equiv=Content-Type content="text/html; charset=windows-1252">|
Print |<meta name=ProgId content=Excel.Sheet>|
Print |<meta name=Generator content="Microsoft Excel 9">|


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  6  ·  7  ·  Next »
Other articles you might like
Home > Internet Technologies > XML (11 articles)
   How to create a Web service to extract data from XML documents
   Building an XML based Content Management System using Lotus Domino: wrapping it up
   Building an XML based Content Management System using Lotus Domino: overview of the content administration system
Home > Microsoft Technologies > Office (7 articles)
   DAMO deep-six: is there a future for Outlook/Domino integration?
   Quick guide to using the Microsoft Outlook 2002 Connector with a Domino server
   How to easily connect Notes and Microsoft Office
Home > Lotus Technologies > Domino (77 articles)
   More about Domino log files
   Why your log.nsf might not be purging properly
   Sloppy analysis at the core of another Domino vs. SharePoint report
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Syncing Notes with Android phones
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Online safety for virtual learning
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Seek and find: Strategies to locate filed-away emails fast
-- Advertisement --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- Advertisement --

Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.

Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).

Tap here to get started!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login