This commit is contained in:
Kathy Ruffing 2012-02-15 15:05:06 +00:00
parent 7f4896e4c1
commit d1ff0188a7

View File

@ -264,6 +264,8 @@ namespace Volian.Print.Library
private string Print(ProcedureInfo myProcedure, string pdfFolder) private string Print(ProcedureInfo myProcedure, string pdfFolder)
{ {
_MyFoldoutReader = null; _MyFoldoutReader = null;
if (myProcedure.Sections != null)
{
foreach (SectionInfo mySection in myProcedure.Sections) foreach (SectionInfo mySection in myProcedure.Sections)
{ {
if (mySection.MyContent.Number.ToUpper() == "FOLDOUT") if (mySection.MyContent.Number.ToUpper() == "FOLDOUT")
@ -273,6 +275,7 @@ namespace Volian.Print.Library
_MyFoldoutReader = foldoutPdf != null ? new PdfReader(foldoutPdf) : null; _MyFoldoutReader = foldoutPdf != null ? new PdfReader(foldoutPdf) : null;
} }
} }
}
OnStatusChanged("Print " + myProcedure.DisplayNumber, PromsPrinterStatusType.Start); OnStatusChanged("Print " + myProcedure.DisplayNumber, PromsPrinterStatusType.Start);
string outputFileName = pdfFolder + "\\" + PDFFile; string outputFileName = pdfFolder + "\\" + PDFFile;