Пример #1
0
 override protected void OnLoad(EventArgs ea)
 {
     base.OnLoad(ea);
     if (!IsPostBack)
     {
         PdfReport <ImageSample> pdfReport = new PdfReport <ImageSample>();
         pdfReport.pageLayout = PageLayout.TwoPageLeft;
         pdfReport.Response(this);
     }
 }
        public void CarregarPagina()
        {

            if (Request.QueryString["tipo"] == "RelAssistidos")
            {
                PdfReport<AssistidoRelatorio> pdfReport = new PdfReport<AssistidoRelatorio>();
                pdfReport.pageLayout = PageLayout.SinglePage;
                pdfReport.Response(this);
            }
            else if (Request.QueryString["tipo"] == "RelFinancas")
            {
                PdfReport<FinancasRelatorio> pdfReport = new PdfReport<FinancasRelatorio>();
                pdfReport.pageLayout = PageLayout.SinglePage;
                pdfReport.Response(this);
            }
            else if (Request.QueryString["tipo"] == "RelOrcamento")
            {
                PdfReport<OrcamentoRelatorio> pdfReport = new PdfReport<OrcamentoRelatorio>();
                pdfReport.pageLayout = PageLayout.SinglePage;
                pdfReport.Response(this);
            }
        }