c# - Printing WPF Document -
how specify number of copies printed before open print dialog?
i need print shipping labels , need print copies equal number of boxes.
currently being achieved using print dialog box nice achieve in code itself.
any appreciated.
thanks!
it important read faq , post question.you need write code , ask assistance.
the code here in c# (have not been tested)
printersettings settings = new printersettings();//system.drawing.printing.printersettings printdocument printdoc = new printdocument(); settings.copies = copiesnumber; //put number of copies printdoc.printersettings = settings; pagesettings mypage = new pagesettings(settings); printdoc.defaultpagesettings = mypage;
Comments
Post a Comment