Arvisnet,
si es DBF ai te va: esta el Advanced DBF repair
salu2
paco
Paco
Arvisnet,
si es DBF ai te va: esta el Advanced DBF repair
salu2
paco
Manuel Valdenebro wrote:karinha wrote:
Necesito un ejemplo de como se imprime en esta impresora.
ELTRON TLP 2642.
Utilice esta impresora en un viejo programa en Clipper 5.3, para imprimir etiquetas con código de barras. Te envio las funciones que deberás adaptarlas a FiveWin:
***************************************
*** funciones para imprimir etiquetas
*** en impresora ELTRON / ZEBRA
***************************************
FUNC ETIQUETA(nRepe) // nRepe = numero de etiquetas a imprimir
TipImp = 'S'
LNarrow = IF ( TipImp = 'S', 2, 1 )
LWide = IF ( TipImp = 'S', 1, 2 )
WHILE !FT_ISPRINT(TRIM(impresor->CBARRAS)) .AND. SUBS(impresor->LISTADOS,1,1) # "C"
nLen := VALERT ("IMPRESORA DE ETIQUETAS;;NO PREPARADA.",{"Aceptar","Cancelar"},11)
IF nLen<>1
RETURN(0)
ENDI
ENDD
nLen = LEN(NOMBRE)
SET PRINTER TO (TRIM(impresor->CBARRAS)) // nombre impresora codigo barras
SET DEVI TO PRINT // impresora
FOR I = 1 TO nRepe
VACIA_ETI ()
TAMANO_ETI ()
** imprime_cod columna
** fila
** rotation 0 = no
** tipo BarCode (segun tabla) E30 = EAN 13
** LNarrow = anchura
** Lwide
** altura
** N
** Cod_bar = codigo de barra
IMPRIME_COD ( 155, 6, 0, 'E30', LNarrow, LWide, 50, 'N', Cod_Bar )
IMPRIME_TEXTO ( 305, 10, 0, 4, 1, 1, 'N', cPvP )
IMPRIME_TEXTO ( 390, 14, 0, 2, 1, 1, 'N', 'Eur' )
IMPRIME_TEXTO ( 325, 35, 0, 2, 1, 1, 'N', cCam )
IMPRIME_TEXTO ( 390, 35, 0, 2, 1, 1, 'N', 'Pts' )
IMPRIME_TEXTO ( 163, 60, 0, 2, 1, 1, 'N', LEFT ( Referencia, 9 ) )
IMPRIME_TEXTO ( 260, 60, 0, 2, 1, 1, 'N', STR ( Proveedor, 5 ) )
IMPRIME_TEXTO ( 310, 60, 0, 2, 1, 1, 'N', Ref_Pro )
IMPRIME_TEXTO ( 165, 85, 0, 2, 1, 1, 'N', LEFT ( Nombre, 30 ) )
@ PROW () , 0 say 'P1' + CHR (13) + CHR (10)
next
set printer to // (LPTX) impresora normal
set device to SCREEN // pantalla
SET CURSOR ON
Return(0)
func VACIA_ETI
@ PROW () , 0 say 'N' + CHR (13) + CHR (10)
return(0)
func TAMANO_ETI
Rel = IF ( TipImp = 'S', 11.5 / 8, 1 )
Largo = STR ( INT ( 240 * Rel ), 3 )
Sep = STR ( INT ( 24 * Rel ), 2 )
@ PROW () , 0 say 'Q' + Largo + ',' + Sep + CHR (13) + CHR (10)
return(0)
func IMPRIME_COD ( Col, Lin, Rot, CBar, Narrow, Ancho, Alto, Num, Codigo )
Rel = IF ( TipImp = 'S', 11.5 / 8, 1 )
@ PROW () , 0 say 'B' + CAM ( Col * Rel ) + ',' + ;
CAM ( Lin * Rel ) + ',' + ;
CAM ( Rot ) + ',' + ;
CBar + ',' + ;
CAM ( Narrow ) + ',' + ;
CAM ( 2 ) + ',' + ; && Ancho * Rel
CAM ( Alto * Rel ) + ',' + ;
Num + ',' + '"' + Codigo + '"' + CHR (13) + CHR (10)
return(0)
func IMPRIME_TEXTO ( Col, Lin, Rot, Fuente, MulCol, MulLin, Rev, Cadena )
Rel = IF ( TipImp = 'S', 11.5 / 8, 1 )
@ PROW () , 0 say 'A' + CAM ( Col * Rel ) + ',' + ;
CAM ( Lin * Rel ) + ',' + ;
CAM ( Rot ) + ',' + ;
CAM ( Fuente ) + ',' + ;
CAM ( MulCol ) + ',' + ;
CAM ( MulLin ) + ',' + ;
Rev + ',' + '"' + ;
Cadena + '"' + CHR (13) + CHR (10)
return(0)
func CAM (Num)
cxx=ALLTRIM ( STR ( Num, 10 ) )
return(cxx)
Rene, where i down funcky? this is free? thanks
Rick,
The fix is explained here:
http://forums.fivetechsoft.com/viewtopic.php?t=11385
Yes, you can easily implement it.
OK, I solved the problem by renaming the first two functions. It is unfortunate that FWH's functions don't support the same parameters.
Antonio, a possible solution might be to use Enrico's functions (with a different name) and then create a FWH functions just to change the order of the parameters and pass them on to Enrico's functions. This would prevent existing code from breaking and still allow us to use the extra parameters.
Of course, this assumes that Enrico will allow his functions to be used.
James
Pablo,
Aun no se ha decidido como lo vamos a hacer. Pero buscaremos la solución más ventajosa para todos ![]()
Hello,
I have 3 combo in a dialog .
When the user select a combo to view all the items and then press Esc,
all the dialog is closed and not only the combo list .
How to close only the combo List ??
REDEFINE COMBOBOX oCb8 VAR wG[36] ITEMS VPROBA ;
STYLE CBS_DROPDOWN ;
COLOR "B*/W+" ;
ID 131 OF oDlgrv


