C2020-002 Logic to use either the Letter or A4 paper size
This commit is contained in:
@@ -72,10 +72,13 @@ namespace Volian.Print.Library
|
||||
get { return _ProcedureCount; }
|
||||
set { _ProcedureCount = value; }
|
||||
}
|
||||
private string _PaperSize = "Letter";
|
||||
public PDFTransitionReport(FolderInfo fi, string fileName)
|
||||
{
|
||||
_FileName = fileName;
|
||||
folderInfo = fi;
|
||||
if (fi.ActiveFormat != null)
|
||||
_PaperSize = fi.ActiveFormat.PlantFormat.FormatData.PDFPageSize.PaperSize; // C2020-002 paper size is now set in the format files
|
||||
}
|
||||
public PDFTransitionReport(ProcedureInfo pi, string fileName)
|
||||
{
|
||||
@@ -83,10 +86,12 @@ namespace Volian.Print.Library
|
||||
procedureInfo = pi;
|
||||
transitionInfoList = TransitionInfoList.GetTransitionReportData(procedureInfo.MyDocVersion.VersionID, procedureInfo.ItemID);
|
||||
_TransitionInfoCount = transitionInfoList.Count;
|
||||
_PaperSize = pi.ActiveFormat.PlantFormat.FormatData.PDFPageSize.PaperSize; // C2020-002 paper size is now set in the format files
|
||||
}
|
||||
public void BuildTransitionReport()
|
||||
{
|
||||
iTextSharp.text.Document document = new iTextSharp.text.Document(PageSize.LETTER.Rotate(), 36, 36, 36, 36);
|
||||
Rectangle paperSize = PDFPageSize.UsePaperSize(_PaperSize); // C2020-002 paper size is now set in the format files
|
||||
iTextSharp.text.Document document = new iTextSharp.text.Document(paperSize.Rotate(), 36, 36, 36, 36);
|
||||
if (!CreateResultsPDF(document)) return;
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user