Hi Rod.
I am running the book's original code samples and my own code with Win7,
VB 2010 and HP5610 printer.
all the same. printDialog will not fire (will not print).
As "direct print" or print previaw" will print with no problems and the code is the same code, I agree with you that is noting wrong with code, the problen
is with the control.
The tool property: "Document" show "(None)" and can not be changed.
to make the story short, I found in the MSDN a way to over come the problem.
Remove the line " dlgPrint.ShowDialog()" from the samples
and add the following:
If dlgPrint.ShowDialoge(Me)=Windows.Forms.DialogResul t.OK Then
m_PrintDocument.Print()
End If
Best Regards & enjoy your weekend.
Alex
N.B: I would like to
thank you for the outstanding book which is a bible for me in
VB 2010.