public P9APDFBuilder(string ResourcePath, P9AReportModel P9AModel, string FileName) { if (P9AModel == null) { throw new ArgumentNullException("P9AReportModel is null"); } _ViewModel = P9AModel; sFilePDF = FileName; _resourcePath = ResourcePath; }
public bool ShowP9A(P9AReportModel p9A, string sFilePDF) { bRet = false; try { P9APDFBuilder p9AMaker = new P9APDFBuilder(resourcePath, p9A, sFilePDF); p9AMaker.GetPDF(); return(true); } catch (Exception ex) { Utils.ShowError(ex); return(false); } }