printing documents in vb.net

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2008
Posts: 3
Reputation: zinu is an unknown quantity at this point 
Solved Threads: 0
zinu zinu is offline Offline
Newbie Poster

printing documents in vb.net

 
0
  #1
21 Days Ago
hi to all,

i want to print the vb.net into a specified printer ,my code is as following

pdKbill.AllowPrintToFile = True
pdKbill.PrinterSettings = New PrinterSettings
pdKbill.PrinterSettings.PrinterName = "printername"
Me.printKbill = New PrintDocument
printKbill.PrintController = New StandardPrintController
Me.printKbill.Print()

but it always prints in to the system default printer, how can i do this?,anybody can help me..
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC