After Print, Errors freeze (IP 2003) - InfoPath Dev
in

InfoPath Dev

After Print, Errors freeze (IP 2003)

Last post 07-31-2007 11:04 AM by admot. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 07-31-2007 11:04 AM

    • admot
    • Top 500 Contributor
      Male
    • Joined on 08-09-2006
    • USA
    • Posts 51

    After Print, Errors freeze (IP 2003)

    I implemented a Print Preview code in a button:

    {
     var confirmprtint;

     confirmprtint = XDocument.UI.Confirm("This feature will take you to Print Preview. From there, you can print the form by clicking on the printer icon located at the top left corner.\rNote: This will print directly to your default printer. The default printer and its settings can be changed through the Windows Control Panel.\r\rDo you wish to continue?", 1);

     if (confirmprtint == 1)
      {
      Application.ActiveWindow.CommandBars("Standard").Controls("Print Preview").Execute();
      }

    }

     

    I also have a control showing the # of errors on the form. After the user clicks on Print Previewm the number of errors showing freezes. I tried replacing the Application.ActiveWindow.CommandBars command with the standard PrintOut(), implemented else 1==1, and a few other things but both yielding the same results.

    Anyone know why print preview would cause the error count to freeze?

    Don't grow old regretting the things you didn't do.
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.