Folder Homepage

  • Thread starter Thread starter Henning Eiben
  • Start date Start date
H

Henning Eiben

Hi,

I'm currently developing a folder homepage for Outlook 2002, but it seems
there is little information available on how to create such a homepage.

Well, I got some code running, extracting contact-informations using
javascript. But I seem to have one problem: I have several ipm.document.xml
items in one folder, and I want to apply an XSLT stylesheet on these xml
documents ... but how do I do it? Well I do know how to use XSLT and XML
(MSXML), but how do I access the xml in the document-items? Seems the only
way is by saving the attachment to the filesystem and the using the load
method of the domdocument object. But unfortunatly I'm not allowed saving
attachments to the filesystem using javascript ... :)

Any hints? Does anyone know a website that covers folder homepages?

Thanx!!!
 
Although I haven't tried it, this page should give you some ideas... if not,
then head to the Developers tab and try again:
http://www.slipstick.com/dev/dashboard.htm

--
Milly Staples [MVP - Outlook]

Post all replies to the group to keep the discussion intact.


After searching google.groups.com and finding no answer
Henning Eiben <[email protected]> asked:

| Hi,
|
| I'm currently developing a folder homepage for Outlook 2002, but it
| seems there is little information available on how to create such a
| homepage.
|
| Well, I got some code running, extracting contact-informations using
| javascript. But I seem to have one problem: I have several
| ipm.document.xml items in one folder, and I want to apply an XSLT
| stylesheet on these xml documents ... but how do I do it? Well I do
| know how to use XSLT and XML (MSXML), but how do I access the xml in
| the document-items? Seems the only way is by saving the attachment to
| the filesystem and the using the load method of the domdocument
| object. But unfortunatly I'm not allowed saving attachments to the
| filesystem using javascript ... :)
|
| Any hints? Does anyone know a website that covers folder homepages?
|
| Thanx!!!
 
Well ... but I CAN'T save it to the filesystem using javascript .... :(((
there has to be a way of solving this :).

BTW: Is there any sample apps available? I know there are some ressource
about web-parts, but I don't want to use web-parts, just plain HTML and
javascript ... :)

Sounds like you've run up against a built-in limitation. The only way to
access a "free doc" or an attachment is to save it out as a system file,
then use methods appropriate to that file.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
 
If you're developing a folder home page for Outlook, you can use VBScript instead of Javascript, and that may avoid the limitation. That also makes the wealth of Outlook code samples available to you.
 
OK, I tried using VBScript instead of JavaScript, but unfortunatly the same
problem.

Here ist the function-code:

--- cut --- cut --- cut --- cut --- cut --- cut --- cut ---
Function renderXMLData2(objXMLItem)
On Error Resume Next
Dim objXML, objXSL
Dim strTempFileName

Set objXML = CreateObject("MSXML2.DOMDocument")
Set objXSL = CreateObject("MSXML2.DOMDocument")

' Save XML as file
strTempFileName = "C:\temp\temp.xml"
objXMLItem.Attachments(1).SaveAsFile strTempFileName

'// load XML-DOM
objXML.Load strTempFileName

' objXML.load(objXMLItem.Attachments(1));
alert(objXML.xml);

objXSL.Load "anfragen.xsl"

renderXMLData = objXML.transformNode(objXSL)
End Function
--- cut --- cut --- cut --- cut --- cut --- cut --- cut ---

I can save the file alright, but I can't load it into the XML-Object. I
don't have permission to do so :(

I also though of loading my attachment direct into the dom, but that doesn't
work either. The last thing I tried is, to access my objXMLItem (wich is an
IPM.Document.XML in an outlook folder) via outlook:[EntryID]. But that won't
work as well; odd is though, that my item, wich I create as IPM.Document.XML
doesn't show the XML-Icon in the folder preview in Oultook, but when I
drag&drop a XML-File it does have this icon. In the same respect if I
double-click the file I've created using code I get at first an
error-message, that no associated program can be found, but then the XML is
launched in the IE; my drag'n'drop item is directly (without any message)
launched in IE ... why is that so? Seems that there is some property set
differently in the item I created using drag'n'drop ... but what property? I
tried to check the items using OutlookSpy (but my eval is expired :((( ),
but I didn't found any differences ...

If you're developing a folder home page for Outlook, you can use VBScript
instead of Javascript, and that may avoid the limitation. That also makes
the wealth of Outlook code samples available to you.
 
Back
Top