コード例 #1
0
        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());
        }
コード例 #2
0
        //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());
        }
コード例 #3
0
 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));
 }