Welcome to FoxLearn
In this tutorial, I'll show you how to design an invoice using devexpress report designer
Drag a RibbonReportDesigner from the visual studio toolbox to your winforms
The Report Designer allows you to create data-bound reports and provides a rich set of tools to construct report layouts that meet your requirements
Click on NewReport button to create a new report, then add a PageHeader to your report
Next, you can drag a label into the PageHeader, then you can change the label text, font size, color..etc
You need to add a datasource to your report
We will use the Northwind database to play demo
If you don't have the Northwind database you can download it from c-sharpcode.com website
To design an invoice, you can select some fields from Customer tables, Products, Orders and OrderDetails tables.
Right click on detail area, then create a detail report
Next, select datasource for the detail report
Drag the fields from the field list toolbox to the detail, then you can layout the fields
You need to create a group header, then drag a table from the report toolbox into your group header
Next, add the columns to your table
Drag a table from the report toolbox into the Detail1 group, and then add the columns corresponding to the table columns in GroupHeader
Next, drag the fields of OrderDetails from the field list toolbox into the table in the Detail1 group
You can add calculated filed to directly calculate NetPrice, DiscountTotal, GrandTotal, AmountPaid instead of stored in the database
You can also add currency, or number formats to the data fields
You need to add a group footer to your report, then drag the GrandTotal, DiscountTotal and AmountPaid from the field list into the group footer
Thank you for watching this video and don't forget to subscribe to my channel