A CSV report can be downloaded of invoices a couple of ways (invoices can be exported directly from smart tables, or through CRM Reporting), but in order to include Line Items in your report, you will need to do it through the CRM Reporting.
In the Web Portal, go to CRM > Reports > Invoices tab > Select Default CSV with Line Items > Add any filters that you would like > Download CSV.