C2020-002 Logic to use either the Letter or A4 paper size
C2020-002 Get the paper size setting from the formats
This commit is contained in:
@@ -642,6 +642,8 @@ namespace VEPROMS
|
||||
{
|
||||
string locpdfname = null; // get pdf file name for later merge code
|
||||
MyProcedure = myProc;
|
||||
// C2020-002 paper size is now set in the format files - default is Letter
|
||||
Volian.Print.Library.Rtf2Pdf.PaperSize = myProc.ActiveFormat.PlantFormat.FormatData.PDFPageSize.PaperSize;
|
||||
if (myProc.Sections != null)
|
||||
{
|
||||
// This is master/slave & a slave has been selected for printing (SelectedSlave > 0)
|
||||
|
@@ -1096,8 +1096,9 @@ namespace VEPROMS
|
||||
}
|
||||
void displaySearch1_PrintRequest(object sender, DisplaySearchEventArgs args)
|
||||
{
|
||||
// C2020-002 paper size is now set in the format files - default is Letter, pass this PDFReport
|
||||
Volian.Print.Library.PDFReport myReport = new Volian.Print.Library.PDFReport(args.ReportTitle, args.TypesSelected, args.MyItemInfoList,
|
||||
Volian.Base.Library.VlnSettings.TemporaryFolder + @"\searchresults.pdf");
|
||||
Volian.Base.Library.VlnSettings.TemporaryFolder + @"\searchresults.pdf", args.PaperSize);
|
||||
if (args.SearchString != null)
|
||||
myReport.SearchString = args.SearchString;
|
||||
if (!args.ReportTitle.Contains("Annotation"))
|
||||
@@ -1113,25 +1114,26 @@ namespace VEPROMS
|
||||
|
||||
void displayLibDocs_PrintRequest(object sender, DisplayLibDocEventArgs args)
|
||||
{
|
||||
Volian.Print.Library.PDFReport myReport = new Volian.Print.Library.PDFReport(args.ReportTitle, args.LibDocList, Volian.Base.Library.VlnSettings.TemporaryFolder + @"\LibDocUsage.pdf");
|
||||
Volian.Print.Library.PDFReport myReport = new Volian.Print.Library.PDFReport(args.ReportTitle, args.LibDocList, Volian.Base.Library.VlnSettings.TemporaryFolder + @"\LibDocUsage.pdf", args.PaperSize);
|
||||
myReport.Build();
|
||||
}
|
||||
|
||||
void displayReports_PrintRequest(object sender, DisplayReportsEventArgs args)
|
||||
{
|
||||
// C2020-002 paper size is now set in the format files - default is Letter, pass this PDFReport
|
||||
if (args.TypesSelected == "RO Usage")
|
||||
{
|
||||
Volian.Print.Library.PDFReport myReport = new Volian.Print.Library.PDFReport(args.ReportTitle, args.MyItemInfoList, Volian.Base.Library.VlnSettings.TemporaryFolder + @"\ROUsageReport.pdf", args.SortUsageByProcedure,args.IncludeMissingROs);
|
||||
Volian.Print.Library.PDFReport myReport = new Volian.Print.Library.PDFReport(args.ReportTitle, args.MyItemInfoList, Volian.Base.Library.VlnSettings.TemporaryFolder + @"\ROUsageReport.pdf", args.SortUsageByProcedure,args.IncludeMissingROs, args.PaperSize);
|
||||
myReport.Build();
|
||||
}
|
||||
else if (args.TypesSelected == "Complete RO Report")
|
||||
{
|
||||
Volian.Print.Library.PDFReport myReport = new Volian.Print.Library.PDFReport(args.ReportTitle, args.RODataFile, Volian.Base.Library.VlnSettings.TemporaryFolder + @"\CompleteROReport.pdf", args.RofstLookup, args.CompleteROReport, args.ConvertCaretToDelta, args.IncludeEmptyROFields);
|
||||
Volian.Print.Library.PDFReport myReport = new Volian.Print.Library.PDFReport(args.ReportTitle, args.RODataFile, Volian.Base.Library.VlnSettings.TemporaryFolder + @"\CompleteROReport.pdf", args.RofstLookup, args.CompleteROReport, args.ConvertCaretToDelta, args.IncludeEmptyROFields, args.PaperSize);
|
||||
myReport.Build();
|
||||
}
|
||||
else if (args.TypesSelected == "RO Summary Report")
|
||||
{
|
||||
Volian.Print.Library.PDFReport myReport = new Volian.Print.Library.PDFReport(args.ReportTitle, Volian.Base.Library.VlnSettings.TemporaryFolder + @"\ROSummaryReport.pdf", args.RofstLookup, args.ROListForReport);
|
||||
Volian.Print.Library.PDFReport myReport = new Volian.Print.Library.PDFReport(args.ReportTitle, Volian.Base.Library.VlnSettings.TemporaryFolder + @"\ROSummaryReport.pdf", args.RofstLookup, args.ROListForReport, args.PaperSize);
|
||||
myReport.Build();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user