1.Create a new Windows Form Application project.
2.Add DocumentViewer
3.Click on DocumentViewer and on smart tag click on create ribbon toolbar
4.Add GridControl, Dock:Fill
5.Bind GridControl :add a datasource from Data Source > Database > Microsoft Access Database File > Choose nwind.mdb,select Employees table
6.Go to DocumentViewer control, click smart tag,select PrintingSystem as Document Source
7.Click on smart tag of printingsystem1 >collections > Add:DevExpress.XtraPrinting.PrintableComponentLink
8.Choose Printing >Component: gridControl1
9.Run the application
No comments:
Post a Comment