Exemple #1
0
        // GET: Relatorio/Lucros
        public void Lucros()
        {
            string titulo = "Relatório de Lucros de Locações";

            string conteudo =
                "<table class='table' cellspacing='5' width='100%'>" +
                "   <tr>" +
                "       <td><img src='" + diretorioImagens + "logo-report.png' height='85' width='180' /></td>" +
                "       <td><h1>Relatório de Lucros de Locações</h1></td>" +
                "   </tr>" +
                "</table>" +
                "<br/>" +
                "<div style='margin-left:5%;>" +
                "<h2>Lucros gerados: R$ " + @String.Format("{0:n}", _locacaoDao.Lucros()) + "</h2>" +
                "</div>" +
                "<p align='center'>Livraria Asp.Net-MVC5 - " + DateTime.Now.ToString() + "</p>";

            GerarPDF(conteudo, titulo);
        }