Lapsus: How do I recompile a C module with xH/Bcc5.5 (FWH 9.05) ?
Tnx,
Davide
// Testing Keyboard management
#include "FiveWin.ch"
//----------------------------------------------------------------------------//
function Main()
local oDlg
local oGet1, cFirst := "Hello "
local oGet2, cLast := "World "
DEFINE DIALOG oDlg TITLE "Function Keys for each GET"
@ 1, 1 GET oGet1 VAR cFirst SIZE 80, 12 OF oDlg
oGet1:bKeyDown = { | nKey | If( nKey == VK_F2, MsgInfo( "An action for GET 1" ), ) }
@ 2, 1 GET oGet2 VAR cLast SIZE 80, 12 OF oDlg
oGet2:bKeyDown = { | nKey | If( nKey == VK_F2, MsgInfo( "An action for GET 2" ), ) }
@ 3, 6 BUTTON "Ok" ACTION oDlg:End()
@ 3, 14 BUTTON "Cancel" ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTERED
return nil
//----------------------------------------------------------------------------//Maurizio,
If Marco had his app working fine with FWH 10.10 that would be a good starting point.
Could someone else report a FWH more recent version where this error does not happen ? thanks
Hi! The DATA ::cDevice in this class in fact doesnt exist. How can I get device name?
Function Authenticated(strUserID As String, strPassword As String, Optional strDNSDomain As String = "") As Boolean
If strDNSDomain = "" Then
Set objRootDSE = GetObject("LDAP://RootDSE")
strDNSDomain = objRootDSE.Get("defaultNamingContext")
End If
'Authenticate
Set dso = GetObject("LDAP:")
On Error Resume Next
Err.Clear
Set ou = dso.OpenDSObject("LDAP://" & strDNSDomain, strUserID, strPassword, 1)
Authenticated = (Err.Number = 0)
End Function