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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -