Tema: Pdf Y Asp
Ver Mensaje Individual
  #7 (permalink)  
Antiguo 04/05/2005, 03:24
Yentin
 
Fecha de Ingreso: noviembre-2004
Mensajes: 20
Antigüedad: 20 años, 6 meses
Puntos: 0
a ver ese ejemplo ma o menos, tengo un asp en el ke por ejemplo tengo esto

Código:
<%@language=javascript%>
<!-- #include file="./fpdf.asp "-->
<% 
pdf=new FPDF();
pdf.Table=function Table(data)   
{
    //Colores, ancho de línea y fuente en negrita
    var i=0;
	this.SetFillColor(0,0,0);
    this.SetTextColor(0,0,0);
    this.SetDrawColor(0,0,0);
    this.SetLineWidth(0.3);
    this.SetFont('Arial','B','10');
    w=Array(75,100);
    //Datos
    this.Cell(w[i],4,data[i],'B',0,'L',255);
    this.Cell(w[i+1],4,data[i+1],'B',0,'R',255);
	this.Ln();
	this.Ln();

}
esto es una estructura ke monta 1 celda del tamaño de array con dos columnas.
luego el codigo ke me genera la pagina seria este.

Código:
<!--#include file="include/tablas.asp"-->
<!--#include file="include/fpdf.asp"-->
<%
data[0]="Capacitat Lectiva Potencial (CLP):   "+clp;
data[1]="Capacitat Lectiva Efectiva (CLE):   "+cle;
pdf.Table(data);
ahi lo llamo, es decir to lo ke kiero ke me printe el pdf lo meto en un array en este caso data y llama a la funcion table ke me printa esto. Digamos ke lo ke creas es una plantilla pa printar lo ke le pasas como parametro.

Consejo, no pongas ningun tag de HTML o el explorer puede no abrirtelo.