C2020-002 Logic to use either the Letter or A4 paper size
This commit is contained in:
@@ -37,7 +37,8 @@ namespace Volian.Print.Library
|
||||
}
|
||||
public void BuildReport()
|
||||
{
|
||||
iTextSharp.text.Document document = new iTextSharp.text.Document(PageSize.LETTER, 36, 36, 36, 36);
|
||||
Rectangle paperSize = PDFPageSize.UsePaperSize(MyDocVersion.ActiveFormat.PlantFormat.FormatData.PDFPageSize.PaperSize); // C2020-002 paper size is now set in the format files
|
||||
iTextSharp.text.Document document = new iTextSharp.text.Document(paperSize, 36, 36, 36, 36);
|
||||
if (!CreateResultsPDF(document)) return;
|
||||
try
|
||||
{
|
||||
@@ -225,7 +226,8 @@ namespace Volian.Print.Library
|
||||
public void BuildAllReport(DocVersionInfo dvi)
|
||||
{
|
||||
MyDocVersion = dvi;
|
||||
iTextSharp.text.Document document = new iTextSharp.text.Document(PageSize.LETTER, 36, 36, 36, 36);
|
||||
Rectangle paperSize = PDFPageSize.UsePaperSize(MyDocVersion.ActiveFormat.PlantFormat.FormatData.PDFPageSize.PaperSize); // C2020-002 paper size is now set in the format files
|
||||
iTextSharp.text.Document document = new iTextSharp.text.Document(paperSize, 36, 36, 36, 36);
|
||||
if (!CreateResultsPDF(document)) return;
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user