Page 1 of 1

Imprimare factura model H, dar cu format fix (pagina plina)

Posted: 26 May 2014, 06:37
by arpad.mezei
Imprimare factura model H, dar cu format fix (pagina plina)


In modul standard de implementare, modelul H al facturii se listeaza cu format variabil, in functie de numarul de linii de pe factura.
In aceasta varianta, MODEL / Formular arata astfel:

Code: Select all

#RIND 4                                                
║{N}│{SpecificatieMarfa                 }│{U}│{Cant  }│{PuLiv   }│{Val     }│{ValTva  }║
...
#SFIRSIT 10
...
Rezolvarea imprimarii cu format fix (formular care umple toata pagina A4, indiferent de cite linii are factura) este:
- Adaugarea in MODEL / Formule:

Code: Select all

//                               xF_6 reprezinta lungimea sectiunii #SFIRSIT
AvansPg            ; Salt la sf. pg.  ; (xF_6 := 11),
                                        (xF_7 := FCall[6]-xF_6-FCall[3]+1),
                                        IF(xF_7>0, REPLICATE(SPACE(9), xF_7+1), "")
                                                      ; C9;; ""
- iar in MODEL / Formular:

Code: Select all

#RIND 4                                                
║{N}│{SpecificatieMarfa                 }│{U}│{Cant  }│{PuLiv   }│{Val     }│{ValTva  }║
...
#SFIRSIT 11
║   │{AvansPg}                           │   │        │          │          │          ║
.
...