<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: print and print preview</title><link>https://www.infopathdev.com:443/forums/thread/58369.aspx</link><pubDate>Thu, 26 Aug 2010 13:55:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58369</guid><dc:creator>imransulehri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58369.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=58369</wfw:commentRss><description>No one has any idea??
I am stuck with this problem have no one tried this before?</description></item><item><title>print and print preview</title><link>https://www.infopathdev.com:443/forums/thread/58319.aspx</link><pubDate>Wed, 25 Aug 2010 13:25:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58319</guid><dc:creator>imransulehri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58319.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=58319</wfw:commentRss><description>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(&amp;quot;Wollen Sie das Formular erneut drucken?&amp;quot;, &amp;quot;Drucken&amp;quot;, 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?</description></item></channel></rss>