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

View File

@ -264,13 +264,16 @@ namespace Volian.Print.Library
private string Print(ProcedureInfo myProcedure, string pdfFolder) private string Print(ProcedureInfo myProcedure, string pdfFolder)
{ {
_MyFoldoutReader = null; _MyFoldoutReader = null;
foreach (SectionInfo mySection in myProcedure.Sections) if (myProcedure.Sections != null)
{ {
if (mySection.MyContent.Number.ToUpper() == "FOLDOUT") foreach (SectionInfo mySection in myProcedure.Sections)
{ {
_MyFoldoutSection = mySection; if (mySection.MyContent.Number.ToUpper() == "FOLDOUT")
string foldoutPdf = PrintProcedureOrFoldout(myProcedure, true, Volian.Base.Library.VlnSettings.TemporaryFolder + @"\Foldout.pdf"); {
_MyFoldoutReader = foldoutPdf != null ? new PdfReader(foldoutPdf) : null; _MyFoldoutSection = mySection;
string foldoutPdf = PrintProcedureOrFoldout(myProcedure, true, Volian.Base.Library.VlnSettings.TemporaryFolder + @"\Foldout.pdf");
_MyFoldoutReader = foldoutPdf != null ? new PdfReader(foldoutPdf) : null;
}
} }
} }
OnStatusChanged("Print " + myProcedure.DisplayNumber, PromsPrinterStatusType.Start); OnStatusChanged("Print " + myProcedure.DisplayNumber, PromsPrinterStatusType.Start);