[RESOLVED]how to print data(VB.NET)
i display my data in datagrid
and i wish to print it out
so i wrote down code below
[font=simsun,mssong,arial] StringToPrint = DataGrid1.Text
PrintPreviewDialog1.Document = PrintDocument1
PrintPreviewDialog1.ShowDialog()
but when i run the program and click print preview
it come out nothing
how i gonna do for it?
how can i print the data in vb.net??
thanks!!!
[/font]
i display my data in datagrid
and i wish to print it out
so i wrote down code below
[font=simsun,mssong,arial] StringToPrint = DataGrid1.Text
PrintPreviewDialog1.Document = PrintDocument1
PrintPreviewDialog1.ShowDialog()
but when i run the program and click print preview
it come out nothing
how i gonna do for it?
how can i print the data in vb.net??
thanks!!!
[/font]
Last edited: