Ejemplo n.º 1
0
 public cDataReport(string strCN)
 {
     rpt = new Report();
     rptPage = new Root.Reports.Page(rpt);
     fd = new FontDef(rpt, "Arial");
     sqlCn = new SqlConnection(strCN);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Procedimento que dispara a geração dos relatórios.
        /// </summary>
        private void GerarTermo()
        {
            Guid g;

            g = Guid.NewGuid();

            this.ReportCadastro = new Root.Reports.Report(new Root.Reports.PdfFormatter());

            this.FontDefin = new Root.Reports.FontDef(this.ReportCadastro, Root.Reports.FontDef.StandardFont.Helvetica);
            this.FontProp  = new Root.Reports.FontProp(this.FontDefin, 7);

            this.NovaPagina(0);

            this.EscreverTermo();

            //this.fileNamePDF = string.Format("TermoAdesao-{0}.pdf", this.GetIdCliente.ToString());
            this.fileNamePDF = g.ToString();

            if (this.SitemaOrigem == SistemaOrigem.Portal)
            {
                this.ReportCadastro.Save(string.Concat(this.GetEnderecoArquivoPortal, "\\", fileNamePDF));
            }
            else
            {
                this.ReportCadastro.Save(string.Concat(this.GetEnderecoArquivoIntranet, "\\", fileNamePDF));
            }
        }
Ejemplo n.º 3
0
 //----------------------------------------------------------------------------------------------------x
 /// <summary>Initializes a new pen properties object</summary>
 /// <param name="report">Report to which this pen belongs</param>
 /// <param name="rWidth">Width of the pen</param>
 /// <param name="color">Color of the pen</param>
 public PenProp(Report report, Double rWidth, Color color) : this(report, rWidth, color, 0, 0)
 {
 }
Ejemplo n.º 4
0
 //----------------------------------------------------------------------------------------------------x
 /// <summary>Initializes a new pen properties object</summary>
 /// <param name="report">Report to which this pen belongs</param>
 /// <param name="rWidth">Width of the pen</param>
 /// <param name="rPatternOn">Number of 1/72-units of the on-pattern</param>
 /// <param name="rPatternOff">Number of 1/72-units of the off-pattern</param>
 public PenProp(Report report, Double rWidth, Double rPatternOn, Double rPatternOff) : this(report, rWidth, Color.Black, rPatternOn, rPatternOff)
 {
 }
Ejemplo n.º 5
0
 //----------------------------------------------------------------------------------------------------x
 /// <summary>Initializes a new pen properties object</summary>
 /// <param name="report">Report to which this pen belongs</param>
 /// <param name="rWidth">Width of the pen</param>
 public PenProp(Report report, Double rWidth) : this(report, rWidth, Color.Black, 0, 0)
 {
 }
Ejemplo n.º 6
0
 //----------------------------------------------------------------------------------------------------x
 /// <summary>Initializes a new pen properties object</summary>
 /// <param name="report">Report to which this pen belongs</param>
 /// <param name="rWidthMM">Width of the pen in millimeter</param>
 public PenPropMM(Report report, Double rWidthMM) : this(report, rWidthMM, Color.Black, 0, 0)
 {
 }
Ejemplo n.º 7
0
 //----------------------------------------------------------------------------------------------------x
 /// <summary>Initializes a new pen properties object</summary>
 /// <param name="report">Report to which this pen belongs</param>
 /// <param name="rWidthMM">Width of the pen in millimeter</param>
 /// <param name="color">Color of the pen</param>
 /// <param name="rPatternOn">Number of 1/72-units of the on-pattern</param>
 /// <param name="rPatternOff">Number of 1/72-units of the off-pattern</param>
 public PenPropMM(Report report, Double rWidthMM, Color color, Double rPatternOn, Double rPatternOff) : base(report, RT.rPointFromMM(rWidthMM), color, rPatternOn, rPatternOff)
 {
 }