c++ - How to show PrintDialog in PrintPreviewDialog -
i want show printdialog (to choose printer) when click button "print" in printpreviewdialog. have add code in printdocument1_beginprint, did not work
private: system::void printdocument1_beginprint( system::object^ sender, system::drawing::printing::printeventargs^ e) { if (printdocument1->beginprint!=printdocument1->print->printtopreview) printdialog1->showdialog(); }
i use visual studio 2012 c++ windows forms.
Comments
Post a Comment