Processes the report and renders it in the specified format. Namespace: Microsoft. WebForms Assembly: Microsoft. WebForms in microsoft.
|Published (Last):||21 September 2016|
|PDF File Size:||17.81 Mb|
|ePub File Size:||18.36 Mb|
|Price:||Free* [*Free Regsitration Required]|
Download ExportToWord. Each page in the word doc will contain payslip of corresponding employee in the employee list. We will not use Microsoft Report Viewer because we are not showing data in page. Using the code Create a new website in Microsoft Visual Studio Add a new class to the website and name it as Employee. Add following code to the employee class.
This will act as datasource for our project. Add following code to the EmployeeRepository class. Double click in the RDLC in the solution explorer to open the design view. In the Datasource dropdown, the namespace of the project is already populated. Select the required dataset in the next dropdown. On selecting the dataset, available fields in the dataset are populated in the right side list. Click on OK to create the dataset. We will design our report to get a word document in which each page contains a salary slip of an employee from the employee list.
We have used List because we need to get the report for all the employees in the employee list. Drag some text boxes from the Toolbox and place them to the List.
Right click on the TextBox and click on Expression. Add reference to Microsoft. WebForms to the project. GetAllEmployees ; report. Write mybytes, 0, mybytes. Happy coding!!!
How to export rdlc report to PDF without using ReportViewer
C# (CSharp) LocalReport.LoadReportDefinition Examples
Subscribe to RSS