Font tHFont1 = new Font(Font.TIMES_ROMAN, 8, Font.BOLD); //table Header public P10APDFBuilder(string ResourcePath, P10AReportModel p10AModel, string FileName) { if (p10AModel == null) { throw new ArgumentNullException("P10AReportModel is null"); } _ViewModel = p10AModel; sFilePDF = FileName; _resourcePath = ResourcePath; }
public bool ShowP10A(P10AReportModel p10a, string sFilePDF) { bRet = false; try { P10APDFBuilder p10AMaker = new P10APDFBuilder(resourcePath, p10a, sFilePDF); p10AMaker.GetP10APDF(); return(true); } catch (Exception ex) { Utils.ShowError(ex); return(false); } }