Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have dynamic datatable from my database
i wanna when i click button view my datatable in print document

like

PrintPreviewDialog PD = new PrintPreviewDialog();
               PD.Document = MyDataTable;


how can i pass datatable to print document
Posted
Comments
Member 10468566 26-Jan-14 23:13pm    
Try this
http://www.codeproject.com/Articles/43569/Printing-a-datagridview-in-C-NET-2-0

Take a look at these articles[^].
 
Share this answer
 
 
Share this answer
 
open new tab on button click & bind data table data to data controls like grid view & print it on page load.

Refer this link
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900