Cancelling a XPS print is not behaving in user friendly manner. RRS feed

  • Question


    Generated code for print.
    When OK is clicked in Print dialog after selecting XPS file printing, two windows are bieng popped one window is titled as " Printing" with text "Page 1 of document".. and one save As dialog which prompts from xps file name. Instead of providing file name, If I click cancel in "Printing" Window, Printing window text changed to "Canelling print" for ever until user enter some xps file name or clicks some where.My question is how to close both the window if user clicks on cancel in "Printing window".
    Note : i'm using .NetFramework 2.0 with visual Studio 2008 in a windows XP sp2 machine.

    Making "Printing" window visibilty to false will also solved my problem but how to hide it. 
    Making SaveAs file dialog as Modal also solves my problem. How to make it as modal??

    Thanks in Advance.
    Tuesday, August 4, 2009 9:50 AM