Criar uma pagina simples em documento PDF?
18/05/2007
0
Pessoal, este fonte e simples mais simples impossivel mas nao estou conseguindo identificar o problema.
O fato é que eu nao consigo gerar uma pagina incial ja em Vb.net tudo vai bem em CSharp nao.
Por favor peco auxilio urgente.
vai o fonte:
*********
using System;
using System.Collections.Generic;
using System.Text;
using Root.Reports;
using System.Drawing;
namespace remodelo
{
public class Class1 : Root.Reports.Report
{
public static void Main()
{
Root.Reports.Report Class1 = new Root.Reports.Report();
}
public Class1(string sTexto)
{
_Stexto = sTexto;
Root.Reports.Report relatorioPDF = new Report(new PdfFormatter());
System.Drawing.Font fontTitle = new System.Drawing.Font(´Times New Roman´, 30, System.Drawing.FontStyle.Bold);
Root.Reports.FontDef fd = new Root.Reports.FontDef(this, FontDef.StandardFont.Helvetica);
Root.Reports.FontProp fp = new Root.Reports.FontPropMM(fd, 20);
/* Gerar a pagina ma nao esta ocorrendo */
new Page(relatorioPDF );
/* Gerar a pagina ma nao esta ocorrendo */
page_Cur.AddCB_MM(12, new RepString(fp, Stexto));
fp.rSizeMM = 10;
page_Cur.AddCB_MM(14, new Root.Reports.RepString(fp, ´teste´));
relatorioPDF.Save(´arquivo.pdf´);
}
private string _Stexto;
public string Stexto
{
get { return _Stexto; }
set { _Stexto = value; }
}
}
}
O fato é que eu nao consigo gerar uma pagina incial ja em Vb.net tudo vai bem em CSharp nao.
Por favor peco auxilio urgente.
vai o fonte:
*********
using System;
using System.Collections.Generic;
using System.Text;
using Root.Reports;
using System.Drawing;
namespace remodelo
{
public class Class1 : Root.Reports.Report
{
public static void Main()
{
Root.Reports.Report Class1 = new Root.Reports.Report();
}
public Class1(string sTexto)
{
_Stexto = sTexto;
Root.Reports.Report relatorioPDF = new Report(new PdfFormatter());
System.Drawing.Font fontTitle = new System.Drawing.Font(´Times New Roman´, 30, System.Drawing.FontStyle.Bold);
Root.Reports.FontDef fd = new Root.Reports.FontDef(this, FontDef.StandardFont.Helvetica);
Root.Reports.FontProp fp = new Root.Reports.FontPropMM(fd, 20);
/* Gerar a pagina ma nao esta ocorrendo */
new Page(relatorioPDF );
/* Gerar a pagina ma nao esta ocorrendo */
page_Cur.AddCB_MM(12, new RepString(fp, Stexto));
fp.rSizeMM = 10;
page_Cur.AddCB_MM(14, new Root.Reports.RepString(fp, ´teste´));
relatorioPDF.Save(´arquivo.pdf´);
}
private string _Stexto;
public string Stexto
{
get { return _Stexto; }
set { _Stexto = value; }
}
}
}
Ecfrs12
Curtir tópico
+ 0
Responder
Clique aqui para fazer login e interagir na Comunidade :)