# Supply Data to the PxPlus Report Writer

> Source: https://manual.pvxplus.com/how-to/supply-data-to-rpt-writer

The PxPlus **[Report Writer](https://manual.pvxplus.com/report-writer/introduction)** is a powerful tool for designing and generating complex reports in customized formats to various output destinations, such as printers, PDF files, HTML documents and more.

A Query definition can be used as an *Input Source* to supply data for the report:

![](https://manual.pvxplus.com/migration-assets/5735cd4cbcf7602961154fc017f17910cd7522ed0c50f721f11901687700f2dd.png)

This makes data from several files specified in the query definition available to be used in the report. You can also make a more complex and customizable report than that created by the \*TOOLS/QRYPRINT utility.

***Example:***

![](https://manual.pvxplus.com/migration-assets/e73c13b7f640964198c2ee6dfcb8f5f5647b2eff758ef344c15149932dbdee43.png)

This example creates a report that has Client data grouped by Sales Rep with totals for each Sales Rep and a final report summary.

You can then generate a report based on your report definition. The **[Report Designer](https://manual.pvxplus.com/report-writer/designing-a-report/report-designer/overview)** can generate reports directly. You can also CALL the **\*rpt/runreport** program or create a **\*rpt/pvxreport** object to have fine control over generating a report.

See **[Generating a Report](https://manual.pvxplus.com/report-writer/generating-a-report/introduction)**.

***Example:***

```
CALL "*rpt/runreport;Run_Call","C:\rptdef\SalesRepClients.pvr"
```

![](https://manual.pvxplus.com/migration-assets/69689b7c5ff95afca8371f1c360a221753b7cb4b13b8cd54c5b5641263542498.png)
