Sometimes we have to generate excel sheets or csv files or doc files which contain data of our content types. Generating Excel Sheets in Plone Let us see, how we can generate an excel sheet which contains names of Documents and their description. Add a script in Custom Folder with the sample code, shown below. Sample code to generate an excel sheet: # Example code: # Import a standard function, and get the HTML request and response objects. from Products.PythonScripts.standard import html_quote request = container.REQUEST RESPONSE = request.RESPONSE counter = 0 print "Number|Name" documents = context.portal_catalog(portal_type='Document') for document in documents: counter += 1 doc = document.getObject() desc = doc.description dtit = doc.pretty_title_or_id() print "%d|%s|%s" % (counter,dtit,desc) RESPONSE.setHeader("Content-type","application/vnd.ms-excel") RESPONSE.setHeader("Content-disposition","attachment;filename= Doc...