Printing a colon in LS fails

Hi all, I have a simple request to create a calendar file (ics) on a users desktop via a web browser. This will allow users to click a button next to an event one our notes delivered webpage and it should pop into their calendar. I am using a web-enabkled agent to print the html.

My first test was to construct a copy of an ICS event from another website to see if it could be loaded. From there I was going to modify the code to allow for the event the user has requested. All pretty simple so far. Read on dear listener…

The Code…

Sub Initialize

Print |Content-type: text/calendar|

Print |Content-Disposition: attachment; filename=test.ics|

Print |BEGIN:VCALENDAR

VERSION:2.0

METHOD:PUBLISH

BEGIN:VEVENT

DTSTAMP:20080513T173536

DTSTART;VALUE=DATE:20080517

DTEND;VALUE=DATE:20080518

TRANSP:TRANSPARENT

X-MICROSOFT-CDO-ALLDAYEVENT:TRUE

UID:race_1519@Fang_it.com.au

SUMMARY:Fang_it - The Border Ride 600km

LOCATION:Inverell,New South Wales

DESCRIPTION:Varied terrain crossing the borders of NSW and QLD \nDistances: 600km

ORGANIZER;CN=“Me”:MAILTO: me@fang_it.com.au

PRIORITY:0

END:VEVENT

END:VCALENDAR|

End Sub

This should produce what you would expect but Notes creates this output within the file with the first five lines missing.

DTSTART;VALUE=DATE:20080517

DTEND;VALUE=DATE:20080518

TRANSP:TRANSPARENT

X-MICROSOFT-CDO-ALLDAYEVENT:TRUE

UID:race_1519@Fang_it.com.au

SUMMARY:Fang_it - The Border Ride 600km

LOCATION:Inverell,New South Wales

DESCRIPTION:Varied terrain crossing the borders of NSW and QLD \nDistances: 600km

ORGANIZER;CN=“Me”:MAILTO: me@fang_it.com.au

PRIORITY:0

END:VEVENT

END:VCALENDAR

I have narrowed it down to the colon in the first few lines being an issue and I think, but not certain that the semi-colon resets it and shows the remaining text. Or that is the problem - i don’t know

Has anyone else experienced this fun and frivolity and has anyone found a get-around. I’m off to shrink now - my head is sore!

TIA

Subject: Printing a colon in LS fails

You’re more-or-less correct – there is no way for Domino to figure out when you are finished printing HTTP header fields until you print something in a format that cannot be interpreted as an HTTP header field. It doesn’t much matter what you print, as long as it’s not something-colon-something-else.

Subject: RE: Printing a colon in LS fails

Stan, Thank you so much for the explanation. I am in the process of testing some work-arounds in gCalendar, Notes and Outlook with adding a space prior to the first colon.

Ewen