By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,096 Members | 1,355 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,096 IT Pros & Developers. It's quick & easy.

Problem using the PrintDialog Control

P: 28
Hi !

I am trying to print some results to a printer.
I used the printDocument and printDialog1controls. I can open the print dialog buta my problem is that i can insert my results to be printed.
Dim dlgresult As DialogResult = Me.PrintDialog1.ShowDialog()
If dlgresult = Windows.Forms.DialogResult.OK Then
Me.PrintDialog1.Document1.Print()
End if

The bold phrase is not working. My question is how to insert the results into the document1 in order to be printed. My results is an arrays of strings which contains passes and fails. The results are printed in a flex grid.

Can anyone help

thanks
Apr 2 '07 #1
Share this Question
Share on Google+
3 Replies


vijaydiwakar
100+
P: 579
Hi !

I am trying to print some results to a printer.
I used the printDocument and printDialog1controls. I can open the print dialog buta my problem is that i can insert my results to be printed.
Dim dlgresult As DialogResult = Me.PrintDialog1.ShowDialog()
If dlgresult = Windows.Forms.DialogResult.OK Then
Me.PrintDialog1.Document1.Print()
End if

The bold phrase is not working. My question is how to insert the results into the document1 in order to be printed. My results is an arrays of strings which contains passes and fails. The results are printed in a flex grid.

Can anyone help

thanks
what's d error so far
Apr 2 '07 #2

Expert 5K+
P: 8,434
what's d error so far
And what version of VB are you using?
Apr 2 '07 #3

P: 28
And what version of VB are you using?
problem solved.case close.thanks
Apr 3 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.