Report Export Service
Component Detail
Service Layer
medium complexity
Shared Component
backend
0
Dependencies
2
Dependents
0
Entities
0
Integrations
Description
Shared service that serializes report result data into CSV or Excel format and streams the file to the client. Accepts the same paginated JSON used for inline display, ensuring export output is consistent with what is shown on screen. Used by Custom Reports, Team Reports, and Bufdir Export.
report-export-service
Responsibilities
- Serialize report result rows into CSV with proper encoding and headers
- Serialize report result rows into Excel (.xlsx) using a spreadsheet library
- Stream the generated file to the client with correct Content-Disposition headers
Interfaces
exportCsv(result: ReportResult, filename: string): StreamResponse
exportExcel(result: ReportResult, filename: string): StreamResponse
Relationships
Dependents (2)
Components that depend on this component