vrijdag 6 november 2009

How to get Content of Stylesheet design element

I have a database who have one stylesheet design element.
With Lotusscript I try to get the content of this design element.

The code who gets the design element is below:

Set nc = db.CreateNoteCollection(False)
nc.Selectstylesheetresources=True
Call nc.BuildCollection

nid = nc.GetFirstNoteId()
Set docCSS = db.GetDocumentByID(nid)

When I look in the debugger at the items then there is not an item who contains the content.

Is there an other way to get the content of this design element?

1 opmerking:

  1. The content is stored in a rich text item named $FileData. Unfortunately, it doesn't behave like most rich text fields, so the best way I've found to extract the content of a stylesheet is to pass a handle on the design element to a NotesDXLExporter, then base64-decode the content of the filedata tag.

    Hope that helps...

    BeantwoordenVerwijderen