|
|
|
|
|
|
|
|
|
|
|
|
|
|
Integrating Domino with Office 2000 via XML (continued)
Next comes the XML code, describing the structure of the Office document:
Optionally set some of the basic Document Properties, such as author, company, etc.:
Print |<o:DocumentProperties>|
Print |<o:Created>| & Format$(Now,"YYYY-MM-DDTHH:TT:SSZ") & |</o:Created>|
Print |<o:Author>Jeffrey R Burrows</o:Author>|
Print |<o:Keywords>Excel,XML,Oracle,DECS,Domino,Notes,DominoPower,LotusScript</o:Keywords>|
Print |</o:DocumentProperties>|
|
Optionally set some of the available generic Office document properties. This is where the location of the Office Web Components files is supplied so that client browsers without the components can download them:
Optionally set some custom properties. These are common to all Office documents:
Print |<o:CustomDocumentProperties>|
Print | <o:FinCode dt:dt="string">| & cgiFinCode$ & |</o:FinCode>|
Print | <o:SQL dt:dt="string">| & Query$ & |</o:SQL>|
Print | <o:DominoServer dt:dt="string">| & session.CommonUserName & |</o:DominoServer>|
Print | <o:DominoVersion dt:dt="string">| & session.NotesVersion & |</o:DominoVersion>|
Print | </o:CustomDocumentProperties>|
|
Next, define the Workbook and each sheet within it:
Print |<x:ExcelWorkbook>|
Print | <x:ExcelWorksheets>|
Print | <x:ExcelWorksheet>|
Print | <x:Name>Enterprise Data via Domino and XML</x:Name>|
Print |<x:WorksheetOptions>|
Print |<x:DoNotDisplayZeros/>|
Print | <x:Selected/>|
Print | <x:Panes>|
Print | <x:Pane>|
Print | <x:Number>1</x:Number>|
Print | <x:ActiveRow>1</x:ActiveRow>|
Print | <x:ActiveCol>1</x:ActiveCol>|
Print | </x:Pane>|
Print | </x:Panes>|
Print | <x:ProtectContents>True</x:ProtectContents>|
Print | <x:ProtectObjects>False</x:ProtectObjects>|
Print | <x:ProtectScenarios>False</x:ProtectScenarios>|
Print |</x:WorksheetOptions>|
Print |</x:ExcelWorksheet>|
Print |</x:ExcelWorksheets>|
Print |</x:ExcelWorkbook>|
Print |</xml>|
Print |</head>|
|
Now create the plain HTML file for viewing by the Web browser, including any additional XML attributes to be passed to Office (e.g., "x:fmla" to specify an Excel formula and CSS formatting for use by browsers and Excel):
Finally, close off the HTML document in the time-honored fashion:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- 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 --
Struggling with exporting Notes data to spreadsheets? No More!
Try IntelliPRINT, The world's leading Reporting, Dashboards, and Analysis solution for Notes & Domino
- Don't spend unproductive time maintaining different versions of the same spreadsheet
- Preserve data integrity and security in multi-user environments
- Create reports in minutes INSIDE Notes
- Get freedom from iterative report requests, deliver self-serve capabilities
Experience Reporting, Dashboards, and Analysis INSIDE Notes.
Try IntelliPRINT NOW! |
|
|
|
|
|
|
|
|
|
|