public P10PDFMaker(string ResourcePath, P10ReportModel p10Model, string filename) { if (p10Model == null) { throw new ArgumentNullException("P10ReportModel is null"); } _ViewModel = p10Model; sFilePDF = filename; _resourcePath = ResourcePath; }
public bool ShowP10(P10ReportModel p10, string sFilePDF) { bRet = false; try { P10PDFMaker p10Maker = new P10PDFMaker(resourcePath, p10, sFilePDF); p10Maker.GetP10PDF(); return(true); } catch (Exception ex) { Utils.ShowError(ex); return(false); } }