//constructor public P11PDFBuilder(string ResourcePath, P11ReportModel P11Model, string FileName) { if (P11Model == null) { throw new ArgumentNullException("P11ReportModel is null"); } _ViewModel = P11Model; sFilePDF = FileName; _resourcePath = ResourcePath; }
public bool ShowP11(P11ReportModel p11, string sFilePDF) { bRet = false; try { P11PDFBuilder p11Builder = new P11PDFBuilder(resourcePath, p11, sFilePDF); p11Builder.GetP11PDF(); return(true); } catch (Exception ex) { Utils.ShowError(ex); return(false); } }