Use "GetItemAndChildren" to assure that the latest data is used.

Fixed logic if trying to create a PDF while a previous PDF is open.
This commit is contained in:
Rich
2012-11-05 21:58:02 +00:00
parent 127a917e1e
commit 7b5fdd9f74
3 changed files with 29 additions and 119 deletions

View File

@@ -113,7 +113,11 @@ namespace VEPROMS
Application.DoEvents();
MyPromsPrinter.StatusChanged += new PromsPrinterStatusEvent(pp_StatusChanged);
DateTime tStart = DateTime.Now;
_PdfFile = MyPromsPrinter.Print(PDFPath);
do
{
_PdfFile = MyPromsPrinter.Print(PDFPath);
}
while (_PdfFile == null && MessageBox.Show("Try Again?", "PDF Creation Failed", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes);
if (_PdfFile == null)
{
this.Close();