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.