printdialog1.document=printdocument1
printdialog1.printersettings=printdocument1.printersettings
printerdialog1.allowsomepages=true
if printdualog.showdialog=dialogresult.OK then
printdocumet1.printersettings=printdialog1.printersettings
printdocument1.print()
End if
For print preview button!
printpreviewdialog1.document=printdocument1
printpreviewdialog1.showdialog()
No comments:
Post a Comment