public Boolean ExportToPdf(String clientFileName, System.Web.HttpResponse webResponse, System.Web.HttpCookie cookie) { Helpers.HelperExportPDF _Helper = new Helpers.HelperExportPDF(); //lm.Comol.Core.DomainModel.DocTemplate.Helper.HelperExportPDF _Helper = new lm.Comol.Core.DomainModel.DocTemplate.Helper.HelperExportPDF(); return(_Helper.ExportToPdf(GetTemplate(), clientFileName, webResponse, cookie)); //, View.GetSysHeader(), View.GetSysFooter()); }
//Case "PDF" public Boolean ExportPDF(Int64 TemplateId, Int64 VersionId, System.Web.HttpResponse webResponse, System.Web.HttpCookie cookie) { //CHECK PERMISSION!!! Helpers.HelperExportPDF _Helper = new Helpers.HelperExportPDF(); Templ.Domain.DTO.ServiceExport.DTO_Template Template = ServiceGeneric.TemplateGet(TemplateId, VersionId, View.TemplateBaseUrl); if (Template == null) { return(false); } String clientFileName = Template.Name; if (VersionId > 0) { clientFileName += "v" + Template.Version.ToString(); } if (Template.UseSkinHeaderFooter) { Template.Header = this.View.GetHeader; Template.Footer = this.View.GetFooter; } return(_Helper.ExportToPdf(Template, clientFileName, webResponse, cookie)); //, View.GetSysHeader(), View.GetSysFooter()); }
public Boolean ExportToPdf(String clientFileName, System.Web.HttpResponse webResponse, System.Web.HttpCookie cookie) { Helpers.HelperExportPDF _Helper = new Helpers.HelperExportPDF(); return(_Helper.ExportToPdf(GetExportTemplate(), clientFileName, webResponse, cookie)); }