Excel¶
Connect to an Excel workbook so you can browse worksheets, build a query, and fill the report from the sheet.
Goal¶
Create a working Excel connection in Connection Manager and use it as a report Data Source.
Prerequisites¶
- One
.xlsxworkbook - A header row on each worksheet you want to query
Steps¶
- Open Data → Connection Manager….
- Add a connection and choose Excel.
- Browse to the workbook, or enter its path.
- Click Test. Test discovers the visible worksheets.
- Choose the Worksheet to use when the query does not name one.
- Save the connection.
- On the Data tab, select the connection. Browse data. Each visible worksheet is a table.
- Open Query Builder, choose columns and filters, then Apply.
- Preview the rows, place fields on the report, then Preview.
[ Screenshot: Excel connection settings ]
Notes¶
Note
Desktop keeps the selected file path. In the Web Designer, the uploaded file is stored with the data source.
Note
Hidden worksheets are not listed. Column types are inferred from the cell values.
Tip
Report parameters ($P{name}) can filter the query.
Result¶
The connection appears in Connection Manager. Query results become report fields.