Using Form Event to create icalendar .ics file

Has anyone had any experience with using a form’s event to create an icalendar file (.ics)?

Googled

http://bradym.net/php/creating-icalendar-ics-files-with-php.html

Yes I did generating .ics file while sending email . let me know what actually you wanna achieve