Modificare il file:
\Buoni-spesa-OLD\include\buono_models.asp
this.Header=function Header() { this.SetFont('Arial','B',15); this.Cell(80); this.Cell(30,10,'Title',1,0,'C'); this.Ln(20); } this.AcceptPageBreak = function AcceptPageBreak() { if(this.y0+this.rowheight>this.PageBreakTrigger) return true; var x; x=this.leftmargin; if(this.maxheight<this.PageBreakTrigger-this.y0) this.maxheight=this.PageBreakTrigger-this.y0; this.Rect(x,this.y0,this.colwidth["N_Buono"],this.maxheight); x+=this.colwidth["N_Buono"]; this.Rect(x,this.y0,this.colwidth["titolo"],this.maxheight); x+=this.colwidth["titolo"]; this.Rect(x,this.y0,this.colwidth["cognome_nome"],this.maxheight); x+=this.colwidth["cognome_nome"]; this.Rect(x,this.y0,this.colwidth["importo"],this.maxheight); x+=this.colwidth["importo"]; this.Rect(x,this.y0,this.colwidth["durata_num"],this.maxheight); x+=this.colwidth["durata_num"]; this.Rect(x,this.y0,this.colwidth["durata_let"],this.maxheight); x+=this.colwidth["durata_let"]; this.Rect(x,this.y0,this.colwidth["titolare"],this.maxheight); x+=this.colwidth["titolare"]; this.Rect(x,this.y0,this.colwidth["scade"],this.maxheight); x+=this.colwidth["scade"]; this.Rect(x,this.y0,this.colwidth["data_emissione"],this.maxheight); x+=this.colwidth["data_emissione"]; this.Rect(x,this.y0,this.colwidth["chiuso"],this.maxheight); x+=this.colwidth["chiuso"]; this.maxheight = this.rowheight; // draw frame return true; } this.Header=function Header() { this.SetFillColor(192); this.SetX(this.leftmargin); this.Cell(this.colwidth["N_Buono"],this.rowheight,"N_Buono",1,0,'C',1); this.Cell(this.colwidth["titolo"],this.rowheight,"titolo",1,0,'C',1); this.Cell(this.colwidth["cognome_nome"],this.rowheight,"cognome_nome",1,0,'C',1); this.Cell(this.colwidth["importo"],this.rowheight,"importo",1,0,'C',1); this.Cell(this.colwidth["durata_num"],this.rowheight,"durata_num",1,0,'C',1); this.Cell(this.colwidth["durata_let"],this.rowheight,"durata_let",1,0,'C',1); this.Cell(this.colwidth["titolare"],this.rowheight,"titolare",1,0,'C',1); this.Cell(this.colwidth["scade"],this.rowheight,"scade",1,0,'C',1); this.Cell(this.colwidth["data_emissione"],this.rowheight,"data_emissione",1,0,'C',1); this.Cell(this.colwidth["chiuso"],this.rowheight,"chiuso",1,0,'C',1); this.Ln(this.rowheight); this.y0=this.GetY(); } this.GetColWidth = function GetColWidth(name) { return this.colwidth[name]; } this.leftmargin=5; pagewidth=200; pageheight=290; this.rowheight=5; defwidth=pagewidth/10; this.colwidth=new Array(); this.colwidth["N_Buono"]=defwidth; this.colwidth["titolo"]=defwidth; this.colwidth["cognome_nome"]=defwidth; this.colwidth["importo"]=defwidth; this.colwidth["durata_num"]=defwidth; this.colwidth["durata_let"]=defwidth; this.colwidth["titolare"]=defwidth; this.colwidth["scade"]=defwidth; this.colwidth["data_emissione"]=defwidth; this.colwidth["chiuso"]=defwidth;
[
Íàçàä
]