Free up memory after creating an image that is printed on the report (used for image RO’s and X/Y Plots)
This commit is contained in:
parent
3fe7f68166
commit
5a27f169d5
@ -315,6 +315,7 @@ namespace Volian.Print.Library
|
||||
datatable.AddCell(cell2);
|
||||
GenerateErrorMessage(ex2, "Bad Image File. ", string.Format("Image File: {0}", filename));
|
||||
//_MyErrorBookMarks.Add(filename, pdfDest);
|
||||
roImage.Dispose();
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -322,6 +323,7 @@ namespace Volian.Print.Library
|
||||
PdfPCell cell = new PdfPCell(it_image);
|
||||
cell.BorderColor = Color.WHITE;
|
||||
datatable.AddCell(cell);
|
||||
roImage.Dispose();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -329,6 +331,7 @@ namespace Volian.Print.Library
|
||||
messageCell.BorderColor = Color.WHITE;
|
||||
datatable.AddCell(messageCell);
|
||||
GenerateErrorMessage(null, "Image File Missing. ", string.Format("Image File: {0}", filename));
|
||||
Application.DoEvents();
|
||||
//_MyErrorBookMarks.Add(filename, pdfDest);
|
||||
}
|
||||
}
|
||||
@ -393,12 +396,15 @@ namespace Volian.Print.Library
|
||||
break;
|
||||
case 100: // Text Field - sometimes also XY Plot
|
||||
Text();
|
||||
Application.DoEvents();
|
||||
break;
|
||||
case 101: // Plot Field
|
||||
XYPlot();
|
||||
Application.DoEvents();
|
||||
break;
|
||||
case 102: // Image Field
|
||||
ImageFile();
|
||||
Application.DoEvents();
|
||||
break;
|
||||
case 103: // Multi Begin - Display data for setpoints
|
||||
Multiple();
|
||||
|
Loading…
x
Reference in New Issue
Block a user