RE: Attachment notes (fact box)
I think the best way would be to go through the ExcelBuffer
Read them from the recordlinks table.
Put them into the Excel buffer and then create an excel sheet based on the excel buffer.
I do not have any samply code specifically for the record link table.
But here is some samples on how to use the excel buffer.
www.kauffmann.nl/.../
Let me know if you bump into any issues and i will see if i can make some sample code unless someone else here got something ready.