Hi,
I am trying to create xl file using pyExcelerator in django.
response = HttpResponse( mimetype='application/vnd.ms-excel')
response = 'attachment; filename=output.xls'
workbook = Workbook()
worksheet = workbook.add_sheet('My Test Sheet')
worksheet.write(0,0, 'Company', font_style('left', 1, 'red'))
worksheet.write(1,1, 'Hello World!', font_style('left', 1, 'black'))
workbook.save()
return response
The problem here is I am not able to attach workbook to response.
Can someone help me out
Thanks