Excel,csv and PDF generator doesn't work