Esempio n. 1
0
        public async static Task <MemoryStream> CreateInvoiceStream(Translate translate, Invoice invoice, InvoiceDataApi invoiceData, string organizationLogo, string organizationName, string organizationAddress)
        {
            var styles = new List <KeyValuePair <string, string> >();

            styles.AddRange(GenericCssStyles.GetDefaultStyles());
            styles.AddRange(GenericCssStyles.GetSortingtimeLogoStyles());
            styles.AddRange(GetInvoiceHtmlStyles());

            return(await CreatePdfInvoiceHtml(translate, invoice, invoiceData, organizationLogo, organizationName, organizationAddress).ToHtmlStreamAddStyle(styles));
        }
Esempio n. 2
0
        public async static Task <MemoryStream> CreateReportStream(Translate translate, bool showGroupColl, string organizationLogo, string organizationName, string organizationAddress, string reportTitle, string reportSubTitle, string reportText, ReportApi report)
        {
            var styles = new List <KeyValuePair <string, string> >();

            styles.AddRange(GenericCssStyles.GetDefaultStyles());
            styles.AddRange(GenericCssStyles.GetSortingtimeLogoStyles());
            styles.AddRange(GetReportHtmlStyles());

            return(await CreatePdfReportHtml(translate, showGroupColl, organizationLogo, organizationName, organizationAddress, reportTitle, reportSubTitle, reportText, report).ToHtmlStreamAddStyle(styles));
        }