print and print preview - InfoPath Dev
in

InfoPath Dev

print and print preview

Last post 08-26-2010 06:55 AM by imransulehri. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-25-2010 06:25 AM

    print and print preview

    hello, in my template i want to print the template i use this.Print(true) method it pops ups the print preview. My project specifications are so tht after the user has printed out i need to ask if he wants to print another copy and then close the form.Now the problem is i dont know how to know that user has close the print preview so that i could fire up the message to have second printed copy.Second problem is that after showing message box if user click yes i want to print the template and close the form so i do this DialogResult result = MessageBox.Show("Wollen Sie das Formular erneut drucken?", "Drucken", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { this.Print(); //Application.ActiveWindow.Close(true); //Thread.Sleep(3000); //Application.Quit(true); //this.Close(); } this works only if i dont close the form if i close the form then the print didnt work? any ideas?
  • 08-26-2010 06:55 AM In reply to

    Re: print and print preview

    No one has any idea?? I am stuck with this problem have no one tried this before?
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.