🔧 Crystal Reports API Test Page

🔐 API Security Token

Get this token from Web.config → appSettings → ApiSecurityToken

1. Health Check

GET /api/Health.ashx

2. Generate Basic Report

POST /api/ReportGenerate.ashx
The .rpt file name in the /Reports/ directory
Crystal Reports selection formula for filtering
Connection name from Web.config (e.g., ERPConnection, PayrollConnection)

3. Generate Ledger Report

POST /api/ReportGenerateLedger.ashx
Custom SQL query for dataset binding
JSON object with formula field names and values
Connection name from Web.config