C2020-002 Logic to use either the Letter or A4 paper size

This commit is contained in:
2020-02-14 17:16:28 +00:00
parent 2234bde5e1
commit b41320ed24
15 changed files with 111 additions and 47 deletions

View File

@@ -303,7 +303,9 @@ namespace Volian.Controls.Library
private void btnPrint_Click(object sender, EventArgs e)
{
OnPrintRequest(new DisplayLibDocEventArgs("Library Document Usage", LibDocList));
string paperSize = "Letter";
paperSize = LibDocList[listBoxLibDocs.SelectedIndex].LibraryDocumentUsageList[0].ActiveFormat.PlantFormat.FormatData.PDFPageSize.PaperSize; // C2020-002 paper size is now set in the format files
OnPrintRequest(new DisplayLibDocEventArgs("Library Document Usage", LibDocList, paperSize));
}
}
public class DisplayLibDocEventArgs
@@ -321,6 +323,14 @@ namespace Volian.Controls.Library
get { return _libDocList; }
set { _libDocList = value; }
}
private string _PaperSize; // C2020-002 paper size is now set in the format files
public string PaperSize
{
get { return _PaperSize; }
set { _PaperSize = value; }
}
//private string _SearchString = null;
//public string SearchString
//{
@@ -339,10 +349,11 @@ namespace Volian.Controls.Library
// get { return _MyItemInfoList; }
// set { _MyItemInfoList = value; }
//}
public DisplayLibDocEventArgs(string reportTitle, DocumentInfoList libDocList)
public DisplayLibDocEventArgs(string reportTitle, DocumentInfoList libDocList, string paperSize)
{
_ReportTitle = reportTitle;
_libDocList = libDocList;
_PaperSize = paperSize; // C2020-002 paper size is now set in the format files
}
}
public delegate void DisplayLibDocEvent(object sender, DisplayLibDocEventArgs args);