how do i get the print dialog to appear, and then how do i recieve the information the user input into it?