1 Pregunta
Con el PRG para esta variablaes
- Code: Select all Expand view
Static Function def_Varfastr(oFrP,DGRUPO,LMOD)
with object oFrP
:AddVariable( "EMPRESA", "NOMBRE", "'"+oApp:M_NOMEMP+"'" )
:AddVariable( "EMPRESA", "SINONIMO", "'"+oApp:MTITU2+"'" )
:AddVariable( "EMPRESA", "DIRECCION", "'"+oApp:M_DIREMP+"'" )
:AddVariable( "EMPRESA", "CIUDAD", "'"+oApp:M_CIUEMP+"'" )
:AddVariable( "EMPRESA", "DEPTO", "'"+oApp:M_DEPEMP+"'" )
:AddVariable( "EMPRESA", "NIT", "'" +oApp:M_NITEMP+oApp:M_NITEMP+"'" )
:AddVariable( "EMPRESA", "TELEFONOS", "'" + oApp:M_TELEMP + "'" )
:AddVariable( "EMPRESA", "FAX", "'" + oApp:M_FAXEMP + "'" )
:AddVariable( "EMPRESA", "CUENEMP", "'" + oApp:m_cueemp + "'" )
:AddVariable( "EMPRESA", "CTIPFAC", "'" + oApp:m_cueemp + "'" ) //para efectos de facturacion
:AddVariable( "EMPRESA", "WEBSITE", "'" + "www.por definir"+ "'" )
:AddVariable( "EMPRESA", "MAIL", "'" + "www.por definir"+ "'" )
:AddVariable( "EMPRESA", "PIEDEPAGINA", "Calle Busquela" + CRTLF + "www.por definir" )
:AddVariable( "EMPRESA", "NOM_PAQ","'" +oApp:MTITU1+"'" ) //x_TPAQU
:AddVariable( "EMPRESA", "COD_ROMP", DGRUPO )
:AddVariable( "EMPRESA", "COD_VAC", "'" + " "+ "'" )
:AddVariable( "EMPRESA", "MODUL", "'" +LMOD+"'" )
:AddVariable( "EMPRESA", "PAR_COND_1", "'" + oApp:M_NOTA_1 + "'" )
:AddVariable( "EMPRESA", "PAR_COND_2", "'" + oApp:M_NOTA_2 + "'" )
:AddVariable( "EMPRESA", "PAR_COND_3", "'" + oApp:M_NOTA_3 + "'" )
:AddVariable( "EMPRESA", "PAR_COND_4", "'" + oApp:M_NOTA_4 + "'" )
:AddVariable( "EMPRESA", "PAR_COND_5", "'" + oApp:M_NOTA_5 + "'" )
:AddVariable( "EMPRESA", "PIE_DOC_1", "'" + oApp:m_npiep_1 + "'" )
:AddVariable( "EMPRESA", "PIE_DOC_2", "'" + oApp:m_npiep_2 + "'" )
:AddVariable( "EMPRESA", "PIE_DOC_3", "'" + oApp:m_npiep_3 + "'" )
:AddVariable( "EMPRESA", "PIE_DOC_4", "'" + oApp:m_npiep_4 + "'" )
:AddVariable( "EMPRESA", "PIE_DOC_5", "'" + oApp:m_npiep_5 + "'" )
:AddVariable( "EMPRESA", "PIE_DOC_6", "'" + oApp:m_npiep_6 + "'" )
:AddVariable( "EMPRESA", "CAR_IMAGEN", IF(oApp:MLOGO,1,0) ) //oApp:CAR_IMAG
:AddVariable( "EMPRESA", "Imagen", "'"+img+"'" )
cuando estoy con el designer.
nesecito cambiar el valor de una variable
CTIPFAC --> esta es la variable necesito que tome el valor deacuerdo a una condicion
IIF(<oDatos."TIPFAC">="DR","FACTURA DE VENTA NO:","NOTA CREDITO NO")
como lo haria.
2 Pregunta
cuando la factura es mas de una pagina requiero que la banda ColumnFooter1 solamente se imprima cuand hacga el romopimiento y no cada vez que salte pagina en este caso cuando la factura consta de varias paginas debe colocar al final el total de la factura, si es de una sola pagina funciona bien .
Lo mismo la pagina Pagefooter solamente cuando haga el rompimiento por numero de factura se debe imprimir y no cada salto de pagina y inicializar el contador de pagina en 1
La Banda GrupHeader se imprima al saltar pagina cuando la factura tiene mas de una pagina
No se si estoy manejando bien las bandas.
Anexo Ejemplo de las patallas y el formato
http://www.4shared.com/file/m45yz1NJ/PXP407_1.html
http://www.4shared.com/photo/MDVRjNS_/Factura_2.html
http://www.4shared.com/photo/wVze9XIS/Factura_1.html
http://www.4shared.com/photo/R7JNhGlp/FORMATO.html
http://www.4shared.com/photo/cKq6mpqa/FORMATO_1.html