示例#1
0
 public cDataReport(string strCN)
 {
     rpt = new Report();
     rptPage = new Root.Reports.Page(rpt);
     fd = new FontDef(rpt, "Arial");
     sqlCn = new SqlConnection(strCN);
 }
示例#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));
            }
        }
示例#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)
 {
 }
示例#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)
 {
 }
示例#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)
 {
 }
示例#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)
 {
 }
示例#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)
 {
 }