messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2022-08-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigo Francisco.\n\nMil disculpas, tienes toda la razón.\n\nSolo que mi equipo me con Windows 10, me estaba jugando una mala jugada, tenia muchos días sin resetearlo y muchas cosas y programas abiertos.\n\nLo apague y lo encendí y todo funciono, ya que primero lo decidí probarlo en un pc con Windows 7 y funciono perfecto.\n\nAhora lo incorporo a mi aplicación y listo.\n\nMil gracias y mil disculpas.\n\nSaludos.\n\nAntonio.", "time": "18:35", "topic": "Ayuda con 2 Combobox ???", "username": "remtec" } ]
Ayuda con 2 Combobox ???
[ { "date": "2022-08-16", "forum": "FiveWin para Harbour/xHarbour", "text": "muy bien !", "time": "06:54", "topic": "Ayuda con 2 Combobox ???", "username": "Antonio Linares" } ]
Ayuda con 2 Combobox ???
[ { "date": "2022-08-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Maestro Antonio.\n\nMuy buen dia.\n\nDisculpe todas las molestias.\n\nMuy agradecido por su tiempo, ayuda y preocupacion.\n\nTengo la mala costumbre de no apagar mi equipo despues que termino de trabajar, por las ventanas con informacion importante de trabajo, eso me ahorra tiempo, pero finalmente me juega mas jugadas como en esta ocacion.\n\nMuchas gracias.\n\nSaludos\n\nAntonio.", "time": "14:27", "topic": "Ayuda con 2 Combobox ???", "username": "remtec" } ]
Ayuda con 2 Combobox ???
[ { "date": "2022-08-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Un Poquito tarde, pero quizas alguien le pueda servir aqui es la funcion que regresa un arreglo de la forma\n{ \"Abarrotes, \"Carnes frias\", \"Etc\" }\nó\n{ \"<01> Abarrotes\", \"<02>Carnes frias\", \"<03> Etc\" }\n\n[code=fw:1jgn90uq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />  cSQLQuery:= <span style=\"color: #ff0000;\">\"SELECT id_grupo,descripcion FROM cat_grupos\"</span><br />  aGrupos:= oMySQLMain:<span style=\"color: #000000;\">QueryArray</span><span style=\"color: #000000;\">&#40;</span>cSQLQuery<span style=\"color: #000000;\">&#41;</span><br />  WITH OBJECT ::<span style=\"color: #000000;\">oCbxGrupos</span><br />       :<span style=\"color: #000000;\">aItems</span>:= ArrayCol<span style=\"color: #000000;\">&#40;</span> aGrupos, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />  END WITH<br /><br /><span style=\"color: #B900B9;\">/*-----------------------------------------------------------------------------------------------*/</span><br /><span style=\"color: #00C800;\">FUNCTION</span> ArrayCol<span style=\"color: #000000;\">&#40;</span> aData, nCol, nCol2 <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">/*-----------------------------------------------------------------------------------------------*/</span><br />  <span style=\"color: #00C800;\">LOCAL</span> aCol := Array<span style=\"color: #000000;\">&#40;</span> Len<span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />  <span style=\"color: #00C800;\">IF</span> nCol == <span style=\"color: #00C800;\">NIL</span><br />     nCol:= <span style=\"color: #000000;\">1</span><br />  <span style=\"color: #00C800;\">ENDIF</span><br />  <span style=\"color: #00C800;\">IF</span> nCol2!=<span style=\"color: #00C800;\">NIL</span><br />     Aeval<span style=\"color: #000000;\">&#40;</span> aData, <span style=\"color: #000000;\">&#123;</span>|v,e| aCol<span style=\"color: #000000;\">&#91;</span> e <span style=\"color: #000000;\">&#93;</span> := +<span style=\"color: #ff0000;\">\"<\"</span>+AllTrim<span style=\"color: #000000;\">&#40;</span>v<span style=\"color: #000000;\">&#91;</span> nCol <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\"> \"</span>+AllTrim<span style=\"color: #000000;\">&#40;</span>aData<span style=\"color: #000000;\">&#91;</span> e,nCol2 <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">ELSE</span><br />     Aeval<span style=\"color: #000000;\">&#40;</span> aData, <span style=\"color: #000000;\">&#123;</span>|v,e| aCol<span style=\"color: #000000;\">&#91;</span> e <span style=\"color: #000000;\">&#93;</span> := AllTrim<span style=\"color: #000000;\">&#40;</span>v<span style=\"color: #000000;\">&#91;</span> nCol <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">ENDIF</span>  <br />  <span style=\"color: #00C800;\">RETURN</span> aCol<br /><br /> </div>[/code:1jgn90uq]\nSaludo!", "time": "03:40", "topic": "Ayuda con 2 Combobox ???", "username": "gabo" } ]
Ayuda con 2 Combobox ???
[ { "date": "2007-09-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Foro:\nTengo el siguiente problema:\n\n1. Como puedo declarar la Ace32.dll y otras DLL en una aplicacion de 32 bits, ya que verce me dice que no puede abrir esta dll.\n\n2. En 16 bits yo podia consultar si en el disco duro existia un archivo de la siguiente forma:\n var= \"Maestro\" (Nombre de la base de datos)\n If File(\"&var..dbf\")\n .... Abrir archivo\n If File(\"&Var..cdx\")\n ... Abrir archivo indice\n endif\n endif\n . Mi pregunta es como puedo hacer los mismo en Xharbour y Fwh701\n\n\nSaludos,\nAntonio", "time": "01:54", "topic": "Ayuda con 32 bits Urgente", "username": "mantonio_08" } ]
Ayuda con 32 bits Urgente
[ { "date": "2007-09-06", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"mantonio_08\":1j3zj8rj]\n1. Como puedo declarar la Ace32.dll y otras DLL en una aplicacion de 32 bits, ya que verce me dice que no puede abrir esta dll.\n[/quote:1j3zj8rj]\n\nNo lo necesitas a menos que estes usando el Advantage Database Server, si no estas usando ADS, entonces quitalo de las opciones de enlazado del VerCE, y por cierto, no es el ACE32.DLL , es el ACE32.LIB\n\nAhora bien, si estas usando Advantage, el ACE32.LIB proviene del ACE32.DLL\n\n1) Consigue un ACE32.DLL de la version de ADS que estés usando (lo encuentras en la carpeta del Advantage Data ARchitech)\n\n2) Con el Implib de borland crea la libreria\n\nIMPLIB ACE32.LIB ACE32.DLL\n\nY listo\n\n[quote=\"mantonio_08\":1j3zj8rj]\n2. En 16 bits yo podia consultar si en el disco duro existia un archivo de la siguiente forma:\n var= \"Maestro\" (Nombre de la base de datos)\n If File(\"&var..dbf\")\n .... Abrir archivo\n If File(\"&Var..cdx\")\n ... Abrir archivo indice\n endif\n endif\n[/quote:1j3zj8rj]\n\nEn teoría si pero estas matando pulgas a cañonazos, no necesitas usar macros para la funcion FILE:\n\n[code:1j3zj8rj]var &#58;= \"Maestro\"\nIF File&#40;var+\"&#46;dbf\"&#41;\n&#46;&#46;&#46;\n&#46;&#46;&#46;\n&#46;&#46;&#46;\n[/code:1j3zj8rj]\nComo verás el uso de las macros con cadenas de caracteres que estas usando es redundante.", "time": "05:37", "topic": "Ayuda con 32 bits Urgente", "username": "R.F." } ]
Ayuda con 32 bits Urgente
[ { "date": "2007-09-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Rene:\n\nMuchas gracias por tu respuesta, me queda muy clara tu explicacion.\n\nSaludos,\nAntonio\n\n\n[quote=\"RF\":5mmt29kd][quote=\"mantonio_08\":5mmt29kd]\n1. Como puedo declarar la Ace32.dll y otras DLL en una aplicacion de 32 bits, ya que verce me dice que no puede abrir esta dll.\n[/quote:5mmt29kd]\n\nNo lo necesitas a menos que estes usando el Advantage Database Server, si no estas usando ADS, entonces quitalo de las opciones de enlazado del VerCE, y por cierto, no es el ACE32.DLL , es el ACE32.LIB\n\nAhora bien, si estas usando Advantage, el ACE32.LIB proviene del ACE32.DLL\n\n1) Consigue un ACE32.DLL de la version de ADS que estés usando (lo encuentras en la carpeta del Advantage Data ARchitech)\n\n2) Con el Implib de borland crea la libreria\n\nIMPLIB ACE32.LIB ACE32.DLL\n\nY listo\n\n[quote=\"mantonio_08\":5mmt29kd]\n2. En 16 bits yo podia consultar si en el disco duro existia un archivo de la siguiente forma:\n var= \"Maestro\" (Nombre de la base de datos)\n If File(\"&var..dbf\")\n .... Abrir archivo\n If File(\"&Var..cdx\")\n ... Abrir archivo indice\n endif\n endif\n[/quote:5mmt29kd]\n\nEn teoría si pero estas matando pulgas a cañonazos, no necesitas usar macros para la funcion FILE:\n\n[code:5mmt29kd]var &#58;= \"Maestro\"\nIF File&#40;var+\"&#46;dbf\"&#41;\n&#46;&#46;&#46;\n&#46;&#46;&#46;\n&#46;&#46;&#46;\n[/code:5mmt29kd]\nComo verás el uso de las macros con cadenas de caracteres que estas usando es redundante.[/quote:5mmt29kd]", "time": "15:28", "topic": "Ayuda con 32 bits Urgente", "username": "mantonio_08" } ]
Ayuda con 32 bits Urgente
[ { "date": "2020-02-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos al Forum\nTengo este codigo como hago para que me tome los valores de STATE diferentes deacuerdo a la opcion\n\nCaso 1\nNo lo toma el valor toma el ultimo nCont\n\n[code=fw:25dwiblj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />nBtn := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">FOR</span> nCont = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> Len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">acButtons</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ pos, iif<span style=\"color: #000000;\">&#40;</span> nCont == <span style=\"color: #000000;\">1</span>, cpos<span style=\"color: #000000;\">+2</span>, Col<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>+ <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">GET</span> lPrimero PUSHBUTTON;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CAPTION ::<span style=\"color: #000000;\">acButtons</span><span style=\"color: #000000;\">&#91;</span> nCont,<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span> STATE &nbsp;<span style=\"color: #000000;\">&#123;</span> || nBtn := IsPressed1<span style=\"color: #000000;\">&#40;</span>nCont<span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #000000;\">&#125;</span> ; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MESSAGE</span> ::<span style=\"color: #000000;\">acButtons</span><span style=\"color: #000000;\">&#91;</span> nCont,<span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">jlopm1</span>,::<span style=\"color: #000000;\">cBtnClr</span>,::<span style=\"color: #000000;\">cBtnCl1</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span> &nbsp;<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">FUNCTION</span> IsPressed1<span style=\"color: #000000;\">&#40;</span> nButton <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> GetActive<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">control</span>:<span style=\"color: #000000;\">buffer</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ReadKill<span style=\"color: #000000;\">&#40;</span> .T. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nButton := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> nButton<br /><br />&nbsp;</div>[/code:25dwiblj]\n\nCaso 2, tampoco lo ejecuta, el valor del cComExec puede tomar diferentes valores\n\n[code=fw:25dwiblj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; cComExec := <span style=\"color: #000000;\">&#123;</span> || ::<span style=\"color: #000000;\">reg_nav0001</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"X0\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <br />&nbsp; &nbsp; <span style=\"color: #00C800;\">FOR</span> nCont = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> Len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">acButtons</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ pos, iif<span style=\"color: #000000;\">&#40;</span> nCont == <span style=\"color: #000000;\">1</span>, cpos<span style=\"color: #000000;\">+2</span>, Col<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>+ <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">GET</span> lPrimero PUSHBUTTON;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CAPTION ::<span style=\"color: #000000;\">acButtons</span><span style=\"color: #000000;\">&#91;</span> nCont,<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span> STATE &nbsp;<span style=\"color: #000000;\">&#123;</span> ||cComExec &nbsp;<span style=\"color: #000000;\">&#125;</span> ; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MESSAGE</span> ::<span style=\"color: #000000;\">acButtons</span><span style=\"color: #000000;\">&#91;</span> nCont,<span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">jlopm1</span>,::<span style=\"color: #000000;\">cBtnClr</span>,::<span style=\"color: #000000;\">cBtnCl1</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span> &nbsp;<br /><br />&nbsp;</div>[/code:25dwiblj]\n\nNinguna de los dos casos funciona.\nAlgquien del forum tiene una solucion.", "time": "17:12", "topic": "Ayuda con @ PUSHBUTTON", "username": "ruben Dario" } ]
Ayuda con @ PUSHBUTTON
[ { "date": "2020-02-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas tardes\n\nPara un asunto similar, poner un bAction a unos botones variables, lo solucioné pasando como referencia NO el valor de nCount, pues va cambiando, sino haciendo un codeblock por código .\n\nCreo recordar que era la solución propuesta por Cristóbal (ese genio ¡¡¡¡¡ )\n\nFunction HazBlock( x )\nReturn &(\"{ || Pon(\" +LTrim(Str(x))+\" ) }\" )\n\nEso si, la function Pon()…… puedes llamarla como quieras, no puede ser una función STATIC. En ese caso no funciona,\n\nEspero te ayude.\n\nNota : Básicamente, que me rectifiquen los que saben, es que uno se compila ( y te retorna el ultimo valor) y el otro se aplica en tiempo de ejecución (independientemente del valor de la variable, en tu caso nCount)", "time": "20:16", "topic": "Ayuda con @ PUSHBUTTON", "username": "JESUS MARIN" } ]
Ayuda con @ PUSHBUTTON
[ { "date": "2020-02-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Por tu informacion.\n\nTampoco funciona", "time": "15:59", "topic": "Ayuda con @ PUSHBUTTON", "username": "ruben Dario" } ]
Ayuda con @ PUSHBUTTON
[ { "date": "2020-02-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Prueba usando detached locals.\n\n[url]\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=38345&p=228917&hilit=detached#p228917\">viewtopic.php?f=3&t=38345&p=228917&hilit=detached#p228917</a><!-- l -->\n[/url]", "time": "14:06", "topic": "Ayuda con @ PUSHBUTTON", "username": "albeiroval" } ]
Ayuda con @ PUSHBUTTON
[ { "date": "2014-04-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados,\n\nEstoy queriendo ejecutar un comando SQL en ADO y me da el error:\n\nError adodb.command/6 DISP_E_UNKNOWNNAME: EXECUTE\n\nmuchas gracias de antemano!!\n\n\nFUNCTION EJECUTA()\nLOCAL oConexionAdo := TOLEAUTO():New(\"adodb.connection\")\nLOCAL oComando := TOLEAUTO():New(\"adodb.command\")\nLOCAL oRecordset\noConexionAdo:Open(\"Driver={MySQL ODBC 3.51 Driver};Server=\"+ALLTRIM(cHost)+\";Port=3306;Database=\"+ALLTRIM(cDataBase)+\";User=\"+ALLTRIM(cUser)+\"; Password=\"+ALLTRIM(cPassword)+\";Option=3;\")\noComando:ActiveConnection(oConexionAdo)\noComando:CommandText := \"SELECT * from AFP\"\noRecordSet := oComando:Execute() <------- Aqui me da el error\n? oRecordSet\nreturn nil", "time": "00:37", "topic": "Ayuda con ADO", "username": "lafug" } ]
Ayuda con ADO
[ { "date": "2014-04-30", "forum": "FiveWin para Harbour/xHarbour", "text": "lafug, tente desta forma:\n\n\n[code=fw:xiskxhfb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> EJECUTA<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oConexionAdo := CreateObject<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ADODB.Connection\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oRecordSet := CreateObject<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ADODB.Recordset\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> cSQL := <span style=\"color: #ff0000;\">\"SELECT * from AFP\"</span><br /><br />oConexionAdo:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Driver={MySQL ODBC 3.51 Driver};Server=\"</span>+ALLTRIM<span style=\"color: #000000;\">&#40;</span>cHost<span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\";Port=3306;Database=\"</span>+ALLTRIM<span style=\"color: #000000;\">&#40;</span>cDataBase<span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\";User=\"</span>+ALLTRIM<span style=\"color: #000000;\">&#40;</span>cUser<span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\"; Password=\"</span>+ALLTRIM<span style=\"color: #000000;\">&#40;</span>cPassword<span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\";Option=3;\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />oRecordSet:<span style=\"color: #000000;\">CursorLocation</span> := <span style=\"color: #000000;\">3</span> &nbsp;<span style=\"color: #B900B9;\">// adUseClient</span><br />oRecordSet:<span style=\"color: #000000;\">CursorType</span> := <span style=\"color: #000000;\">3</span> <span style=\"color: #B900B9;\">// adOpenStatic</span><br />oRecordSet:<span style=\"color: #000000;\">ActiveConnection</span>:= oConexionAdo<br />oRecordSet:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span>cSQL<span style=\"color: #000000;\">&#41;</span><br /><br />oRecordSet -> Use o record set da forma que desejar<br /><br /><span style=\"color: #00C800;\">Return</span><br />&nbsp;</div>[/code:xiskxhfb]", "time": "20:58", "topic": "Ayuda con ADO", "username": "digordo" } ]
Ayuda con ADO
[ { "date": "2014-05-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Obrigado Digordo!!\nSua dica funcionó", "time": "18:06", "topic": "Ayuda con ADO", "username": "lafug" } ]
Ayuda con ADO
[ { "date": "2013-08-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas noches.\n\n Estoy tratando de armar un comando para ADODB, con el siguiente código:\n[code=fw:29ywm6x0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oCmd:=TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADODB.Command\"</span> <span style=\"color: #000000;\">&#41;</span><br />      oCmd:<span style=\"color: #000000;\">ActiveConnection</span>:=oContable:<span style=\"color: #000000;\">oConn</span><br />      oCmd:<span style=\"color: #000000;\">CommandType</span>:=adCmdStoredProc<br />      oCmd:<span style=\"color: #000000;\">CommandText</span>:=<span style=\"color: #ff0000;\">\"sp_CONTABLE_UPDATE\"</span>  <span style=\"color: #B900B9;\">// Strored Procedure Name</span><br /><br />      <span style=\"color: #B900B9;\">//Se Crean los parametros antes de ser enviados al Stored Procedure</span><br />      oParam := oCmd:<span style=\"color: #000000;\">CreateParameter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gsid\"</span>, adChar, adParamInput <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">//Columna para el \"update ..... where id = ....</span><br />      oCmd:<span style=\"color: #000000;\">Parameters</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> oParam <span style=\"color: #000000;\">&#41;</span>   ----------------------------------------------------------------------------------------------------->>> AQUI ME DA EL ERROR<br />      oParam := oCmd:<span style=\"color: #000000;\">CreateParameter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gsfechafin\"</span>, adDate, adParamInput <span style=\"color: #000000;\">&#41;</span><br />      oCmd:<span style=\"color: #000000;\">Parameters</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> oParam <span style=\"color: #000000;\">&#41;</span><br />      oParam := oCmd:<span style=\"color: #000000;\">CreateParameter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gshorafin\"</span>, adChar, adParamInput <span style=\"color: #000000;\">&#41;</span><br />      oCmd:<span style=\"color: #000000;\">Parameters</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> oParam <span style=\"color: #000000;\">&#41;</span><br />      oParam := oCmd:<span style=\"color: #000000;\">CreateParameter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gsatendidos\"</span>, adInteger, adParamInput <span style=\"color: #000000;\">&#41;</span><br />      oCmd:<span style=\"color: #000000;\">Parameters</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> oParam <span style=\"color: #000000;\">&#41;</span><br />      oParam := oCmd:<span style=\"color: #000000;\">CreateParameter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gscefectivo\"</span>, adInteger, adParamInput <span style=\"color: #000000;\">&#41;</span><br />      oCmd:<span style=\"color: #000000;\">Parameters</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> oParam <span style=\"color: #000000;\">&#41;</span><br />      oParam := oCmd:<span style=\"color: #000000;\">CreateParameter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gsefectivo\"</span>, adDecimal, adParamInput <span style=\"color: #000000;\">&#41;</span><br />      oCmd:<span style=\"color: #000000;\">Parameters</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> oParam <span style=\"color: #000000;\">&#41;</span><br />      oParam := oCmd:<span style=\"color: #000000;\">CreateParameter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gsccredito\"</span>, adInteger, adParamInput <span style=\"color: #000000;\">&#41;</span><br />      oCmd:<span style=\"color: #000000;\">Parameters</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> oParam <span style=\"color: #000000;\">&#41;</span><br />      oParam := oCmd:<span style=\"color: #000000;\">CreateParameter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gscredito\"</span>, adDecimal, adParamInput <span style=\"color: #000000;\">&#41;</span><br />      oCmd:<span style=\"color: #000000;\">Parameters</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> oParam <span style=\"color: #000000;\">&#41;</span><br />      oParam := oCmd:<span style=\"color: #000000;\">CreateParameter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gsctarjeta\"</span>, adInteger, adParamInput <span style=\"color: #000000;\">&#41;</span><br />      oCmd:<span style=\"color: #000000;\">Parameters</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> oParam <span style=\"color: #000000;\">&#41;</span><br />      oParam := oCmd:<span style=\"color: #000000;\">CreateParameter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gstarjeta\"</span>, adDecimal, adParamInput <span style=\"color: #000000;\">&#41;</span><br />      oCmd:<span style=\"color: #000000;\">Parameters</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> oParam <span style=\"color: #000000;\">&#41;</span></div>[/code:29ywm6x0]\n\n\n y obtengo el siguiente error:\n\n Time from start: 0 hours 1 mins 44 secs \n Error occurred at: 31/07/2013, 19:00:59\n Error description: Error ADODB.Command:PARAMETERS/14 DISP_E_BADPARAMCOUNT: APPEND\n Args:\n [ 1] = O ADODB.Command:CREATEPARAMETER\n\nStack Calls\n===========\n Called from: source\\rtl\\win32ole.prg => TOLEAUTO:APPEND( 0 )\n Called from: Source\\PdeVenta.prg => FINVENTA( 669 )\n\nEspero que alguien me pueda ayudar.\nGracias.", "time": "01:18", "topic": "Ayuda con ADODB", "username": "ricardog" } ]
Ayuda con ADODB
[ { "date": "2013-08-01", "forum": "FiveWin para Harbour/xHarbour", "text": "For adChar and adVarChar you need to specify the Size as the 4th param.\noParam := oCmd:CreateParameter( \"gsid\", adChar, adParamInput, nSize )\n\nFor adNumeric or adDecimal, you have set Precision and NumericScale properties of the Paramter object before appending.", "time": "11:20", "topic": "Ayuda con ADODB", "username": "nageswaragunupudi" } ]
Ayuda con ADODB
[ { "date": "2013-08-01", "forum": "FiveWin para Harbour/xHarbour", "text": "nageswaragunupudi\n\nthanks for the help, now presents the following error\nwhen executing the command.\n\n[code=fw:3cpmtbyw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">TRY</span><br />          oCmd:<span style=\"color: #000000;\">Parameters</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gsid\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span>        := StrZero<span style=\"color: #000000;\">&#40;</span> oCaja:<span style=\"color: #0000ff;\">id</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> + DToS<span style=\"color: #000000;\">&#40;</span> Date<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + StrZero<span style=\"color: #000000;\">&#40;</span> oSys:<span style=\"color: #000000;\">nUsuario</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span><br />          oCmd:<span style=\"color: #000000;\">Parameters</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gsfechafin\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span>  := StrTran<span style=\"color: #000000;\">&#40;</span> DToC<span style=\"color: #000000;\">&#40;</span> Date<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"/\"</span>,<span style=\"color: #ff0000;\">\"-\"</span><span style=\"color: #000000;\">&#41;</span><br />          oCmd:<span style=\"color: #000000;\">Parameters</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gshorafin\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span>   := <span style=\"color: #ff0000;\">\"'\"</span>+Time<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\"'\"</span><br />          oCmd:<span style=\"color: #000000;\">Parameters</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gsatendidos\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #000000;\">1</span><br />          <span style=\"color: #00C800;\">IF</span> aGetCobro<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> > <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">//Efectivo</span><br />             oCmd:<span style=\"color: #000000;\">Parameters</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gscefectivo\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #000000;\">1</span><br />             oCmd:<span style=\"color: #000000;\">Parameters</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"gsefectivo\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span>  := aGets<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">01</span><span style=\"color: #000000;\">&#93;</span><br />          <span style=\"color: #00C800;\">ENDIF</span><br />      CATCH oErr<br />         <span style=\"color: #00C800;\">RETURN</span> lTerminoOk<br />      END<br />      oCmd:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ------------------------------------->>>> AQUI EL ERROR</div>[/code:3cpmtbyw]\n\n[quote:3cpmtbyw]Time from start: 0 hours 0 mins 56 secs \n Error occurred at: 01/08/2013, 09:06:10\n Error description: Error ADODB.Command/6 DISP_E_UNKNOWNNAME: EXECUTE\n Args:\n\nStack Calls\n===========\n Called from: source\\rtl\\win32ole.prg => TOLEAUTO:EXECUTE( 0 )\n Called from: Source\\PdeVenta.prg => FINVENTA( 743 )[/quote:3cpmtbyw]", "time": "15:18", "topic": "Ayuda con ADODB", "username": "ricardog" } ]
Ayuda con ADODB
[ { "date": "2013-08-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Please keep in mind:\n\n1. You have to assign values to all parameters. You can not ommit any.\n2. For adDate parameter assign date value ( not character value )\n3. For adChar your string length should exactly match the parameter \"size\"\n4. For adVarChar, your string length should not exceed the size.\n\nPlease check your assignments for each parameter carefully", "time": "21:42", "topic": "Ayuda con ADODB", "username": "nageswaragunupudi" } ]
Ayuda con ADODB
[ { "date": "2013-08-02", "forum": "FiveWin para Harbour/xHarbour", "text": "nageswaragunupudi :\n\nExcellent thank you very much, was going wrong variable.\n\nHasta luego/So long! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "22:39", "topic": "Ayuda con ADODB", "username": "ricardog" } ]
Ayuda con ADODB
[ { "date": "2007-05-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludes amigos del foro, gracias a la valiosa ayuda de antonio, fernando william y otros he podido compilar una pequeña aplicacion sin problemas, ya reconoce el alias etc. pero ahora me presenta un error extráño, al ejecutar el siguiente codigo :\n\n//===========================\nstatic function browRST()\n//===========================\n\nPublic oDlg,oBrw\n\nUSE Personal1 VIA \"ADORDD\" TABLE \"MAESTRO\" MYSQL ;\n FROM \"localhost\" USER \"root\" PASSWORD \"1234\" ALIAS \"MAESTRO\"\n\nDEFINE DIALOG oDlg FROM 1, 1 TO 25, 79\n\n@ 1, 1 LISTBOX oBrw FIELDS MAESTRO->NUMERO, ;\n MAESTRO->nombreS, ;\n MAESTRO->APELLIDO1 ;\n HEADERS \"Codigo\",\"Nombre \",\"Salario\" ;\n FIELDSIZES 60,200,60 ;\n SIZE 284, 137 OF oDlg\n\n @154,08 BTNBMP LEFT PROMPT \" Agregar\" SIZE 50,19 OF oDlg FILENAME \"NEW1.BMP\" ACTION oDlg:End()\n @154,67 BTNBMP LEFT PROMPT \" Modificar\" SIZE 50,19 OF oDlg FILENAME \"CARDF00C.BMP\" ACTION oDlg:End()\n @154,125 BTNBMP LEFT PROMPT \" Borrar\" SIZE 50,19 OF oDlg FILENAME \"BORRAR1.BMP\" //ACTION BorraU(oLbx )\n @154,184 BTNBMP LEFT PROMPT \" Buscar\" SIZE 50,19 OF oDlg FILENAME \"FIND.BMP\" //ACTION BuscaU(oLbx,3,\"Color\")\n @154,242 BTNBMP LEFT PROMPT \" Salir\" SIZE 50,19 OF oDlg FILENAME \"SALIR3.BMP\" ACTION oDlg:End()\n\n ACTIVATE DIALOG oDlg CENTERED\n\n CLOSE DATABASES\n\nRETURN NIL\n\nme manda el siguiente error :\n\n==========\n Path and name: C:\\sistemas\\RRHH_32\\personal.exe (32 bits)\n Size: 1,460,224 bytes\n Time from start: 0 hours 0 mins 6 secs \n Error occurred at: 09/05/2007, 10:02:06\n Error description: Error ADODB.Recordset/16389 E_FAIL: STATUS\n Args:\n\nStack Calls\n===========\n Called from: win32ole.prg => TOLEAUTO:STATUS(0)\n Called from: => ADO_DELETED(414)\n Called from: => DBSKIPPER(0)\n Called from: WBROWSE.PRG => (b)TWBROWSE:SETFILTER(0)\n Called from: WBROWSE.PRG => TWBROWSE:SKIP(0)\n Called from: WBROWSE.PRG => TWBROWSE:PAINT(0)\n Called from: WBROWSE.PRG => TWBROWSE:DISPLAY(0)\n Called from: CONTROL.PRG => TWBROWSE:HANDLEEVENT(0)\n Called from: WINDOW.PRG => _FWH(0)\n Called from: => DIALOGBOXINDIRECT(0)\n Called from: DIALOG.PRG => TDIALOG:ACTIVATE(0)\n Called from: => BROWRST(553)\n Called from: personal.prg => (b)CREAMENU(121)\n Called from: MENU.PRG => TMENU:COMMAND(0)\n Called from: WINDOW.PRG => TWINDOW:COMMAND(0)\n Called from: WINDOW.PRG => TWINDOW:HANDLEEVENT(0)\n Called from: WINDOW.PRG => _FWH(0)\n Called from: => WINRUN(0)\n Called from: WINDOW.PRG => TWINDOW:ACTIVATE(0)\n Called from: personal.prg => PRINCIPAL(74)\n\nLa verdad ni dea que podria ser, y aprovechando la consulta tengo una duda existencial, si desde el browse activo las altas, bajas y cambios con el RDDADO cual seria la sintaxis, o tendre por cada funcion hacer lo normal con la conexion ado, addnew, etc, etc, y eliminar registros con sentencias sql,\n\nDesde siempre agradecido con toda su colaboracion, espero algun dia aportar algo al foro ( al menos a los nuevos ingresos )\n\nSaludes desde Nicaragua\nRamon Paredes", "time": "17:09", "topic": "Ayuda con ADORDD ( Problema con Toleauto)", "username": "Ramon Paredes" } ]
Ayuda con ADORDD ( Problema con Toleauto)
[ { "date": "2007-05-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Fernando, mil gracias, copiare las lib donde corresponde y hare la pruebas correspondientes,\n\nRamon Paredes\nManagua, Nicaagua", "time": "19:58", "topic": "Ayuda con ADORDD ( Problema con Toleauto)", "username": "Ramon Paredes" } ]
Ayuda con ADORDD ( Problema con Toleauto)
[ { "date": "2011-12-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Señores... Buenas noches\n\nRequiero de probar en otro entorno el porque de la siguente situación, si alguien lo puede implementar y verificar que sucede con ADS REMOTE?\n\n SEGUN LINK AL CODIGO \n\n// prueba de ads version 9.1 con xharbour.org y xharbour.com \n\n// hardware : servidor amd 4600 x2 win x pro - 32 bits , 4 ram \n// estacion intel 7 win 7 pro - 32 bits , 4 ram \n\n\n// servidor ads : 9.1 OFICIAL // 10.1 tryal \n// xharbour.org : 1.2.1. rev 6406 \n// bcc : 5.82 \n// ace32.lib para ads 9.1 ----> \\bcc5.82\\bin\\IMPLIB ACE32.LIB ACE32.DLL -- OK\n\n\n// xharbour.com : 1.2.1. rev 6633 \n\n\n// tiempos : dbfcdx : 0.16 seg \n// ads - cdx local : 0.75 seg \n// ads - cdx remote : 9.75 seg REPLACE ALL \n// ads - cdx remote : 10.0 seg DO WHILE -- \nREPLACE - DBSKIP() \n// ads - cdx remote - sql : 0.20 seg \n\n\n\n<!-- m --><a class=\"postlink\" href=\"http://www.russoft-ltda.com/fivewin/ADSPR1.PRG\">http://www.russoft-ltda.com/fivewin/ADSPR1.PRG</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://www.russoft-ltda.com/fivewin/ADS.exe.xbp_XHB\">http://www.russoft-ltda.com/fivewin/ADS.exe.xbp_XHB</a><!-- m -->", "time": "03:02", "topic": "Ayuda con ADS REMOTE - Lento ???", "username": "russimicro" } ]
Ayuda con ADS REMOTE - Lento ???
[ { "date": "2011-12-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Johnson gusto saludarte,\n\nExplicame mejor ya que no entiendo el problema que se te presenta...\n\n\nSlds", "time": "04:08", "topic": "Ayuda con ADS REMOTE - Lento ???", "username": "nnicanor" } ]
Ayuda con ADS REMOTE - Lento ???
[ { "date": "2011-12-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Nicanor... como estamos\n\n\n1. El ejemplo ilustra una creacion de una tabla y la inserccion de 5.000 registros\n2. Los tiempos de la sentencia replace... varia mucho cuando se hace con ads remote y replace ...\n3. Con xharbour dbfcdx, con ads local y con ads remote - SQL, los tiempos estan dentro de lo normal\n\nGracias..\n317-6441098", "time": "17:48", "topic": "Ayuda con ADS REMOTE - Lento ???", "username": "russimicro" } ]
Ayuda con ADS REMOTE - Lento ???
[ { "date": "2011-09-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados, esta es una duda que he tenido por mucho tiempo, como se implementa correctamente los bloqueos y transacciones con el ads, ahora que empiezo a probar el Client/Server\nesto es algo que tengo, pero no me siento a gusto con el codigo, podria ayudarme con esto, les agradeceria mucho su inestimable ayuda\n\n[code=fw:2o9id0sj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> ProgramacionP_Grabar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> lGrabado := <span style=\"color: #00C800;\">FALSE</span><br />   <span style=\"color: #00C800;\">LOCAL</span> oError<br /><br />   <span style=\"color: #B900B9;\">//TODO:validar datos</span><br /><br />   InitTrans<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">TRY</span><br />      <span style=\"color: #00C800;\">IF</span> CTRL-><span style=\"color: #000000;\">&#40;</span> DbLockRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> CLIE-><span style=\"color: #000000;\">&#40;</span> DbLockRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> .and. PRES-><span style=\"color: #000000;\">&#40;</span> DbApndRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> .and. MOVI-><span style=\"color: #000000;\">&#40;</span> DbApndRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />         CTRL->CONT_PRES   += <span style=\"color: #000000;\">1</span><br /><br />         CLIE->SALDO_ACT   += oRecSol:<span style=\"color: #000000;\">MONTO_PRES</span><br /><br />         MOVI->NUM_PRES    := oRecSol:<span style=\"color: #000000;\">NUM_PRES</span><br />         MOVI->NUM_CLIE    := oRecSol:<span style=\"color: #000000;\">NUM_CLIE</span><br />         MOVI->FECHA       := oRecSol:<span style=\"color: #000000;\">FECHA_DESE</span><br />         MOVI->DEBE        := oRecSol:<span style=\"color: #000000;\">MONTO_PRES</span><br />         MOVI->SALDO       := oRecSol:<span style=\"color: #000000;\">MONTO_PRES</span><br /><br />         PRES->NUM_PRES    := oRecSol:<span style=\"color: #000000;\">NUM_PRES</span><br />         PRES->NUM_CLIE    := oRecSol:<span style=\"color: #000000;\">NUM_CLIE</span><br />         PRES->TIPO_PRES   := oRecSol:<span style=\"color: #000000;\">TIPO_PRES</span><br />         PRES->FECHA_SOLI  := oRecSol:<span style=\"color: #000000;\">FECHA_SOLI</span><br />         PRES->FECHA_APRO  := oRecSol:<span style=\"color: #000000;\">FECHA_APRO</span><br />         PRES->FECHA_ENTR  := oRecSol:<span style=\"color: #000000;\">FECHA_ENTR</span>   <span style=\"color: #B900B9;\">//?</span><br />         PRES->MONTO_SOLI  := oRecSol:<span style=\"color: #000000;\">MONTO_SOLI</span><br />         PRES->MONTO_APRO  := oRecSol:<span style=\"color: #000000;\">MONTO_APRO</span><br />         PRES->MONTO_PRES  := oRecSol:<span style=\"color: #000000;\">MONTO_PRES</span><br />         PRES->MONTO_ENTR  := oRecSol:<span style=\"color: #000000;\">MONTO_ENTR</span><br />         PRES->INTE_TASA   := oRecSol:<span style=\"color: #000000;\">INTE_TASA</span><br />         PRES->INTE_MONT   := oRecSol:<span style=\"color: #000000;\">INTE_MONTO</span><br />         PRES->MANT_TASA   := oRecSol:<span style=\"color: #000000;\">MANT_TASA</span><br />         PRES->MANT_MONT   := oRecSol:<span style=\"color: #000000;\">MANT_MONT</span><br />         PRES->DESE_TASA   := oRecSol:<span style=\"color: #000000;\">DESE_TASA</span><br />         PRES->DESE_MONT   := oRecSol:<span style=\"color: #000000;\">DESE_MONT</span><br />         PRES->DED_INSGAR  := oRecSol:<span style=\"color: #000000;\">DED_INSGAR</span><br />         PRES->DED_ESCPUB  := oRecSol:<span style=\"color: #000000;\">DED_ESCPUB</span><br />         PRES->DED_GASLEG  := oRecSol:<span style=\"color: #000000;\">DED_GASLEG</span><br />         PRES->DED_CAMFIA  := oRecSol:<span style=\"color: #000000;\">DED_CAMFIA</span><br />         PRES->DED_ATRFIA  := oRecSol:<span style=\"color: #000000;\">DED_ATRFIA</span><br />         PRES->DED_RECMOR  := oRecSol:<span style=\"color: #000000;\">DED_RECMOR</span><br />         PRES->FECHA_INI   := oRecSol:<span style=\"color: #000000;\">FECHA_INI</span><br />         PRES->FECHA_FIN   := oRecSol:<span style=\"color: #000000;\">FECHA_FIN</span><br />         PRES->PLAZO       := oRecSol:<span style=\"color: #000000;\">PLAZO_SOLI</span><br />         PRES->NUM_CUOTAS  := oRecSol:<span style=\"color: #000000;\">NUM_CUOTAS</span><br />         PRES->VAL_CUOTA   := oRecSol:<span style=\"color: #000000;\">VAL_CUOTA</span><br />         PRES->ENTREGADO   := <span style=\"color: #00C800;\">TRUE</span>                 <span style=\"color: #B900B9;\">//?</span><br />         PRES->PAGADO      := <span style=\"color: #00C800;\">FALSE</span><br />         PRES->SALDO       := <span style=\"color: #000000;\">&#40;</span> oRecSol:<span style=\"color: #000000;\">NUM_CUOTAS</span> * oRecSol:<span style=\"color: #000000;\">VAL_CUOTA</span> <span style=\"color: #000000;\">&#41;</span><br />         PRES-><span style=\"color: #000000;\">&#40;</span> ADSSetEmptyValue<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />         DBCommitAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />         DBUnlockAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />         lGrabado := <span style=\"color: #00C800;\">TRUE</span><br />      <span style=\"color: #00C800;\">ELSE</span><br />         DBUnlockAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">ENDIF</span><br /><br />      EndTrans<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   CATCH oError<br />      RollTrans<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      ShowError<span style=\"color: #000000;\">&#40;</span> oError <span style=\"color: #000000;\">&#41;</span><br />   END<br /><br />   <span style=\"color: #00C800;\">IF</span> lGrabado<br />      oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> lGrabado<br /><br /> </div>[/code:2o9id0sj]\n\nla verdad me parece incorrecta, que pasaria si el primer append es correcto y el segundo append falla?\nno seria mejor algo asi:\n[code=fw:2o9id0sj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />      <span style=\"color: #00C800;\">ELSE</span><br />         <span style=\"color: #B900B9;\">//aca hacer que el catch procese el error  (no se como)</span><br />         DBUnlockAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>                                 <br />      <span style=\"color: #00C800;\">ENDIF</span><br /><br />      EndTrans<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   CATCH oError<br />      RollTrans<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      ShowError<span style=\"color: #000000;\">&#40;</span> oError <span style=\"color: #000000;\">&#41;</span><br />   END<br /> </div>[/code:2o9id0sj]\n\nsalu2", "time": "18:32", "topic": "Ayuda con ADS, bloqueos y transacciones", "username": "carlos vargas" } ]
Ayuda con ADS, bloqueos y transacciones
[ { "date": "2011-09-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola \n\nYo utilizo Ads con tablas ADT\n\nLo que hago es bloquear y luego peguntar si se puede hacer la transaccion\n\n.-primero siempre bloqueo el unico registro que tiene la bd parame.adt y asi evito que otro archivo este bloqueado posterior a este\n\n[code=fw:2av23r0j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">if</span> Parame-><span style=\"color: #000000;\">&#40;</span> !NetRLock<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> .or. Movi_Sal-><span style=\"color: #000000;\">&#40;</span> !NetFLock<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> .or. Docu_BF-><span style=\"color: #000000;\">&#40;</span> !NetFLock<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> .or. Articu-><span style=\"color: #000000;\">&#40;</span> !NetFLock<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    dbUnlockAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   alert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"mensaje\"</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> .f. <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br /> </div>[/code:2av23r0j]\n\nluego pregunto si se puede hacer la Transaction\n\n[code=fw:2av23r0j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">if</span> !AdsBeginTransaction<span style=\"color: #000000;\">&#40;</span> ViewUsu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">hConnection</span> <span style=\"color: #000000;\">&#41;</span><br />  dbUnlockAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mensaje...\"</span> <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> .f. <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br /><br />..<br />..<br />...<br /><br />AdsCommitTransaction<span style=\"color: #000000;\">&#40;</span> ViewUsu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">hConnection</span> <span style=\"color: #000000;\">&#41;</span><br /><br /> </div>[/code:2av23r0j]\n\npuede que haya otra mejor manera..", "time": "19:22", "topic": "Ayuda con ADS, bloqueos y transacciones", "username": "Patricio Avalos Aguirre" } ]
Ayuda con ADS, bloqueos y transacciones
[ { "date": "2010-02-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos:\nUso Harbour de Fivetech y FWH de Octubre 2009 y Ads 9.10\nAntes usaba ADS, hace mucho tiempo y ahora que necesito hacer algo con ADS lo inicio asi y me da errores...\n\n#include 'FiveWin.ch'\n#include \"RDDSYS.ch\"\n#include \"ADS.Ch\"\n#include \"Ord.Ch\"\n\nREQUEST ADS,ADSKEYCOUNT,ADSGETRELKEYPOS,ADSKEYNO,ADSSetRelKeyPos,rddsys\n\nRDDREGISTER(\"ADS\",1)\nRDDSETDEFAULT(\"ADS\")\nSET SERVER LOCAL /*remote*/\nSET FILETYPE TO ADI //QUIERO USAR LOS ADT DE ADS\nSET MULTIPLE ON\n\nLIB que agrego al programa...\n\nAce32.lib 24 de febrero 2009 \nRddads.lib ........ESTA ES DE FECHA 10 mayo 2009\nAdemas uso estas libs hbrdd.lib, rddcfx.lib, rddfpt, hbsix.lib, rddntx.lib ME SOBRA ALGUNA...\n\nQue me falta o que me sobra?\n\ny me da los errores que siguen y muchisimos mas...\n\nError: Unresolved external 'AdsSetServerType' referenced from C:\\FWH\\LIB\\RDDADS.LIB|adsfunc\nError: Unresolved external 'AdsGetDateFormat' referenced from C:\\FWH\\LIB\\RDDADS.LIB|adsfunc\nError: Unresolved external 'AdsSetDateFormat' referenced from C:\\FWH\\LIB\\RDDADS.LIB|adsfunc\nError: Unresolved external 'AdsGetEpoch' referenced from C:\\FWH\\LIB\\RDDADS.LIB|adsfunc\nError: Unresolved external 'AdsSetEpoch' referenced from C:\\FWH\\LIB\\RDDADS.LIB|adsfunc\nError: Unresolved external 'AdsApplicationExit' referenced from C:\\FWH\\LIB\\RDDADS.LIB|adsfunc\nError: Unresolved external 'AdsIsServerLoaded' referenced from C:\\FWH\\LIB\\RDDADS.LIB|adsfunc\nError: Unresolved external 'AdsUnlockRecord' referenced from C:\\FWH\\LIB\\RDDADS.LIB|adsfunc\nError: Unresolved external 'AdsGetTableConnection' referenced from C:\\FWH\\LIB\\RDDADS.LIB|adsfunc\nError: Unresolved external 'AdsGetConnectionType' referenced from C:\\FWH\\LIB\\RDDADS.LIB|adsfunc\n\nGracias... y socorro por favor\n\nSaludos\nRuben Fernandez.", "time": "21:33", "topic": "Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO", "username": "Ruben Fernandez" } ]
Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO
[ { "date": "2010-02-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Ruben, prueba con esta lib <!-- m --><a class=\"postlink\" href=\"http://www.fivetechsoft.com/files/rddads.lib\">http://www.fivetechsoft.com/files/rddads.lib</a><!-- m -->,\nyo utilizo ADS LOCAL, REMOTO E INTERNET y no tengo prema, cualquier duda estamos a la orden\n\nCruz Alfredo Oses", "time": "23:13", "topic": "Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO", "username": "compubrion" } ]
Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO
[ { "date": "2010-02-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Alfredo:\n\nGracias, pero me sigue generando los mismos errores... No se que ocurre porque creo que tengo todo bien colocado.\n\nSeguire esperando...\n\nMuchas gracias\n\nRuben Fernandez", "time": "23:25", "topic": "Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO", "username": "Ruben Fernandez" } ]
Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO
[ { "date": "2010-02-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Rubén,\n\nTienes Messenger?", "time": "23:45", "topic": "Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO", "username": "jcenteno" } ]
Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO
[ { "date": "2010-02-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Si tengo:\n\nrufer @ five3.net sin los espacios\n\nGracias\n\nRuben Fernandez.", "time": "00:30", "topic": "Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO", "username": "Ruben Fernandez" } ]
Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO
[ { "date": "2010-02-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados: luego de molestar a mucha gente encontre la solucion.\nTambien moleste a Antonio y el problema era que no estaba usando las ultimas libs.\n\nMuchas gracias a todos y disculpen las molestias.\n\nSaludos y gracias\n\nRuben Fernandez", "time": "05:33", "topic": "Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO", "username": "Ruben Fernandez" } ]
Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO
[ { "date": "2010-02-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Ruben,\n\nMe alegro de que haya quedado solucionado <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "09:13", "topic": "Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO", "username": "Antonio Linares" } ]
Ayuda con ADS, que archivos ? Por Favor SOLUCIONADO
[ { "date": "2008-04-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Buen día para todos...\n\n Amigos hay forma de conseguir por medio de API el serial del BIOS y CPU, el serial de fabrica del disco duro o rigido, el MAC Address de la tarjeta de red, lo que busco es la manera de proteger los programas que hacemos, pero a la vez también busco compatibilidad con los sistema operativos Windows desde 95 hasta Vista.\n\nNota: Se que puedo hacerlo con WMI pero no funciona con Win9x ni WinME hasta donde he leído", "time": "16:03", "topic": "Ayuda con API's", "username": "ARCC" } ]
Ayuda con API's
[ { "date": "2008-04-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Buen día para todos...\n\n Lo que quiero hacer es algo como esto: Miren el link\n\n<!-- m --><a class=\"postlink\" href=\"http://www.azsdk.com/hardwareid.html\">http://www.azsdk.com/hardwareid.html</a><!-- m -->\n\n Se que a todos nos hace falta para proteger nuestras aplicaciones.", "time": "23:21", "topic": "Ayuda con API's", "username": "ARCC" } ]
Ayuda con API's
[ { "date": "2008-04-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\nRevisa esto:\n<!-- m --><a class=\"postlink\" href=\"http://fivetechsoft.com/forums/viewtopic.php?t=8805\">http://fivetechsoft.com/forums/viewtopic.php?t=8805</a><!-- m -->", "time": "23:41", "topic": "Ayuda con API's", "username": "Antonio Linares" } ]
Ayuda con API's
[ { "date": "2008-04-15", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":1zp1ta7x]Antonio,\n\nRevisa esto:\n<!-- m --><a class=\"postlink\" href=\"http://fivetechsoft.com/forums/viewtopic.php?t=8805\">http://fivetechsoft.com/forums/viewtopic.php?t=8805</a><!-- m -->[/quote:1zp1ta7x]\n\nAntonio,\n\nCon un usuario que no sea adminsitrador del PC, te funciona el obtener el número de serie del pendrive?\n\nSaludos\nCarlos G.", "time": "07:27", "topic": "Ayuda con API's", "username": "FiveWiDi" } ]
Ayuda con API's
[ { "date": "2008-04-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nLo acabamos de probar en Vista, con el usuario que crea Vista, y funciona correctamente.\n\n<!-- m --><a class=\"postlink\" href=\"http://www.hotshare.net/file/16421-89987245cf.html\">http://www.hotshare.net/file/16421-89987245cf.html</a><!-- m -->", "time": "12:08", "topic": "Ayuda con API's", "username": "Antonio Linares" } ]
Ayuda con API's
[ { "date": "2008-04-15", "forum": "FiveWin para Harbour/xHarbour", "text": "ARCC,\n\nYo los protejos así: Echa un vistazo en:\n\n[url]http://www.fivetechsoft.com/forums/viewtopic.php?t=7783&highlight=cnserie+odisk+numserie\n[/url]\n\nUn saludo.\nLORENZO", "time": "12:15", "topic": "Ayuda con API's", "username": "Loren" } ]
Ayuda con API's
[ { "date": "2008-04-15", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":aysr8sui]Carlos,\n\nLo acabamos de probar en Vista, con el usuario que crea Vista, y funciona correctamente.\n\n<!-- m --><a class=\"postlink\" href=\"http://www.hotshare.net/file/16421-89987245cf.html\">http://www.hotshare.net/file/16421-89987245cf.html</a><!-- m -->[/quote:aysr8sui]\n\nYo lo he probado con W2000 y con XP Pro y me quedé con las ganas; que lástima.\n\nBueno, condicionaré el sistema anticopias al SO. Quien tenga Vista tendrá mobilidad quien no lo tenga estará ligado al numero de placa del PC.\n\nSaludos\ncarlos G.", "time": "12:18", "topic": "Ayuda con API's", "username": "FiveWiDi" } ]
Ayuda con API's
[ { "date": "2008-04-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Buen día para todos...\n\n[quote=\"Loren\":c306tley]ARCC,\n\nYo los protejos así: Echa un vistazo en:\n\n[url]http://www.fivetechsoft.com/forums/viewtopic.php?t=7783&highlight=cnserie+odisk+numserie\n[/url]\n\nUn saludo.\nLORENZO[/quote:c306tley]\n\n Que tal Loren, si ya sabía porque esa clase TDiskInfo es mía y funciona bien <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->, el problema es que si formateas el disco se pierde el número de serie.", "time": "13:31", "topic": "Ayuda con API's", "username": "ARCC" } ]
Ayuda con API's
[ { "date": "2008-04-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Buen día para todos...\n\n[quote=\"FiveWiDi\":2yx0ykpu]estará ligado al numero de placa del PC.\nSaludos\ncarlos G.[/quote:2yx0ykpu]\n\n Que tal Carlos, a que te refieres con: estará ligado al numero de placa del PC?", "time": "13:34", "topic": "Ayuda con API's", "username": "ARCC" } ]
Ayuda con API's
[ { "date": "2008-04-15", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"ARCC\":2j31py71]Buen día para todos...\n\n[quote=\"FiveWiDi\":2j31py71]estará ligado al numero de placa del PC.\nSaludos\ncarlos G.[/quote:2j31py71]\n\n Que tal Carlos, a que te refieres con: estará ligado al numero de placa del PC?[/quote:2j31py71]\nMi intención era que quien tuviera el pendrive pudiera ejecutar la aplicación en cualquier PC.\nComo esto no es posible en mi caso, la aplicación sólo se podrá ejecutar en el PC que escoja el cliente y del cual obtendré (mediante la propia aplicación o una auxiliar) su número de placa (MotorBoard a algo así se llama creo).\n\nPero eso tu no lo puedes hacer porque voy a utilizar esas funciones mediante WMI, y tu no deseas/puedes usar.\n\nSaludos\nCarlos G.", "time": "14:00", "topic": "Ayuda con API's", "username": "FiveWiDi" } ]
Ayuda con API's
[ { "date": "2008-04-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Buen día para todos...\n\n[quote=\"FiveWiDi\":33zea74o]\nMi intención era que quien tuviera el pendrive pudiera ejecutar la aplicación en cualquier PC.\nComo esto no es posible en mi caso, la aplicación sólo se podrá ejecutar en el PC que escoja el cliente y del cual obtendré (mediante la propia aplicación o una auxiliar) su número de placa (MotorBoard a algo así se llama creo).\n\nPero eso tu no lo puedes hacer porque voy a utilizar esas funciones mediante WMI, y tu no deseas/puedes usar.\n\nSaludos\nCarlos G.[/quote:33zea74o]\n\n Si la idea es que el procedimiento sea compatible desde Windows 95 hasta el Vista. Gracias Carlos por la aclaratoria.\n\n Pienso en voz alta!. Es increíble que a estas alturas siglo 21 con el Internet y todo lo que ha evolucionado el mundo de la informática, no exista un procedimiento concreto para hacer algo tan importante como lo que estoy pidiendo, bueno sigo buscando.", "time": "15:10", "topic": "Ayuda con API's", "username": "ARCC" } ]
Ayuda con API's
[ { "date": "2008-04-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Si lo necesitas para Win98 ó WinME, la única solución es buscar en google que es lo que estoy haciendo ahora mismo <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nLinux es capaz de identificar el número de serie y obviamente no usa WMI, y disponemos de todo el código fuente de Linux. Ahora hay que buscarlo...", "time": "19:46", "topic": "Ayuda con API's", "username": "Antonio Linares" } ]
Ayuda con API's
[ { "date": "2008-04-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Buen día para todos...\n\n[quote=\"Antonio Linares\":2woe26qf]Si lo necesitas para Win98 ó WinME, la única solución es buscar en google que es lo que estoy haciendo ahora mismo <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nLinux es capaz de identificar el número de serie y obviamente no usa WMI, y disponemos de todo el código fuente de Linux. Ahora hay que buscarlo...[/quote:2woe26qf]\n\nAntonio,\n\n He buscado y buscado mucho en Internet y para mi sorpresa no hay muchas respuestas a lo que ando buscando, por allí he conseguido un código de Delphi que al parecer funciona pero no tengo como probarlo, es más en el link que coloqué arriba, la DLL que devuelve el serial del disco y otras cosas está hecho en Delphi, también vi unas interrupciones del DOS que según devuelven el serial del disco pero no se si funciones en S.O Windows y tendría que usar C para probarlas.\n\n Agradezco todo el apoyo brindado y de verdad que estas / están dando un EXCELENTE SOPORTE, eso habla muy bien de ti y de FW. Mil gracias y seguimos en la búsqueda", "time": "00:38", "topic": "Ayuda con API's", "username": "ARCC" } ]
Ayuda con API's
[ { "date": "2011-03-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos\n\nQuiero cargar un archivo TXT a una base delimitado por pipe |\ny no logro hacerlo.\n\nlo hago asi:\n[code=fw:chlr71v1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />USE OPERAVTA <span style=\"color: #0000ff;\">ALIAS</span> Trial <span style=\"color: #00C800;\">NEW</span> EXCLUSIVE<br />APPEND <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #ff0000;\">\"TB.TXT\"</span> DELIMITED WITH <span style=\"color: #ff0000;\">\"|\"</span><br />&nbsp;</div>[/code:chlr71v1]\n\ncarga mal.\n\nGracias por la ayuda\n\nSaludos,\n\nAdhemar", "time": "17:12", "topic": "Ayuda con APPEND FROM", "username": "acuellar" } ]
Ayuda con APPEND FROM
[ { "date": "2011-03-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Format: TYPE SDF | DELIMITED [WITH <delimiter>|BLANK]\n\n If the desired FROM <file> is not a database, the TYPE clause\n may be used to specify SDF or DELIMITED <file> formats. The\n default extension for these formats is \"TXT\".\n\n An SDF file is an ASCII text file in which the records have a\n fixed length and end with a carriage return and line feed.\n\n A DELIMITED file is an ASCII text file in which each record ends\n with a carriage return and line feed. Fields are normally sepa-\n rated by commas, and character fields are additionally delimited\n by double quotation marks. However, the DELIMITED WITH BLANK\n option may be used to indicate that fields are separated by\n spaces rather than commas; and, the DELIMITED WITH <delimiter>\n option may be used to indicate that character fields are de-\n limited by a character other than a double quotation mark.", "time": "17:21", "topic": "Ayuda con APPEND FROM", "username": "karinha" } ]
Ayuda con APPEND FROM
[ { "date": "2011-03-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Joao\n\nPero no logro hacerlo funcionar.\n\nAlgun Ejemplo\n\nSaludos,\n\nAdhemar", "time": "20:08", "topic": "Ayuda con APPEND FROM", "username": "acuellar" } ]
Ayuda con APPEND FROM
[ { "date": "2011-03-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Desculpe, no comprendo perfecto, desejas eliminar el caracter: \"|\" ? Se si, CHR(13)+chr(10)\n\nSi no, haces la pregunta en: <!-- m --><a class=\"postlink\" href=\"http://www.fivewin.com.br\">http://www.fivewin.com.br</a><!-- m -->\n\nSalud2", "time": "21:13", "topic": "Ayuda con APPEND FROM", "username": "karinha" } ]
Ayuda con APPEND FROM
[ { "date": "2011-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Adhemar\n\nPodrias colocar el TXT o uno similar....\n\nGracias", "time": "03:45", "topic": "Ayuda con APPEND FROM", "username": "Daniel Garcia-Gil" } ]
Ayuda con APPEND FROM
[ { "date": "2011-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Ahi va\n\n240|Room Serv. Alimentos|911.00|\n241|Room Serv. Bebidas|71.00|\n242|Room Serv. Varios|12.00|\n244|Room Serv.Descuentos|-130.80|\n\nEstructura de la base\nCOD C 4\nDESCRIP C 30\nMONTO N 10 2\n\nLa primer columna la pasa bien.\n\nGracias Daniel\n\nSaludos,\n\nAdhemar", "time": "13:13", "topic": "Ayuda con APPEND FROM", "username": "acuellar" } ]
Ayuda con APPEND FROM
[ { "date": "2011-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos,\n\nParece que no han tenido esta necesidad. No puedo hacerlo cargar bien.\n\nSi no se puede con el APPEND \nSe me ocurre leer el archivo de texto y sacar por parte y grabar en la base\n\nNecesito ayuda.\n\nSaludos,\n\nAdhemar", "time": "21:12", "topic": "Ayuda con APPEND FROM", "username": "acuellar" } ]
Ayuda con APPEND FROM
[ { "date": "2011-03-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Adhemar\n\nsolo funciona si esta separado por comas \",\", de esa forma no es neceario usar WITH \"|\"\n\nEjemplo para probar \n[code=fw:3141gdzb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   CreaDbf<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   append <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">\"text.txt\"</span> delimited <br />   dbgotop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   Browse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <br /><span style=\"color: #00C800;\">return</span>  <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> CreaDbf<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">if</span> ! File<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"data.dbf\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />      DbCreate<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'data'</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'cod'</span>     , <span style=\"color: #ff0000;\">'C'</span>,   <span style=\"color: #000000;\">4</span>,   <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#125;</span>  ,;<br />                        <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'DESCRIP'</span> , <span style=\"color: #ff0000;\">'C'</span>,  <span style=\"color: #000000;\">30</span>,   <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#125;</span> ,;<br />                        <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'monto'</span>   , <span style=\"color: #ff0000;\">'N'</span>,  <span style=\"color: #000000;\">10</span>,   <span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #ff0000;\">'DBFCDX'</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">else</span> <br />      use <span style=\"color: #00C800;\">data</span> <span style=\"color: #0000ff;\">alias</span> <span style=\"color: #00C800;\">data</span> <span style=\"color: #00C800;\">new</span> via <span style=\"color: #ff0000;\">\"dbfcdx\"</span><br />      zap<br />   <span style=\"color: #00C800;\">endif</span><br />                         <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:3141gdzb]\n\nText file\n[code=fw:3141gdzb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #000000;\">240</span>,Room Serv. Alimentos,<span style=\"color: #000000;\">911.00</span><br /><span style=\"color: #000000;\">241</span>,Room Serv. Bebidas,<span style=\"color: #000000;\">71.00</span><br /><span style=\"color: #000000;\">242</span>,Room Serv. Varios,<span style=\"color: #000000;\">12.00</span><br /><span style=\"color: #000000;\">244</span>,Room Serv.Descuentos,<span style=\"color: #000000;\">-130.80</span><br /> </div>[/code:3141gdzb]\n\nAdhemar te doy una sugerencia muy util, para los proximos post que solicites ayudas ante un problema que consigas, intenta ofrecernos un ejemplo que podamor construir y que podamos reproducir el error que obtienes, sera mas facil ayudarte...\nyo en lo particular dejo de ultimo los post que ofrecen informacion limitada o por minimo un ejemplo\nte recomiendo leas este post:[url:3141gdzb]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=103821#p103821[/url:3141gdzb]", "time": "00:47", "topic": "Ayuda con APPEND FROM", "username": "Daniel Garcia-Gil" } ]
Ayuda con APPEND FROM
[ { "date": "2011-03-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Daniel\n\nSeparado por coma funciona.\n\nEl problema es cuando el monto es mayor a 999.00 viene con la con la , de miles. Ej: 1,324.23\ny el archivo TXT lo crea otro sistema.\n\nSaludos,\n\nAdhemar", "time": "15:09", "topic": "Ayuda con APPEND FROM", "username": "acuellar" } ]
Ayuda con APPEND FROM
[ { "date": "2011-03-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Adhemar,\n\naumenta un campo a tu tabla\n\nCOD C 4\nDESCRIP C 30\nMONTO N 10 2\nBLANCO C 10\n\nhaber que pasa, nos dices\n\nsaludos\n\nMarcelo", "time": "21:21", "topic": "Ayuda con APPEND FROM", "username": "Marcelo Via Giglio" } ]
Ayuda con APPEND FROM
[ { "date": "2011-03-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Marcelo\nNo funciona\n\nComo remplazar todas las \",\" por \"\" en un archivo de texto\n\nSaludos,\n\nAdhemar", "time": "15:14", "topic": "Ayuda con APPEND FROM", "username": "acuellar" } ]
Ayuda con APPEND FROM
[ { "date": "2011-03-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Lo logre con STRTRAN(tFile,\",\",\"\")\n\nGracias\n\nSaludos,\n\nAdhemar", "time": "15:40", "topic": "Ayuda con APPEND FROM", "username": "acuellar" } ]
Ayuda con APPEND FROM
[ { "date": "2021-04-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Joao,\n\nMuchas gracias por estar siempre presto a ayudarnos a todos los foristas.\n\nVoy a probar tu codigo y adaptarlo al mio y te comento.\n\nUn Abrazo.", "time": "00:48", "topic": "Ayuda con Alineación y Justificación TPRINTER", "username": "JoseAlvarez" } ]
Ayuda con Alineación y Justificación TPRINTER
[ { "date": "2021-04-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos, feliz domingo.\n\nSiempre usé el REPORT de fivewin y la tDosPrint para elaborar mis informes.\nEl hecho es que ahora necesito irme a class TPrinter (C:\\Fw18.01\\source\\classes\\printer.prg) pero no me esta saliendo nada bien.\nEntiendo que para ver la impresion igual en cualquier impresora debo usar oPrn:CMSay pero no es asi en mi caso.\nSi utilizo impresoras diferentes, las impresiones salen de diferentes sitios. \n\nIncluso el texto que pueden ver [b:tak73zcl]J-30918787-2[/b:tak73zcl] tiene la misma columna que los textos anteriores y sin embargo se muestra mucho más a la derecha y esto sucede igual cualquiera sea la impresora.\n\nAcá dejo las imagenes de ejemplo y el codigo fuente:\n\nCon impresora EPSON L200 (y es como se quiere ver) a excepcion de [b:tak73zcl]J-30918787-2[/b:tak73zcl] que debería estar alineado con [b:tak73zcl]Calle[/b:tak73zcl] de la linea anterior\n\n[img:tak73zcl]http&#58;//www&#46;datanet&#46;space/fw/_imagen_01&#46;jpg[/img:tak73zcl]\n\n\nCon impresora virtual CutePdf\n\n[img:tak73zcl]http&#58;//www&#46;datanet&#46;space/fw/_imagen_02&#46;jpg[/img:tak73zcl]\n\nCon cualquier otra impresora sucede igual.\n\n[code=fw:tak73zcl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> Fnct_ListaArticulos01<span style=\"color: #000000;\">&#40;</span>nOrientacion<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// 1 Vertical   2 horizontal</span><br /><br />    <span style=\"color: #00C800;\">Local</span> oPrn, oImage<br />    <span style=\"color: #00C800;\">Local</span> oFont9, oFont10CN, oFont14, oFont20B<br />    <span style=\"color: #00C800;\">Local</span> oPenFine , oPenBold<br /><br />    <span style=\"color: #00C800;\">Local</span> cBmpLogo<br /><br />    <span style=\"color: #00C800;\">Local</span> nRow, nCol , nColorBlack, nJustLeft, nJustRight, nJustCenter<br />    <span style=\"color: #00C800;\">Local</span> nRowImage, nColImage, nWidthImage, nHighImage<br /><br />    nRow:=<span style=\"color: #000000;\">1.5</span><br />    nCol:=<span style=\"color: #000000;\">9</span><br />    nColorBlack:=RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br /><br />    nJustRight:=<span style=\"color: #000000;\">1</span><br />    nJustLeft:=<span style=\"color: #000000;\">0</span><br />    nJustCenter:=<span style=\"color: #000000;\">2</span><br /><br />    nRowImage:=<span style=\"color: #000000;\">1</span><br />    nColImage:=<span style=\"color: #000000;\">4</span><br />    nWidthImage:=<span style=\"color: #000000;\">400</span><br />    nHighImage:=<span style=\"color: #000000;\">395</span><br /><br />    cBmpLogo:=<span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\n</span>euro32<span style=\"color: #000000;\">\\f</span>ondos<span style=\"color: #000000;\">\\l</span>ogo.bmp'</span><br />    oImage:= Timage<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span>,cBmpLogo<span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">PRINT</span> oPrn DOC <span style=\"color: #ff0000;\">'Patron de Prueba'</span>  PREVIEW <span style=\"color: #0000ff;\">MODAL</span><br />    oPrn:<span style=\"color: #000000;\">SetPage</span><span style=\"color: #000000;\">&#40;</span> DMPAPER_LETTER<span style=\"color: #000000;\">&#41;</span><br />    iif<span style=\"color: #000000;\">&#40;</span>nOrientacion=<span style=\"color: #000000;\">1</span>,oPrn:<span style=\"color: #000000;\">SetPortrait</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,oPrn:<span style=\"color: #000000;\">SetLandScape</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span>    <span style=\"color: #0000ff;\">FONT</span>     oFont9      <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span>          <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-9</span>        <span style=\"color: #0000ff;\">OF</span> oPrn<br />    <span style=\"color: #0000ff;\">DEFINE</span>    <span style=\"color: #0000ff;\">FONT</span>     oFont10CN   <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"COURIER NEW\"</span>    <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-10</span> BOLD  <span style=\"color: #0000ff;\">OF</span> oPrn<br />    <span style=\"color: #0000ff;\">DEFINE</span>    <span style=\"color: #0000ff;\">FONT</span>     oFont14     <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span>          <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-14</span>       <span style=\"color: #0000ff;\">OF</span> oPrn<br />    <span style=\"color: #0000ff;\">DEFINE</span>    <span style=\"color: #0000ff;\">FONT</span>     oFont20B    <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span>          <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-20</span> BOLD  <span style=\"color: #0000ff;\">OF</span> oPrn<br />    <span style=\"color: #0000ff;\">DEFINE</span>    PEN       oPenFine    WIDTH <span style=\"color: #000000;\">2</span>                                 <span style=\"color: #0000ff;\">OF</span> oPrn<br />    <span style=\"color: #0000ff;\">DEFINE</span>    PEN       oPenBold    WIDTH <span style=\"color: #000000;\">3</span>                                 <span style=\"color: #0000ff;\">OF</span> oPrn<br /><br />      oPrn:<span style=\"color: #000000;\">StartPage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />            oPrn:<span style=\"color: #000000;\">SayImage</span><span style=\"color: #000000;\">&#40;</span>nRowImage,<span style=\"color: #000000;\">40</span>,oImage,nWidthImage,nHighImage<span style=\"color: #000000;\">&#41;</span><br /><br />            oPrn:<span style=\"color: #000000;\">CMSay</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol, alltrim<span style=\"color: #000000;\">&#40;</span>_cCompanyName<span style=\"color: #000000;\">&#41;</span>, oFont14,,  nColorBlack,, nJustLeft <span style=\"color: #000000;\">&#41;</span><br /><br />            nRow:=nRow+.<span style=\"color: #000000;\">6</span><br />            nCol:=nCol+.<span style=\"color: #000000;\">89</span><br /><br />            oPrn:<span style=\"color: #000000;\">CMSay</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol, alltrim<span style=\"color: #000000;\">&#40;</span>_cDireccion1<span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" \"</span>+alltrim<span style=\"color: #000000;\">&#40;</span>_cDireccion2<span style=\"color: #000000;\">&#41;</span>, oFont10CN,,  nColorBlack,, nJustLeft <span style=\"color: #000000;\">&#41;</span><br />            nRow:=nRow+.<span style=\"color: #000000;\">4</span><br /><br />            oPrn:<span style=\"color: #000000;\">CMSay</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol, alltrim<span style=\"color: #000000;\">&#40;</span>_cCompanyRif<span style=\"color: #000000;\">&#41;</span>, oFont10CN,,  nColorBlack,, nJustLeft <span style=\"color: #000000;\">&#41;</span><br /><br />            oImage:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />      oPrn:<span style=\"color: #0000ff;\">EndPage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    oPrn:<span style=\"color: #000000;\">Preview</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <br />    oFont9   :<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oFont10CN:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oFont14  :<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oFont20B :<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oPenFine :<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oPenBold :<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <br />    oPrn:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> .t.<br /> </div>[/code:tak73zcl]\n\nAlguna ayuda o sugerencia?\n\nuso FW-18.01 + xHarbour", "time": "16:47", "topic": "Ayuda con Alineación y Justificación TPRINTER", "username": "JoseAlvarez" } ]
Ayuda con Alineación y Justificación TPRINTER
[ { "date": "2021-04-11", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:3txkilnu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #B900B9;\">// *************************************************************</span><br /><span style=\"color: #B900B9;\">// * Impresion del recibo de pagos</span><br /><span style=\"color: #00C800;\">FUNCTION</span> Recibo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oFont, oFont1, oPrn, nRow<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cNombre := <span style=\"color: #ff0000;\">\"JOSE ALVAREZ COMPANY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nCuit &nbsp; := <span style=\"color: #000000;\">10.000</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">PRINT</span> oPrn <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Recibo\"</span> PREVIEW <span style=\"color: #0000ff;\">MODAL</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont &nbsp; <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span> &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-14</span> BOLD <span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont1 &nbsp;<span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"CALIBRI\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-16</span> BOLD <span style=\"color: #0000ff;\">OF</span> oPrn<br /><br />&nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #000000;\">SetPage</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">//-> A4 //9</span><br />&nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #000000;\">SetPortrait</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">//-> Vertical(Retrato)</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PAGE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// * Con nRow puedes ir imprimiendo debajo de lo ultimo que imprimiste</span><br />&nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #00C800;\">PRINT</span> <span style=\"color: #0000ff;\">TO</span> oPrn <span style=\"color: #0000ff;\">TEXT</span> <span style=\"color: #ff0000;\">\"Nombre de la Empresa\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">1</span> CM <span style=\"color: #0000ff;\">FONT</span> oFont1 ALIGN <span style=\"color: #ff0000;\">\"C\"</span> LASTROW nRow<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// * 2, 1 es en 2 cm de margen superior y 1 cm del margen izquierdo</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// * SIZE 9,1 Quiere decir que el texto lo tiene que mostrar en 9 cms de ancho por 1 de alto</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// * ALING \"C\" te alinea el texto CENTRALIZADO (L: Left, R: Right) en los 9 cms que vos le indicaste</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// * Siempre con el tamaño del font que estes utilizando, eso es lo bueno...</span><br />&nbsp; &nbsp; &nbsp; @ nRow, <span style=\"color: #000000;\">01</span> <span style=\"color: #00C800;\">PRINT</span> <span style=\"color: #0000ff;\">TO</span> oPrn <span style=\"color: #0000ff;\">TEXT</span> <span style=\"color: #ff0000;\">\"Domicilio Comercial:\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">1</span> CM <span style=\"color: #0000ff;\">FONT</span> oFont LASTROW nRow ALIGN <span style=\"color: #ff0000;\">\"C\"</span><br />&nbsp; &nbsp; &nbsp; @ nRow, <span style=\"color: #000000;\">01</span> <span style=\"color: #00C800;\">PRINT</span> <span style=\"color: #0000ff;\">TO</span> oPrn <span style=\"color: #0000ff;\">TEXT</span> <span style=\"color: #ff0000;\">\"Condicion de IVA\"</span> &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">1</span> CM <span style=\"color: #0000ff;\">FONT</span> oFont LASTROW nRow ALIGN <span style=\"color: #ff0000;\">\"C\"</span><br /><br />&nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">5.5</span>, <span style=\"color: #000000;\">1</span> &nbsp; &nbsp;<span style=\"color: #00C800;\">PRINT</span> <span style=\"color: #0000ff;\">TO</span> oPrn <span style=\"color: #0000ff;\">TEXT</span> <span style=\"color: #ff0000;\">\"C.U.I.T.:\"</span> &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">3</span>, .<span style=\"color: #000000;\">5</span> CM <span style=\"color: #0000ff;\">FONT</span> oFont1 ALIGN <span style=\"color: #ff0000;\">\"R\"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// @ 5.5, 4.1 &nbsp;PRINT TO oPrn TEXT oQryPag:cuit SIZE 6, .5 CM FONT oFont ALIGN \"L\"</span><br />&nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">5.5</span>, <span style=\"color: #000000;\">4.1</span> &nbsp;<span style=\"color: #00C800;\">PRINT</span> <span style=\"color: #0000ff;\">TO</span> oPrn <span style=\"color: #0000ff;\">TEXT</span> nCuit <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">6</span>, .<span style=\"color: #000000;\">5</span> CM <span style=\"color: #0000ff;\">FONT</span> oFont ALIGN <span style=\"color: #ff0000;\">\"L\"</span><br /><br />&nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">5.5</span>, <span style=\"color: #000000;\">7.5</span> &nbsp;<span style=\"color: #00C800;\">PRINT</span> <span style=\"color: #0000ff;\">TO</span> oPrn <span style=\"color: #0000ff;\">TEXT</span> <span style=\"color: #ff0000;\">\"Razon Social:\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">4.5</span>, <span style=\"color: #000000;\">1</span> CM <span style=\"color: #0000ff;\">FONT</span> oFont1 ALIGN <span style=\"color: #ff0000;\">\"R\"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// @ 5.5, 12.5 PRINT TO oPrn TEXT AllTrim( oQryPag:nombre ) SIZE 8, 1 CM FONT oFont LASTROW nRow ALIGN \"L\"</span><br />&nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">5.5</span>, <span style=\"color: #000000;\">12.5</span> <span style=\"color: #00C800;\">PRINT</span> <span style=\"color: #0000ff;\">TO</span> oPrn <span style=\"color: #0000ff;\">TEXT</span> AllTrim<span style=\"color: #000000;\">&#40;</span> cNombre <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">1</span> CM <span style=\"color: #0000ff;\">FONT</span> oFont LASTROW nRow ALIGN <span style=\"color: #ff0000;\">\"L\"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// * Etc. Etc.</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// * Tambien puedes poner imagenes</span><br />&nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">0.5</span>, .<span style=\"color: #000000;\">5</span> &nbsp; <span style=\"color: #00C800;\">PRINT</span> <span style=\"color: #0000ff;\">TO</span> oPrn <span style=\"color: #0000ff;\">IMAGE</span> <span style=\"color: #ff0000;\">\"logo.jpg\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">06</span>, <span style=\"color: #000000;\">1</span> &nbsp;CM<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ENDPAGE</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ENDPRINT</span><br /><br />&nbsp; &nbsp;oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oFont1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp;</div>[/code:3txkilnu]\n\nSaludos.", "time": "21:53", "topic": "Ayuda con Alineación y Justificación TPRINTER", "username": "karinha" } ]
Ayuda con Alineación y Justificación TPRINTER
[ { "date": "2021-04-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Joao,\n\nHice un copy & paste de tu codigo para probarlo pero no se compiló. Todo esta muy claro y no veo componentes externos que puedan estar faltando.\n\nMe da error de SINTAXIS al compilar en todas estas lineas donde se indican las coordenadas.\n\n@ 2, 1 PRINT TO oPrn TEXT \"Nombre de la Empresa\" SIZE 9, 1 CM FONT oFont1 ALIGN \"C\" LASTROW nRow\n.\n.\n.\n@ 5.5, 12.5 PRINT TO oPrn TEXT AllTrim( cNombre ) SIZE 8, 1 CM FONT oFont LASTROW nRow ALIGN \"L\"\n\nVeo todo bien, alguna idea de que puede estar pasando ? (fw 18.01 + xHarbourBCC51)\n\n[img:3ob7j4ih]http&#58;//datanet&#46;space/fw/error&#46;jpg[/img:3ob7j4ih]", "time": "13:07", "topic": "Ayuda con Alineación y Justificación TPRINTER", "username": "JoseAlvarez" } ]
Ayuda con Alineación y Justificación TPRINTER
[ { "date": "2021-04-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Buén dia. Que lástima. No funciona en tú versión. Actualize tú FiveWin. Voy hacer otro ejemplo. Saludos.", "time": "13:43", "topic": "Ayuda con Alineación y Justificación TPRINTER", "username": "karinha" } ]
Ayuda con Alineación y Justificación TPRINTER
[ { "date": "2021-04-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Mira se comprendes:\n\n[code=fw:1nkyj46g]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> IMP_TIPO_ORDEM_ENT_RECO<span style=\"color: #000000;\">&#40;</span> DeOndePartiu, oDlgBtn <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oDlgPdf, &nbsp;oFnt, oFont, IDCor, oPrevAdobe, oSaida, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oIco, oPrevFive, oPrevGravar, oBrush, aGrad<br /><br />&nbsp; &nbsp;aGrad := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.30</span>, CLR_WHITE, CLR_WHITE <span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>, CLR_WHITE, CLR_WHITE <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">ICON</span> oIco &nbsp; &nbsp;<span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ICONE\"</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFnt &nbsp; &nbsp;<span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Ms Sans Serif\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, &nbsp;<span style=\"color: #000000;\">14</span> BOLD<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont &nbsp; <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Ms Sans Serif\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-14</span> BOLD<br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// ESTA EM: AMBIENTY.RES</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlgPdf &nbsp;<span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"DLG_BOTOES_IMPRIMIR_ORDEM\"</span> GRADIENT aGrad<br /><br />&nbsp; &nbsp;oDlgPdf:<span style=\"color: #000000;\">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">For</span> IDCor = <span style=\"color: #000000;\">401</span> <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">402</span> <span style=\"color: #B900B9;\">// Os ID's dos TEXTOS na DIALOG.</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #0000ff;\">ID</span> IDCor <span style=\"color: #0000ff;\">OF</span> oDlgPdf ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLORS CLR_BLACK, CLR_WHITE <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">FONT</span> oFnt TRANSPARENT<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Next</span> IDCor<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> GROUP oGroup <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">501</span> <span style=\"color: #0000ff;\">OF</span> oDlgPdf <span style=\"color: #0000ff;\">FONT</span> oFnt TRANSPARENT <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP oPrevAdobe <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">301</span> <span style=\"color: #0000ff;\">OF</span> oDlgPdf &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> IMPRIMIR_ORDEM_ENTREGA<span style=\"color: #000000;\">&#40;</span> DeOndePartiu := <span style=\"color: #ff0000;\">\"DIRETONAIMP\"</span>, oDlgPdf <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oPrevAdobe:<span style=\"color: #000000;\">cToolTip</span> := OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Criar o Arquivo PDF com Preview do Adobe\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP oPrevFive <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">302</span> <span style=\"color: #0000ff;\">OF</span> oDlgPdf &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> IMPRIMIR_ORDEM_ENTREGA<span style=\"color: #000000;\">&#40;</span> DeOndePartiu := <span style=\"color: #ff0000;\">\"COMPREVIEWFIVE\"</span>, oDlgPdf <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oPrevFive:<span style=\"color: #000000;\">cToolTip</span> := OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Criar o Arquivo PDF com Preview do FiveWin\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP oPrevGravar <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">303</span> <span style=\"color: #0000ff;\">OF</span> oDlgPdf &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> IMPRIMIR_ORDEM_ENTREGA<span style=\"color: #000000;\">&#40;</span> DeOndePartiu := <span style=\"color: #ff0000;\">\"COMPREVIEWPDF\"</span>, oDlgPdf <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oPrevGravar:<span style=\"color: #000000;\">cToolTip</span> := OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Preview, Apenas Gravar o PDF Para Email\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP oSaida &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">304</span> <span style=\"color: #0000ff;\">OF</span> oDlgPdf &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> oDlgPdf:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> CANCEL<br /><br />&nbsp; &nbsp;oSaida:<span style=\"color: #000000;\">cToolTip</span> := OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Saida - Exit - Cancelar\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;SET <span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #0000ff;\">OF</span> oPrevAdobe &nbsp; <span style=\"color: #0000ff;\">TO</span> oFont<br />&nbsp; &nbsp;SET <span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #0000ff;\">OF</span> oPrevFive &nbsp; &nbsp;<span style=\"color: #0000ff;\">TO</span> oFont<br />&nbsp; &nbsp;SET <span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #0000ff;\">OF</span> oPrevGravar &nbsp;<span style=\"color: #0000ff;\">TO</span> oFont<br />&nbsp; &nbsp;SET <span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #0000ff;\">OF</span> oSaida &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">TO</span> oFont<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlgPdf <span style=\"color: #0000ff;\">CENTERED</span><br /><br />&nbsp; &nbsp;oFnt:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> IMPRIMIR_ORDEM_ENTREGA<span style=\"color: #000000;\">&#40;</span> DeOndePartiu, oDlgPdf <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nI<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// SetCopies - Nao funciona, fazer assim: se precisar de varias copias</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> nI := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nCopias<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// ImpresionDocumento()</span><br /><br />&nbsp; &nbsp; &nbsp; IMPRIMIR_DOC_ENTREGA<span style=\"color: #000000;\">&#40;</span> DeOndePartiu, oDlgPdf <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp; &nbsp; MsgRun( \"GERANDO RELATÓRIO DO ORÇAMENTO. &nbsp;AGUARDE...\", ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"Por Favor, Espere! Pode Demorar um Pouco...\", ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// 3<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { || CursorWait(), WinExec( IMPRIMIR_DOC_ENTREGA( DeOndePartiu, oDlgPdf ) ), 0 } ) // QUERO QUE ESPERE.<br />&nbsp; &nbsp; &nbsp; */</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><span style=\"color: #B900B9;\">// IMPRIMIR A ORDEM DE ENTREGA</span><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> IMPRIMIR_DOC_ENTREGA<span style=\"color: #000000;\">&#40;</span> DeOndePartiu, oDlgPdf <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oPrn, nMargin, nWidth, nColWidth, nRow, nCol, oImage<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> XDATALISTA, cAlias<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oFont, oFontLogo, oFontDivi, oFontList, oFontCurs, oPen1, oPen2, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPen3, oFontSubl, ResLinha, ResColuna, cProposta, nLinha, nColuna, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oFontBold, nTotalParc := <span style=\"color: #000000;\">0.00</span>, nTotalGeral := <span style=\"color: #000000;\">0.00</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nPulaLinha, oFontMin, oFontSub2, nPagina, oFontRua, nVrTotal<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cFile <span style=\"color: #B900B9;\">// := \"C:\\ORCAMPDF\\CHAMADO.PDF\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cImpLinha, cEntregador, cFerramenta, nTotRegistro<br /><br />&nbsp; &nbsp;XDATALISTA &nbsp;:= <span style=\"color: #ff0000;\">\"São Paulo\"</span> + <span style=\"color: #ff0000;\">\", \"</span> + <span style=\"color: #ff0000;\">\"____/____/_______\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> NETERR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ERRO NA REDE. Verifique!\"</span>, <span style=\"color: #ff0000;\">\"Confirma \"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span> <br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;HB_GCALL<span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// PARA LIMPAR A MEMORIA</span><br /><br />&nbsp; &nbsp;LCHDIR<span style=\"color: #000000;\">&#40;</span> cDirPleno <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;SET <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #0000ff;\">TO</span><br /><br />&nbsp; &nbsp;aPrn := GetPrinters<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// 02/08/2017 Teste para ver se avisa erro.</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> Empty<span style=\"color: #000000;\">&#40;</span> aPrn <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Empty( oPrn:hDC )</span><br />&nbsp; &nbsp; &nbsp; MsgStop<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Nenhuma Impressora Encontrada\"</span>, <span style=\"color: #ff0000;\">\"Nenhuma Impressora Encontrada\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">PRINTER</span> oPrn PREVIEW <span style=\"color: #0000ff;\">MODAL</span> <span style=\"color: #B900B9;\">// PARA TESTAR A IMPRESSORA ANTES DE IMPRIMIR</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> EMPTY<span style=\"color: #000000;\">&#40;</span> oPrn:<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// MODIFICADO EM: 05/05/2015 - Quebrou na Gilmaria.</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ALGUMA COISA OCORREU DE ERRADO COM A IMPRESSORA.\"</span>, <span style=\"color: #ff0000;\">\"LIGUE A IMPRESSORA.\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">SELECT</span><span style=\"color: #000000;\">&#40;</span> DBRECOMPOS <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;SET ORDER <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">01</span><br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;SEEK VAL<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> .NOT. FOUND<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgStop<span style=\"color: #000000;\">&#40;</span> OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Nenhuma Proposta Localizada Para ImpressÆo\"</span> <span style=\"color: #000000;\">&#41;</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Ou NÆo Tem Produtos Informados nas µreas. \"</span> <span style=\"color: #000000;\">&#41;</span>, &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Nenhuma Proposta Localizada Para ImpressÆo\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// cProposta := VAL( nProposta ) // Numero da Proposta de orcamento</span><br />&nbsp; &nbsp;cProposta := nProposta &nbsp;<span style=\"color: #B900B9;\">// PARA O INIDICE TEMPORARIO NAO PODE O VAL()</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp;INDEX ON PROPOCOD TAG 04 TO ORCATEMP FOR ( .NOT. EOF() ) .AND. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ( DBRECOMPOS )->PROPOCOD >= cProposta &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .AND. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ( DBRECOMPOS )->PROPOCOD <= cProposta &nbsp;MEMORY //TEMPORARY<br /><br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;BROWSE()<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// filtro p/pegar a proposta, caso exista e mostrar na ListBox abaixo</span><br />&nbsp; &nbsp;ORDSCOPE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, cProposta <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// SE EXISTE PARA ALTERACAO, EXCLUSAO, INCLUSAO</span><br />&nbsp; &nbsp;ORDSCOPE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, cProposta <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;cAlias := <span style=\"color: #0000ff;\">ALIAS</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;nTotRegistro := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">WHILE</span> .NOT. EOF<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; SYSREFRESH<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>->PRODUNOME = SPACE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">30</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SKIP<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LOOP<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; SKIP<br /><br />&nbsp; &nbsp; &nbsp; ++nTotRegistro<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDDO</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// filtro p/pegar a proposta, caso exista e mostrar na ListBox abaixo</span><br />&nbsp; &nbsp;ORDSCOPE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, cProposta <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// SE EXISTE PARA ALTERACAO, EXCLUSAO, INCLUSAO</span><br />&nbsp; &nbsp;ORDSCOPE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, cProposta <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;cAlias := <span style=\"color: #0000ff;\">ALIAS</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> EOF<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgStop<span style=\"color: #000000;\">&#40;</span> OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Nenhuma Proposta Localizada Para ImpressÆo\"</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Nenhuma Proposta Localizada Para ImpressÆo\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// LOGO DA PROPOSTA</span><br />&nbsp; &nbsp;oImage := <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\L</span>OGO.jpg\"</span> &nbsp;<span style=\"color: #B900B9;\">// tem que estar na pasta</span><br /><br />&nbsp; &nbsp;cLogo := <span style=\"color: #ff0000;\">\"LOGO.JPG\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> VALIDA_JPG<span style=\"color: #000000;\">&#40;</span> cLogo <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// ESTA EM: FUNCOES.PRG</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// NADA A FAZER - IMAGEM VALIDA</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; cLogo := <span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp; &nbsp;\"</span> &nbsp;<span style=\"color: #B900B9;\">// PARA NAO QUEBRAR</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> DeOndePartiu = <span style=\"color: #ff0000;\">\"DIRETONAIMP\"</span> <span style=\"color: #B900B9;\">// DIRETO NA IMPRESSORA</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">PRINT</span> oPrn <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ORDEM_DE_ENTREGA\"</span> &nbsp;<span style=\"color: #B900B9;\">// DIRETO NA IMP.</span><br /><br />&nbsp; &nbsp;ELSEIF DeOndePartiu = <span style=\"color: #ff0000;\">\"COMPREVIEWFIVE\"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">PRINT</span> oPrn <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ORDEM_DE_ENTREGA\"</span> PREVIEW <span style=\"color: #0000ff;\">MODAL</span><br /><br />&nbsp; &nbsp;ELSEIF DeOndePartiu = <span style=\"color: #ff0000;\">\"COMPREVIEWPDF\"</span> &nbsp;<span style=\"color: #B900B9;\">// GERAR O ARQUIVO PDF.</span><br /><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">PRINT</span> oPrn PREVIEW<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontRua &nbsp;<span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> &nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-10</span> BOLD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontMin &nbsp;<span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> &nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-10</span> BOLD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont &nbsp; &nbsp; <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Lucida Console\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-10</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontBold <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Lucida Console\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-10</span> BOLD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontSubl <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> &nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-14</span> BOLD UnderLine <span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontSub2 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> &nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-12</span> BOLD UnderLine <span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//-> Caneta do Preview</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> PEN oPen1 WIDTH <span style=\"color: #000000;\">4</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> PEN oPen2 WIDTH <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> PEN oPen3 WIDTH <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #000000;\">SetPage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">//-> A4</span><br />&nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #000000;\">SetPortrait</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">//-> Vertical(Retrato)</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//-> Como Imprimir em Centimetros sem errar e em qualquer Impressora.</span><br />&nbsp; &nbsp; &nbsp; ResLinha &nbsp;:= oPrn:<span style=\"color: #000000;\">nLogPixely</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>/<span style=\"color: #000000;\">2.54</span><br />&nbsp; &nbsp; &nbsp; ResColuna := oPrn:<span style=\"color: #000000;\">nLogPixelx</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>/<span style=\"color: #000000;\">2.54</span><br /><br />&nbsp; &nbsp; &nbsp; nMargin &nbsp; := Int<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0.1</span> * oPrn:<span style=\"color: #000000;\">nHorzRes</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; nWidth &nbsp; &nbsp;:= <span style=\"color: #000000;\">8</span> * nMargin<br />&nbsp; &nbsp; &nbsp; nColWidth := Int<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> nWidth - nMargin <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; nPagina &nbsp; := <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PAGE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// LOGO</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRow &nbsp; &nbsp; &nbsp; &nbsp;:= &nbsp; <span style=\"color: #000000;\">1.50</span> &nbsp;<span style=\"color: #B900B9;\">// Linha</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCol &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">650.00</span> &nbsp;<span style=\"color: #B900B9;\">// Coluna do Logo.jpg</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// @ nRow, nCol PRINT TO oPrn IMAGE \"LOGO.JPG\" SIZE 650, 650 LASTROW nRow</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// oPrn:SayImage( nRow, nCol, \"LOGO.JPG\", oPrn:nHorzRes(), oPrn:nVertRes() , NIL, .T. )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// oPrn:SayImage( 0, 0, \"LOGO.JPG\" )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">SayImage</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.00</span>, <span style=\"color: #000000;\">350</span>, <span style=\"color: #ff0000;\">\"LOGO.JPG\"</span>, <span style=\"color: #000000;\">650</span>, <span style=\"color: #000000;\">650</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// CABECALHO</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= <span style=\"color: #000000;\">1.00</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := <span style=\"color: #000000;\">18.00</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//-> Pagina</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"P g.: \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span> STRZERO<span style=\"color: #000000;\">&#40;</span> nPagina, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oFont,, CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// &nbsp; &nbsp; &nbsp; ? LEN( ALLTRIM( nProposta ) )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.05</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.15</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">3</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.25</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">4</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.35</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">5</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.45</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">6</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.55</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">7</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.65</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">8</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.75</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">9</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.85</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">10</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.95</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">5.05</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, &nbsp;nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Orçamento Nº.: \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span>, oFont, , &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLR_BLACK, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := nColuna += &nbsp;<span style=\"color: #000000;\">19.50</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">cmSay</span><span style=\"color: #000000;\">&#40;</span> nLinha, <span style=\"color: #000000;\">19.50</span>, <span style=\"color: #ff0000;\">\"\"</span> + XDATALISTA, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFont, , &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLR_BLACK, , PAD_RIGHT <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.80</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// &nbsp; &nbsp; &nbsp; ? LEN( ALLTRIM( STR( nClienCod ) ) )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">7.60</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">7.70</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">3</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">7.80</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">4</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">7.90</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">5</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">8.00</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">6</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">8.10</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">7</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">8.20</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">8</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">8.30</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">9</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">8.40</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">10</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">8.80</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, &nbsp;nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ <span style=\"color: #ff0000;\">\"CÓD.: \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" - \"</span> +ClienPropo, &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oFontRua, , CLR_BLACK, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := &nbsp;<span style=\"color: #000000;\">6.55</span> &nbsp;<span style=\"color: #B900B9;\">// 7.75</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, &nbsp;nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + EnderPropo, oFontRua, , CLR_BLACK, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := &nbsp;<span style=\"color: #000000;\">5.30</span> &nbsp;<span style=\"color: #B900B9;\">// 5.85</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"BAIRRO: \"</span> + BairrPropo, oFontRua, , CLR_BLACK, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := nColuna += <span style=\"color: #000000;\">6.50</span> &nbsp;<span style=\"color: #B900B9;\">// 5.05</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Cidade / Uf &nbsp;falta</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// CidadPropo, UFdaPropo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"CIDADE: \"</span> + CidadPropo, oFontRua, , CLR_BLACK, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := nColuna += &nbsp; <span style=\"color: #000000;\">4.50</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"UF: \"</span> + UFdaPropo, oFontRua, , CLR_BLACK, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cOrcamento &nbsp;:= <span style=\"color: #000000;\">&#91;</span>ORDEM DE ENTREGA<span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.70</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := &nbsp;<span style=\"color: #000000;\">10.50</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ cOrcamento, oFontSubl,, CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.80</span> &nbsp; <span style=\"color: #B900B9;\">// LINHA DA QTDE - OK</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := &nbsp;<span style=\"color: #000000;\">2.70</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"QTDE \"</span> <span style=\"color: #000000;\">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oFont,, CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha -= <span style=\"color: #000000;\">0.02</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := &nbsp;<span style=\"color: #000000;\">6.00</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"PRODUTOS \"</span> <span style=\"color: #000000;\">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oFont,, CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// QTDE / PRODUTOS - AQUI</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.20</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := <span style=\"color: #000000;\">1.60</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;REPLICATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"_\"</span>, <span style=\"color: #000000;\">83</span> <span style=\"color: #000000;\">&#41;</span>, oFont,, CLR_BLACK,, PAD_LEFT <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTotLinhas := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nSomaLinha := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinRodap := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinRoda &nbsp;:= <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// 5.97</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinEsq &nbsp;:= &nbsp;<span style=\"color: #000000;\">6.31</span> &nbsp;<span style=\"color: #B900B9;\">// LINHA VERTICAL DA ESQUERDA DO QUADRO</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColEsq &nbsp;:= &nbsp;<span style=\"color: #000000;\">1.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// 5.99</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinMeio := &nbsp;<span style=\"color: #000000;\">6.31</span> &nbsp;<span style=\"color: #B900B9;\">// LINHA VERTICAL DO MEIO &nbsp; &nbsp; DO QUADRO</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColMeio := &nbsp;<span style=\"color: #000000;\">3.30</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinDir &nbsp;:= &nbsp;<span style=\"color: #000000;\">6.31</span> &nbsp;<span style=\"color: #B900B9;\">// LINHA VERTICAL DA DIREITA &nbsp;DO QUADRO</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColDir &nbsp;:= <span style=\"color: #000000;\">19.01</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// GIRAR OS PRODUTOS: AQUI.</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.50</span> &nbsp;<span style=\"color: #B900B9;\">// PRIMEIRO PRODUTO</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">WHILE</span> .NOT. EOF<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYSREFRESH<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>->PRODUNOME = SPACE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">30</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SKIP<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LOOP<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// LINHAS VERTICAIS E HORIZONTAIS DO PREVIEW - 05/04/2019 - Joao</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// LIN VERTICAL DO LADO ESQUERDO DO QUADRO.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// oPrn:cmSay( nLinEsq, nColEsq, \"|\", oFont,, CLR_BLACK,, PAD_LEFT )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinEsq * ResLinha, nColEsq * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + <span style=\"color: #ff0000;\">\"|\"</span>, oFont,, CLR_BLACK,, PAD_LEFT <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinEsq &nbsp;+= <span style=\"color: #000000;\">0.292</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// LIN VERTICAL DO MEIO</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// oPrn:cmSay( nLinMeio, nColMeio, \"|\", oFont,, CLR_BLACK,, PAD_LEFT )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinMeio * ResLinha, nColMeio * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + <span style=\"color: #ff0000;\">\"|\"</span>, oFont,, CLR_BLACK,, PAD_LEFT <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinMeio += <span style=\"color: #000000;\">0.292</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// LINHA VERTICAL DO LADO DIREITO DO QUADRO.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// oPrn:cmSay( nLinDir, nColDir, \"|\", oFont,, CLR_BLACK,, PAD_LEFT )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinDir * ResLinha, nColDir * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + <span style=\"color: #ff0000;\">\"|\"</span>, oFont,, CLR_BLACK,, PAD_LEFT <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinDir &nbsp;+= <span style=\"color: #000000;\">0.292</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := &nbsp;<span style=\"color: #000000;\">1.90</span> <span style=\"color: #B900B9;\">// COLUNA DA QTDE.</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ STR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>->PRODUQTDE <span style=\"color: #000000;\">&#41;</span>, oFont,, CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// LIN VERTICAL DO LADO ESQUERDO DO QUADRO.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//oPrn:cmSay( nLinEsq, nColEsq, \"|\", oFont,, CLR_BLACK,, PAD_LEFT )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinEsq * ResLinha, nColEsq * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + <span style=\"color: #ff0000;\">\"|\"</span>, oFont,, CLR_BLACK,, PAD_LEFT <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinEsq &nbsp;+= <span style=\"color: #000000;\">0.292</span> &nbsp;<span style=\"color: #B900B9;\">// DIZIMA</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// LIN VERTICAL DO MEIO</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// oPrn:cmSay( nLinMeio, nColMeio, \"|\", oFont,, CLR_BLACK,, PAD_LEFT )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinMeio * ResLinha, nColMeio * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + <span style=\"color: #ff0000;\">\"|\"</span>, oFont,, CLR_BLACK,, PAD_LEFT <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinMeio += <span style=\"color: #000000;\">0.292</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// LIN VERTICAL DO LADO DIREITO DO QUADRO.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// oPrn:cmSay( nLinDir, nColDir, \"|\", oFont,, CLR_BLACK,, PAD_LEFT )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinDir * ResLinha, nColDir * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + <span style=\"color: #ff0000;\">\"|\"</span>, oFont,, CLR_BLACK,, PAD_LEFT <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinDir &nbsp;+= <span style=\"color: #000000;\">0.292</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">7.00</span> <span style=\"color: #B900B9;\">// COLUNA DO PRODUTO</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>->PRODUNOME, oFont,, CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.20</span> <span style=\"color: #B900B9;\">// SEGUNDA LINHA EMBAIXO DO NOME</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">1.60</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; REPLICATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"_\"</span>, <span style=\"color: #000000;\">82</span> <span style=\"color: #000000;\">&#41;</span>, oFont,, CLR_BLACK,, PAD_LEFT <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.38</span> &nbsp;<span style=\"color: #B900B9;\">// PROXIMO PRODUTO</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// ? nLinha</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// NOVA PAGINA AQUI // PREENCHEU O PREVIEW, PULA.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nLinha >= <span style=\"color: #000000;\">25.00</span> <span style=\"color: #B900B9;\">// 26.50 &nbsp;// achou o rodape do preview nova pagina</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp; := <span style=\"color: #000000;\">27.00</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna &nbsp;:= <span style=\"color: #000000;\">10.50</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Rua Ant“nio Andr‚ Rodrigues, 433 - Ch cara Mafalda - SÆo Paulo - SP\"</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFontBold, , CLR_GREEN, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := <span style=\"color: #000000;\">10.40</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CEP - 03372-030 - Fone/Fax: 2674-3173 - Site: <!-- w --><a class=\"postlink\" href=\"http://www.ambienty.com.br\">www.ambienty.com.br</a><!-- w --> \"</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFontBold, , CLR_GREEN, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ENDPAGE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">PAGE</span> &nbsp;<span style=\"color: #B900B9;\">// NOVA PAGINA, CONTINUACAO</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// LOGO</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRow &nbsp; &nbsp; &nbsp; &nbsp;:= &nbsp; <span style=\"color: #000000;\">1.50</span> &nbsp;<span style=\"color: #B900B9;\">// Linha</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCol &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">650.00</span> &nbsp;<span style=\"color: #B900B9;\">// Coluna do Logo.jpg</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// @ nRow, nCol PRINT TO oPrn IMAGE \"LOGO.JPG\" SIZE 650, 650 LASTROW nRow</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">SayImage</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.00</span>, <span style=\"color: #000000;\">350</span>, <span style=\"color: #ff0000;\">\"LOGO.JPG\"</span>, <span style=\"color: #000000;\">650</span>, <span style=\"color: #000000;\">650</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// proxima pagina</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;++nPagina<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= <span style=\"color: #000000;\">1.00</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := <span style=\"color: #000000;\">18.00</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//-> Pagina</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"P g.: \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span> STRZERO<span style=\"color: #000000;\">&#40;</span> nPagina, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFont,, CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.05</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.15</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">3</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.25</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">4</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.35</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">5</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.45</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">6</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.55</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">7</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.65</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">8</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.75</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">9</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.85</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">10</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">4.95</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLinha &nbsp;:= <span style=\"color: #000000;\">2.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">5.05</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, &nbsp;nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Proposta Nº.: \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span> nProposta <span style=\"color: #000000;\">&#41;</span>, oFont,, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">cmSay</span><span style=\"color: #000000;\">&#40;</span> nLinha, <span style=\"color: #000000;\">19.50</span>, <span style=\"color: #ff0000;\">\"\"</span> + XDATALISTA, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFont, , &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLR_BLACK, , PAD_RIGHT <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.80</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">7.70</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">7.80</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">3</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">7.90</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">4</span> <span style=\"color: #B900B9;\">// OK</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">8.00</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">5</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">8.10</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">6</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">8.20</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">7</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">8.30</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">8</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">8.40</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">9</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">8.50</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">10</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColuna := <span style=\"color: #000000;\">8.60</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, &nbsp;nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ <span style=\"color: #ff0000;\">\"CÓD.: \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nClienCod <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" - \"</span> +ClienPropo, &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oFontRua, , CLR_BLACK, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := &nbsp;<span style=\"color: #000000;\">6.65</span> &nbsp;<span style=\"color: #B900B9;\">// 7.75</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, &nbsp;nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + EnderPropo, oFontRua, , CLR_BLACK, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := &nbsp;<span style=\"color: #000000;\">5.35</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"BAIRRO: \"</span> + BairrPropo, oFontRua, , CLR_BLACK, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := nColuna += <span style=\"color: #000000;\">6.50</span> &nbsp;<span style=\"color: #B900B9;\">// 5.05</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"CIDADE: \"</span> + CidadPropo, oFontRua, , CLR_BLACK, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := nColuna += &nbsp; <span style=\"color: #000000;\">4.50</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"UF: \"</span> + UFdaPropo, oFontRua, , CLR_BLACK, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cOrcamento &nbsp;:= <span style=\"color: #000000;\">&#91;</span>ORDEM DE ENTREGA<span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.80</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := &nbsp;<span style=\"color: #000000;\">10.50</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + cOrcamento, oFontSubl,, CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.80</span> &nbsp; <span style=\"color: #B900B9;\">// LINHA DA QTDE - OK</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := &nbsp;<span style=\"color: #000000;\">2.70</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"QTDE \"</span> <span style=\"color: #000000;\">&#41;</span>, oFont,, CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha -= <span style=\"color: #000000;\">0.02</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := &nbsp;<span style=\"color: #000000;\">6.00</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + <span style=\"color: #ff0000;\">\"PRODUTOS \"</span>, oFont,, CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// QTDE / PRODUTOS - AQUI</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.20</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := <span style=\"color: #000000;\">1.60</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; REPLICATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"_\"</span>, <span style=\"color: #000000;\">83</span> <span style=\"color: #000000;\">&#41;</span>, oFont,, CLR_BLACK,, PAD_LEFT <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinEsq &nbsp;:= &nbsp;<span style=\"color: #000000;\">6.41</span> &nbsp;<span style=\"color: #B900B9;\">// LINHA VERTICAL DA ESQUERDA DO QUADRO</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColEsq &nbsp;:= &nbsp;<span style=\"color: #000000;\">1.50</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinMeio := &nbsp;<span style=\"color: #000000;\">6.41</span> &nbsp;<span style=\"color: #B900B9;\">// &nbsp;74 LINHA VERTICAL DA ESQUERDA DO QUADRO</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColMeio := &nbsp;<span style=\"color: #000000;\">3.30</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinDir &nbsp;:= &nbsp;<span style=\"color: #000000;\">6.41</span> &nbsp;<span style=\"color: #B900B9;\">// LINHA VERTICAL DA DIREITA DO QUADRO</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColDir &nbsp;:= <span style=\"color: #000000;\">19.01</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// GIRAR OS PRODUTOS DO NOVO PREVIEW: AQUI.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp; := nLinha += <span style=\"color: #000000;\">0.50</span> <span style=\"color: #B900B9;\">// 1.00 &nbsp;// PRIMEIRO PRODUTO</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SKIP<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDDO</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// RODAPE DO QUADRO COM POUCOS PRODUTOS</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinMeio += <span style=\"color: #000000;\">1.25</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := <span style=\"color: #000000;\">18.00</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cImpLinha &nbsp; := <span style=\"color: #ff0000;\">\"______________________________\"</span> + SPACE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span> + &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"______________________________\"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cEntregador := <span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp; &nbsp; ENTREGADOR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"</span> + SPACE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span> + &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\" &nbsp; RECEBIDO POR(NOME/CARGO) &nbsp; \"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">cmSay</span><span style=\"color: #000000;\">&#40;</span> nLinha, nColuna, <span style=\"color: #ff0000;\">\"\"</span> + cImpLinha, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oFont,, CLR_BLACK,, PAD_RIGHT <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.50</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">cmSay</span><span style=\"color: #000000;\">&#40;</span> nLinha, nColuna, <span style=\"color: #ff0000;\">\"\"</span> + cEntregador, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oFont,, CLR_BLACK,, PAD_RIGHT <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Ferramentas: 03/04/2019</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cFerramenta := &nbsp;<span style=\"color: #ff0000;\">\"Ferramentas:________________________________________________________\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cFerrament2 := &nbsp;<span style=\"color: #ff0000;\">\"____________________________________________________________________\"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">2.50</span> &nbsp;<span style=\"color: #B900B9;\">// Ferramentas</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := <span style=\"color: #000000;\">10.40</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">cmSay</span><span style=\"color: #000000;\">&#40;</span> nLinha, nColuna, <span style=\"color: #ff0000;\">\"\"</span> + cFerramenta, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oFont,, CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.50</span> &nbsp;<span style=\"color: #B900B9;\">// Ferramentas</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">cmSay</span><span style=\"color: #000000;\">&#40;</span> nLinha, nColuna, <span style=\"color: #ff0000;\">\"\"</span> + cFerrament2, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oFont,, CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.50</span> &nbsp;<span style=\"color: #B900B9;\">// Ferramentas</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">cmSay</span><span style=\"color: #000000;\">&#40;</span> nLinha, nColuna, <span style=\"color: #ff0000;\">\"\"</span> + cFerrament2, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oFont,, CLR_BLACK,, PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= <span style=\"color: #000000;\">27.00</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := <span style=\"color: #000000;\">10.50</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Rua Ant“nio Andr‚ Rodrigues, 433 - Ch cara Mafalda - SÆo Paulo - SP\"</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFontBold, , CLR_GREEN, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLinha &nbsp;:= nLinha += <span style=\"color: #000000;\">0.50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColuna := <span style=\"color: #000000;\">10.40</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> nLinha * ResLinha, nColuna * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CEP - 03372-030 - Fone/Fax: 2674-3173 - Site: <!-- w --><a class=\"postlink\" href=\"http://www.ambienty.com.br\">www.ambienty.com.br</a><!-- w --> \"</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFontBold, , CLR_GREEN, , PAD_CENTER <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ENDPAGE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// DESLIGA O METAFILE NA GERACAO DO PDF. Joao</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> DeOndePartiu = <span style=\"color: #ff0000;\">\"COMPREVIEWPDF\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// oPrn:lMeta = .F. &nbsp;// Nao mostrar o PREVIEW do PDF.</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ENDPRINT</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> DeOndePartiu = <span style=\"color: #ff0000;\">\"COMPREVIEWPDF\"</span><br /><br />&nbsp; &nbsp; &nbsp; oDlgPdf:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp; &nbsp; // NAME \"ORDEM_DE_ENTREGA\" + ALLTRIM( nProposta )<br />&nbsp; &nbsp; &nbsp; FWSavePreviewToPDF( oPrn, \"ORDEM_DE_ENTREGA\" + ALLTRIM( nProposta ), .F. )<br />&nbsp; &nbsp; &nbsp; // ESTA EM: PRV2PDF.PRG do Five.<br /><br />&nbsp; &nbsp; &nbsp; // .F. NAO PERGUNTA SE QUER VISUALIZAR. ALIAS, NAO CHAMA O ADOBE.<br />&nbsp; &nbsp; &nbsp; // FWSavePreviewToPDF( oPrn, \"pruebafactura.pdf\" ,.F. )<br /><br />&nbsp; &nbsp; &nbsp; MsgInfo( \"ORDEM DE ENTREGA CRIADO EM C:\\ORCAMPDF\", ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"ORDEM DE ENTREGA CRIADO EM C:\\ORCAMPDF\" )<br />&nbsp; &nbsp; &nbsp; */</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// MUDEI EM: 08/02/2021 Uma nova experiencia com os PDFS. Joao.</span><br />&nbsp; &nbsp; &nbsp; FWSavePreviewToPDF<span style=\"color: #000000;\">&#40;</span> oPrn, <span style=\"color: #ff0000;\">\"ORDEMRECOMP.PDF\"</span>, .F. <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; PDF_SALVO_EM_ORCAMPDF<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// ESTA EM FUNCOES.PRG 23/11/2020 Joao</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Para visualizar o PDF. HTMLPDF.PRG - Nuevas versiones.</span><br />&nbsp; &nbsp; &nbsp; HTMLVIEW<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\O</span>RCAMPDF<span style=\"color: #000000;\">\\O</span>RDEMRECOMP.PDF\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oFontBold:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oFontSubl:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oFontMin:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oFontSub2:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oFontRua:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oPen1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPen2:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPen3:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// PARA FECHAR O ARQUIVO TEMPORARIO</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// OrdDestroy( \"nome_do_arquico_temporario\" )</span><br />&nbsp; &nbsp;OrdDestroy<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ORCATEMP\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> .T. <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// fin</span><br />&nbsp;</div>[/code:1nkyj46g]\n\nSaludos.", "time": "14:09", "topic": "Ayuda con Alineación y Justificación TPRINTER", "username": "karinha" } ]
Ayuda con Alineación y Justificación TPRINTER
[ { "date": "2021-04-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Includes:\n\n[code=fw:1fp35d8d]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#Define</span> PAD_LEFT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#Define</span> PAD_RIGHT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#Define</span> PAD_CENTER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">2</span><br />&nbsp;</div>[/code:1fp35d8d]\n\nSaludos.", "time": "14:40", "topic": "Ayuda con Alineación y Justificación TPRINTER", "username": "karinha" } ]
Ayuda con Alineación y Justificación TPRINTER
[ { "date": "2021-04-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola José.\nPrueba con las siguientes modificaciones a tu código:\n\n[code=fw:3db3m5gs]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> EjeConCmsay<span style=\"color: #000000;\">&#40;</span>nOrientacion<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// 1 Vertical &nbsp; 2 horizontal</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> oPrn, oImage<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> oFont9, oFont10CN, oFont14, oFont20B<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> oPenFine , oPenBold<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> cBmpLogo<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> nRow, nCol , nColorBlack<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> nRowImage, nColImage, nWidthImage, nHighImage<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">DEFAULT</span> nOrientacion := <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp; nRow:=<span style=\"color: #000000;\">1.5</span><br />&nbsp; &nbsp; nCol:=<span style=\"color: #000000;\">9</span><br />&nbsp; &nbsp; nColorBlack:=RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; nRowImage:=<span style=\"color: #000000;\">8</span><br />&nbsp; &nbsp; nColImage:=<span style=\"color: #000000;\">4</span><br />&nbsp; &nbsp; nWidthImage:=<span style=\"color: #000000;\">386</span><br />&nbsp; &nbsp; nHighImage:=<span style=\"color: #000000;\">395</span><br /><br />&nbsp; &nbsp; cBmpLogo:=<span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\F</span>WH1709<span style=\"color: #000000;\">\\B</span>ITMAPS<span style=\"color: #000000;\">\\P</span>NGS<span style=\"color: #000000;\">\\2</span>.PNG\"</span><br />&nbsp; &nbsp; oImage:= Timage<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span>,cBmpLogo<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">PRINT</span> oPrn DOC <span style=\"color: #ff0000;\">'Patron de Prueba'</span> &nbsp;PREVIEW <span style=\"color: #0000ff;\">MODAL</span><br /><br />&nbsp; &nbsp; oPrn:<span style=\"color: #000000;\">SetPage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">//A4</span><br />&nbsp; &nbsp; iif<span style=\"color: #000000;\">&#40;</span>nOrientacion=<span style=\"color: #000000;\">1</span>,oPrn:<span style=\"color: #000000;\">SetPortrait</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,oPrn:<span style=\"color: #000000;\">SetLandScape</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont9 &nbsp; &nbsp; <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-9</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont10CN &nbsp;<span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"COURIER NEW\"</span> &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-10</span> BOLD &nbsp;<span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont14 &nbsp; &nbsp;<span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-14</span> &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont20B &nbsp; <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-20</span> BOLD &nbsp;<span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> PEN &nbsp;oPenFine &nbsp; WIDTH <span style=\"color: #000000;\">2</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oPrn<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> PEN &nbsp;oPenBold &nbsp; WIDTH <span style=\"color: #000000;\">3</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oPrn<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">PAGE</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">SayImage</span><span style=\"color: #000000;\">&#40;</span>nRowImage,<span style=\"color: #000000;\">40</span>,oImage,nWidthImage,nHighImage<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">CmSay</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol, <span style=\"color: #ff0000;\">\"FRANCISCO J. ALEGRIA P.\"</span>, oFont14,, &nbsp;nColorBlack,, PAD_LEFT <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">//PAD_CENTER )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;nRow:=nRow+.<span style=\"color: #000000;\">6</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">CmSay</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol, <span style=\"color: #ff0000;\">\"Sastreria El Jet 70 Vs al Sur, Chinandega\"</span>, oFont10CN,, &nbsp;nColorBlack,, PAD_LEFT <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">//PAD_CENTER ) </span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;nRow:=nRow+.<span style=\"color: #000000;\">4</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style=\"color: #000000;\">CmSay</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol, <span style=\"color: #ff0000;\">\"XXX-YYYYYY-0000Z\"</span>, oFont10CN,, &nbsp;nColorBlack,, PAD_LEFT <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">//PAD_CENTER ) </span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ENDPAGE</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ENDPRINT</span><br /><br />&nbsp; &nbsp; oImage:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">RELEASE</span> oFont9,oFont10CN,oFont14,oFont20B,oPenFine,oPenBold<br />&nbsp; &nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> .t.<br />&nbsp;</div>[/code:3db3m5gs]", "time": "17:21", "topic": "Ayuda con Alineación y Justificación TPRINTER", "username": "FranciscoA" } ]
Ayuda con Alineación y Justificación TPRINTER
[ { "date": "2006-11-21", "forum": "FiveWin para Harbour/xHarbour", "text": "No se que poner o que configurar para que la aplicación use los archivos definidos con Apollo Database Manager.\n\nSi alguien tiene un ejemplo de como se usa el Apollo Database Server como para orientarme desde ya muchas gracias.\n\nBaje algo de Patrick Mask pero es local y es solo para mencionar que usa los indices NSX.\n\nGracias.", "time": "00:55", "topic": "Ayuda con Apollo Database Server", "username": "carlosortiz" } ]
Ayuda con Apollo Database Server
[ { "date": "2006-11-22", "forum": "FiveWin para Harbour/xHarbour", "text": "El RDD de Apollo no soporta la parte cliente servidor, solo la parte de creacion de indices y manipulacion de datos.\n\nEl Apollo Database manager solo puede utilizarse via SQL, no se puede utilizar como RDD de (x)Harbor.", "time": "05:50", "topic": "Ayuda con Apollo Database Server", "username": "R.F." } ]
Ayuda con Apollo Database Server
[ { "date": "2006-11-16", "forum": "FiveWin para CA-Clipper", "text": "Uso TSbrowse con Array y no me aparece la Barra de desplazamiento Vertical,, a alguien le ha pasado lo mismo y sin han encontrado la solucion pora compartanla\n\n\nGRACIAS", "time": "12:32", "topic": "Ayuda con Array en Browse", "username": "A&C" } ]
Ayuda con Array en Browse
[ { "date": "2005-12-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimado Colegas\n\nNecesito extraer un dato de array = a un campo de una dbf y pasarselo a \nun action de un boton si alguien me puede echar una mano\n\ndesde ya muchisimas gracias\nDante \n<!-- e --><a href=\"mailto:devwin2004@yahoo.com.ar\">devwin2004@yahoo.com.ar</a><!-- e -->\n\n\nEJ \nTestData[nI,4] = desig->nmes \n\nadjunto codigo fuente\n\n\n\n use desig\n TestData := Array( lastrec(), 4 )\n\n\n FOR nI := 1 TO Len(TestData)\n TestData[nI,1] = val(desig->dntop)\n TestData[nI,2] = val(desig->dnleft) //CANT\n TestData[nI,3] = desig->dbmp\n TestData[nI,4] = desig->nmes\n\n\n\n@ TestData[nI,1],TestData[nI,2] sbutton TestData[nI,3] FILENAME \n\n\"MESA8C.bmp\" PROMPT TestData[nI,3] size 64,64 OF oDlg pixel TEXT \n\nON_BOTTOM NO BOX Action (TestData[nI,3])\n\n\n IF .NOT.EOF()\n SKIP\n ENDIF\n NEXT\n\n\n return nil", "time": "00:37", "topic": "Ayuda con Arrays TestData[nI,4] = desig->nmes", "username": "devwin2004" } ]
Ayuda con Arrays TestData[nI,4] = desig->nmes
[ { "date": "2005-12-29", "forum": "FiveWin para CA-Clipper", "text": "Estimado Colegas\n\n\nNecesito extraer un dato de array = a un campo de una dbf y pasarselo a\nun action de un boton si alguien me puede echar una mano\n\ndesde ya muchisimas gracias\nDante \n<!-- e --><a href=\"mailto:devwin2004@yahoo.com.ar\">devwin2004@yahoo.com.ar</a><!-- e -->\n\n\nEJ \nTestData[nI,4] = desig->nmes \n\nadjunto codigo fuente\n\n\n\n\n\n use desig\n TestData := Array( lastrec(), 4 )\n\n\n FOR nI := 1 TO Len(TestData)\n TestData[nI,1] = val(desig->dntop)\n TestData[nI,2] = val(desig->dnleft) //CANT\n TestData[nI,3] = desig->dbmp\n TestData[nI,4] = desig->nmes\n\n\n\n@ TestData[nI,1],TestData[nI,2] sbutton TestData[nI,3] FILENAME \n\n\"MESA8C.bmp\" PROMPT TestData[nI,3] size 64,64 OF oDlg pixel TEXT \n\nON_BOTTOM NO BOX Action (TestData[nI,3])\n\n\n IF .NOT.EOF()\n SKIP\n ENDIF\n NEXT\n\n\n return nil", "time": "00:40", "topic": "Ayuda con Arrays TestData[nI,4] = desig->nmes", "username": "devwin2004" } ]
Ayuda con Arrays TestData[nI,4] = desig->nmes
[ { "date": "2005-12-29", "forum": "FiveWin para CA-Clipper", "text": "Por favor, genera el PPO resultante y copia aquí el resultado de:\n\n@ TestData[nI,1],TestData[nI,2] sbutton TestData[nI,3] FILENAME \n\n\"MESA8C.bmp\" PROMPT TestData[nI,3] size 64,64 OF oDlg pixel TEXT \n\nON_BOTTOM NO BOX Action (TestData[nI,3])", "time": "09:49", "topic": "Ayuda con Arrays TestData[nI,4] = desig->nmes", "username": "Antonio Linares" } ]
Ayuda con Arrays TestData[nI,4] = desig->nmes
[ { "date": "2005-12-29", "forum": "FiveWin para CA-Clipper", "text": "Antonio te envio el PPO\n\n\nGracias\nDante\n<!-- e --><a href=\"mailto:devwin2004@yahoo.com.ar\">devwin2004@yahoo.com.ar</a><!-- e -->\n\n\n#include \"FiveWin.ch\"\n#include \"Tsbutton.ch\"\n\n\n//----------------------------------------------------------------------------//\n\n\n\n\n\nfunction Main()\n\n local obmp,testdata,nI,cget,mg2,b,nkey,aFont,oFont,Afont1,xbmp[14],xnmesa[14],ntop,nleft\n locaL XX1\n local xmesa:= 0\n local nStyle := nOr( WS_POPUP, ; // System menu de oDlg\n\t\t\t WS_MAXIMIZE ) // botón maximize habilitado y botón minimize deshabilitado\n\n\n\n\n\n\n\n DEFINE FONT aFont NAME \"Arial\" SIZE 0, -14 BOLD ITALIC\n DEFINE FONT oFont NAME \"Arial Black\" SIZE 0,-18\n DEFINE FONT aFont1 NAME \"Arial\" SIZE 0, -12 BOLD ITALIC\n\n\n DEFINE WINDOW oDlg TITLE \"Database LAB\" COLOR \"N/G\" && OF oWnd MDICHILD && NOSYSMENU TION NOMAXIMIZE NOICONIZE\n\n\n\n sele 8\n use desig\n TestData := Array( lastrec(), 4 )\n\n\n FOR nI := 1 TO Len(TestData)\n TestData[nI,1] = val(desig->dntop)\n TestData[nI,2] = val(desig->dnleft) //CANT\n TestData[nI,3] = desig->dbmp\n TestData[nI,4] = desig->nmesa\n\n\n\n@ TestData[nI,1],TestData[nI,2] sbutton TestData[nI,3] FILENAME \"MESA8C.bmp\" PROMPT TestData[nI,3] size 64,64 OF oDlg pixel TEXT ON_BOTTOM NO BOX\n\n IF .NOT.EOF()\n SKIP\n ENDIF\n NEXT\n\n\n\n ACTIVATE WINDOW oDlg maximized\n\n return nil\n\n\n\n\n\n\n\u001a", "time": "14:03", "topic": "Ayuda con Arrays TestData[nI,4] = desig->nmes", "username": "devwin2004" } ]
Ayuda con Arrays TestData[nI,4] = desig->nmes
[ { "date": "2005-12-29", "forum": "FiveWin para CA-Clipper", "text": "Antonio \n\nTe lo envio perdon por el error\n\n\ngracias\nDante\n<!-- e --><a href=\"mailto:devwin2004@yahoo.com.ar\">devwin2004@yahoo.com.ar</a><!-- e -->\n\n\nfunction Main()\n\n local obmp,testdata,nI,cget,mg2,b,nkey,aFont,oFont,Afont1,xbmp[14],xnmesa[14],ntop,nleft\n locaL XX1\n local nStyle := nOr( 2147483648, 16777216 ) \n\n aFont := TFont():New( \"Arial\", 0, -14,,.T.,,,,.T.,,,,,,,, )\n oFont := TFont():New( \"Arial Black\", 0, -18,,,,,,,,,,,,,, )\n aFont1 := TFont():New( \"Arial\", 0, -12,,.T.,,,,.T.,,,,,,,, )\n\n\n oDlg := TWindow():New(,,,, \"Database LAB\",,,,,,,, \"N/G\",,,, !.F., !.F., !.F., !.F., .F. ) \n\n\n dbSelectArea( \"8\" )\n dbUseArea( .F.,, \"desig\",, if(.F. .OR. .F., !.F., NIL), .F. )\n TestData := Array( lastrec(), 4 )\n\n\n FOR nI := 1 TO Len(TestData)\n TestData[nI,1] = val(desig->dntop)\n TestData[nI,2] = val(desig->dnleft) \n TestData[nI,3] = desig->dbmp\n TestData[nI,4] = desig->nmesa\n\n\nTestData[nI,3] := NO := BOX := TSButton():New( TestData[nI,1], TestData[nI,2],TestData[nI,3],oDlg,,{\"MESA8C.bmp\"},{64,64},.T.,,,,,,,,,,,,,3,,,, )\n\n IF !EOF()\n dbSkip(1)\n ENDIF\n NEXT\n\n\n\n oDlg:Activate( Upper(\"maximized\"), oDlg:bLClicked, oDlg:bRClicked, oDlg:bMoved, oDlg:bResized, oDlg:bPainted, oDlg:bKeyDown, oDlg:bInit,,,,,,,,,,, oDlg:bLButtonUp )\n\n return nil\n\u001a", "time": "14:06", "topic": "Ayuda con Arrays TestData[nI,4] = desig->nmes", "username": "devwin2004" } ]
Ayuda con Arrays TestData[nI,4] = desig->nmes
[ { "date": "2006-01-02", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"devwin2004\":23x7njsj]\n\n FOR nI := 1 TO Len(TestData)\n TestData[nI,1] = val(desig->dntop)\n TestData[nI,2] = val(desig->dnleft) //CANT\n TestData[nI,3] = desig->dbmp\n TestData[nI,4] = desig->nmes\n\n\n\n@ TestData[nI,1],TestData[nI,2] sbutton TestData[nI,3] FILENAME \n\n\"MESA8C.bmp\" PROMPT TestData[nI,3] size 64,64 OF oDlg pixel TEXT \n\nON_BOTTOM NO BOX Action (TestData[nI,3])\n\n\n IF .NOT.EOF()\n SKIP\n ENDIF\n NEXT\n\n\n return nil[/quote:23x7njsj]\n\nLo haría de la siguiente manera.\n\nbValor := { || (TestData[nI,3]) }\n\n@ TestData[nI,1],TestData[nI,2] sbutton TestData[nI,3] FILENAME \n\n\"MESA8C.bmp\" PROMPT TestData[nI,3] size 64,64 OF oDlg pixel TEXT \n\nON_BOTTOM NO BOX Action EVAL(bValor)\n\n\nEspero funcione", "time": "18:56", "topic": "Ayuda con Arrays TestData[nI,4] = desig->nmes", "username": "wmormar" } ]
Ayuda con Arrays TestData[nI,4] = desig->nmes
[ { "date": "2011-05-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos del foro, necesito utilizar BarLib, pero no se como construirla para la version de FWH que estoy utilizando... Alguna guia por favor...\n\nGracias", "time": "05:49", "topic": "Ayuda con BarLib", "username": "JoseGS" } ]
Ayuda con BarLib
[ { "date": "2011-05-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\n<!-- m --><a class=\"postlink\" href=\"http://www.fivewin.com.br/exibedicas.asp?id=676\">http://www.fivewin.com.br/exibedicas.asp?id=676</a><!-- m -->\n\n<!-- m --><a class=\"postlink\" href=\"http://www.fivewin.com.br/exibedicas.asp?id=520\">http://www.fivewin.com.br/exibedicas.asp?id=520</a><!-- m -->\n\n<!-- m --><a class=\"postlink\" href=\"http://www.fivewin.com.br/exibedicas.asp?id=395\">http://www.fivewin.com.br/exibedicas.asp?id=395</a><!-- m -->", "time": "12:49", "topic": "Ayuda con BarLib", "username": "karinha" } ]
Ayuda con BarLib
[ { "date": "2011-05-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias amigo, voy a probar...\n\nSaludos hasta tu bello pais, desde Panama", "time": "14:31", "topic": "Ayuda con BarLib", "username": "JoseGS" } ]
Ayuda con BarLib
[ { "date": "2011-06-06", "forum": "FiveWin para Harbour/xHarbour", "text": "tengo una lib creada con xharbuor 1.2.1 si la necesitas aun dame tu correo para enviartelo.\nsaludos.", "time": "02:07", "topic": "Ayuda con BarLib", "username": "persi" } ]
Ayuda con BarLib
[ { "date": "2011-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "<!-- e --><a href=\"mailto:joseguillermosanchez@aol.com\">joseguillermosanchez@aol.com</a><!-- e -->", "time": "15:20", "topic": "Ayuda con BarLib", "username": "JoseGS" } ]
Ayuda con BarLib
[ { "date": "2011-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "José, no necesitas, te basta añadir los fuentes en tu proyecto. Asi, puedes cambiar de version de xharbour y fivewin sin problemas.\n\nSaludos.", "time": "15:52", "topic": "Ayuda con BarLib", "username": "karinha" } ]
Ayuda con BarLib
[ { "date": "2007-11-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas noches.\n\n Tengo un bitmap que simula una grafica , pues bien, necesito trazar en el bitmap, 3 lineas, que uniran 4 puntos, y que estos \"simularan\" una grafica.\n Lo hago de la siguiente manera.\n\n function DrawLine(aLineas)\n /*\n AQUI SOLO TRAZAREMOS UNOS PEQUEÑOS PUNTOS EN CADA\n COORDENADA DEL BITMAP\n */\n hDc := oCv:oBmpHdc:GetDc() \n \n hPen := CreatePen( 0, 5, RGB(0,0,0)) \n hOldPen := SelectObject( hDc, hPen )\n \n//***** Primer Trazo\n\n MoveTo( hDc, aLineas[1,1], aLineas[1,2] )\n LineTo( hDc, aLineas[1,1], aLineas[1,2] )\n \n MoveTo( hDc, aLineas[2,1], aLineas[2,2] )\n LineTo( hDc, aLineas[2,1], aLineas[2,2] )\n \n MoveTo( hDc, aLineas[3,1], aLineas[3,2] )\n LineTo( hDc, aLineas[3,1], aLineas[3,2] )\n \n MoveTo( hDc, aLineas[4,1], aLineas[4,2] )\n LineTo( hDc, aLineas[4,1], aLineas[4,2] )\n \n //***** Segundo Trazo\n\n MoveTo( hDc, aLineas[5,1], aLineas[5,2] )\n LineTo( hDc, aLineas[5,1], aLineas[5,2] )\n \n MoveTo( hDc, aLineas[6,1], aLineas[6,2] )\n LineTo( hDc, aLineas[6,1], aLineas[6,2] )\n \n MoveTo( hDc, aLineas[7,1], aLineas[7,2] )\n LineTo( hDc, aLineas[7,1], aLineas[7,2] )\n \n MoveTo( hDc, aLineas[8,1], aLineas[8,2] )\n LineTo( hDc, aLineas[8,1], aLineas[8,2] )\n \n //***** Tercer Trazo\n\n MoveTo( hDc, aLineas[9,1], aLineas[9,2] )\n LineTo( hDc, aLineas[9,1], aLineas[9,2] )\n \n MoveTo( hDc, aLineas[10,1], aLineas[10,2] )\n LineTo( hDc, aLineas[10,1], aLineas[10,2] )\n \n MoveTo( hDc, aLineas[11,1], aLineas[11,2] )\n LineTo( hDc, aLineas[11,1], aLineas[11,2] )\n \n MoveTo( hDc, aLineas[12,1], aLineas[12,2] )\n LineTo( hDc, aLineas[12,1], aLineas[12,2] )\n \n \n SelectObject( hDc, hOldPen )\n DeleteObject( hPen )\n\n oCv:oBmpHdc:ReleaseDC()\n\n reuturn nil\n\n Pues bien, tan solo dibuja la parte del TERCER TRAZO, y los restantes no los dibuja. Ademas de que cuando dejo el dialogo con ALT + TAB, esos trazos que dibujo se \"Desaparecen\".\n\n Si alguien me puede echar una mano.\n\n Por su atencion gracias\n\n Ricardo E. Guardado Flores.", "time": "03:16", "topic": "Ayuda con Bitmap", "username": "ricardog" } ]
Ayuda con Bitmap
[ { "date": "2007-11-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Ricardo,\n\nTienes que definir ese código para ser llamado desde:\n\noBitmap:bPainted = { | hDC | ...tu código... }\n\nasí cada vez que se repinte el bitmap, volverá a dibujar las líneas.\n\nSi la tercera aparece, las otras tambien deben aparecer, salvo que te estés equivocando en las coordenadas. Revísalas", "time": "07:55", "topic": "Ayuda con Bitmap", "username": "Antonio Linares" } ]
Ayuda con Bitmap
[ { "date": "2007-11-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Sr. Linares \n Muchas gracias por su ayuda, efectivamente, estaba pasando mal unas coordenadas.\n Ahora ya las dibuja correctamente, pero ahora se presenta lo siguiente.\n\n Tengo el dialogo (DIALOGO PAPA), donde se presentan las \"graficas\", y 2 botones, uno de los botones es para \"CAPTURAR\" la informacion que se interpretara, y el otro es para terminar. Antes de \"dibujar\" las lineas y los puntos, a los valores que me daran las coordenadas les asigino un valor de (CERO), y las \"graficas\" se dibujan correctamente, pero cuando oprimo el valor de la CAPTURA de los valores para interpretar la grafica, el dialogo de CAPTURA (DIALOGO HIJO), no aparece a menos que \"CIERRE\" el dialogo (PAPA). Si quito el codeblock del BITMAP, si me permite pasar al dialogo de la \"CAPTURA\", pero obviamente no me dibuja la \"grafica\".\n \n Me podria ayudar con este detalle para encontrar el error?\n\n Gracias.\n Ricardo E. Guardado Flores.", "time": "23:58", "topic": "Ayuda con Bitmap", "username": "ricardog" } ]
Ayuda con Bitmap
[ { "date": "2007-11-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Ricardo,\n\nMuéstranos el código para ver cómo lo estás haciendo, y a ser posible proporciónanos un ejemplo pequeño y autocontenido que podamos probar rapidamente para darte soporte. Gracias", "time": "00:48", "topic": "Ayuda con Bitmap", "username": "Antonio Linares" } ]
Ayuda con Bitmap
[ { "date": "2007-11-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Sr. Linares\n Solucionado.\n\n Estaba refrescando el bitmap despues de haber trazado las \"graficas\", quite esa instruccion, y listo\n\n Por su atencion muchas gracias\n\n\n Ricardo E. Guardado Flores.", "time": "22:45", "topic": "Ayuda con Bitmap", "username": "ricardog" } ]
Ayuda con Bitmap
[ { "date": "2007-11-14", "forum": "FiveWin para Harbour/xHarbour", "text": "bien! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "23:09", "topic": "Ayuda con Bitmap", "username": "Antonio Linares" } ]
Ayuda con Bitmap
[ { "date": "2006-08-26", "forum": "FiveWin para CA-Clipper", "text": "Estimado Colegas\n\nTengo un browse en un dialog y quiero que a medida que lo vaya recorriendo\ncon las teclas arriba,abajo,repag,avpag me vayas refrescando los\nsays en el mismo dialogos . Los says son de la misma dbf que el browse\nhe probado con bkeydown , pero no me funcionan las teclas vk_home\nvk_end\n\n\ndesde ya muchisimas gracias\nFabian\n<!-- e --><a href=\"mailto:Databaselab2002@yahoo.com.ar\">Databaselab2002@yahoo.com.ar</a><!-- e -->", "time": "17:58", "topic": "Ayuda con Browse y say en un mismo dialogo", "username": "Databaselab2002" } ]
Ayuda con Browse y say en un mismo dialogo
[ { "date": "2006-08-27", "forum": "FiveWin para CA-Clipper", "text": "Comprueba en Samples el módulo testlbx.prg.-", "time": "06:29", "topic": "Ayuda con Browse y say en un mismo dialogo", "username": "Manuel Valdenebro" } ]
Ayuda con Browse y say en un mismo dialogo
[ { "date": "2006-08-27", "forum": "FiveWin para CA-Clipper", "text": "Fabian,\n\nRevisa la respuesta que te he puesto en:\n<!-- m --><a class=\"postlink\" href=\"http://fivetechsoft.com/forums/viewtopic.php?p=17793#17793\">http://fivetechsoft.com/forums/viewtopi ... 7793#17793</a><!-- m -->\n\nOtra solución más fácil y que no precisa modificar la clase, es usar el codeblock bChange del browse. Ese codeblock se evalúa cada vez que se cambia de línea en el browse.", "time": "12:43", "topic": "Ayuda con Browse y say en un mismo dialogo", "username": "Antonio Linares" } ]
Ayuda con Browse y say en un mismo dialogo
[ { "date": "2014-12-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\n Tengo el siguiente código de ejemplo:\n\n[code=fw:3eao2r4b]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">48</span>,<span style=\"color: #000000;\">48</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #000000;\">2010</span> <br /><br />&nbsp;<br />&nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn1 <span style=\"color: #0000ff;\">OF</span> oBar FILE cPath+<span style=\"color: #ff0000;\">\"articulos_24x24.bmp\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Acesso Total\"</span> &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Artículos\"</span> ; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Ok!\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> TOP FLAT</div>[/code:3eao2r4b]\n\nEl problema es que el botón se pinta justo, justo por arriba y por debajo, es decir, mide exactamente igual de alto que la ButtonBar. \n\nNo encuentro como hacer, que por ejemplo la ButtonBar sea 64 pixeles de alta y los botones 48. Y además decirle, que me pinte el botón centrado, es decir,\n8 pixeles por arriba y 8 por debajo, o ponerle el nTop que yo quiera.\n\n\nA ver si alguien me puede echar una mano.", "time": "10:42", "topic": "Ayuda con ButtonBar", "username": "jmartial" } ]
Ayuda con ButtonBar
[ { "date": "2014-12-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Usando botones con BMP de 32x32 creo la barra de 60x60, aumenta un poco la barra haber como te va...tambien puedes usar la barra de la ribbon que se ve mas genial y moderna, saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->\n\nDefining a button of the buttonbar, espero te sirva...\n\n[code=fw:8n7iozn8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #000000;\">&#91;</span><oBtn><span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">OF</span> | <span style=\"color: #0000ff;\">BUTTONBAR</span> <oBar> <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">NAME</span> | <span style=\"color: #0000ff;\">RESNAME</span> | <span style=\"color: #0000ff;\">RESOURCE</span> <cResName1><span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span>,<cResName2>, <cResname3><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> FILE | FILENAME | DISK <cBmpFile1>;<br /><span style=\"color: #000000;\">&#91;</span>,<cBmpFile2> <cBmpFile3><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">ACTION</span> | EXEC <uAction> <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> GROUP <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">MESSAGE</span> <cMsg> <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">ADJUST</span> <span style=\"color: #000000;\">&#93;</span> ; * Obsolete<br /><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">WHEN</span> <uWhen> <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> TOOLTIP <cToolTip> <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> PRESSED <lPressed> <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">ON</span> DROP <bDrop><span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #00C800;\">AT</span> <nPos> <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> PROPMT < cPrompt> <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">FONT</span> <oFont> <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> NO BORDER | FLAT <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">MENU</span> <oPopup> <span style=\"color: #000000;\">&#93;</span> ;<br /><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">CENTER</span> | TOP | <span style=\"color: #0000ff;\">LEFT</span> | BOTTOM | <span style=\"color: #0000ff;\">RIGHT</span> <span style=\"color: #000000;\">&#93;</span><br /> </div>[/code:8n7iozn8]", "time": "17:11", "topic": "Ayuda con ButtonBar", "username": "joseluisysturiz" } ]
Ayuda con ButtonBar
[ { "date": "2014-12-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Jose,\n\nPor un lado, el usar bitmaps más pequeños lo único que hace es que la barra se autoajuste, pero al seleccionar sigue el problema de que ocupa la altura completa.\n\nLo de la ribbon, está creado con unas pestañas y para hacer grupos, esa no es la idea.\n\nGracias de todos modos por tus sugerencias.", "time": "11:09", "topic": "Ayuda con ButtonBar", "username": "jmartial" } ]
Ayuda con ButtonBar
[ { "date": "2014-12-25", "forum": "FiveWin para Harbour/xHarbour", "text": "La ribbon la puedes usar como una ButtonBar, las pestañas pueden ocultarse\n\n[img:1mvg9uwh]http&#58;//i62&#46;tinypic&#46;com/2gtvjx4&#46;jpg[/img:1mvg9uwh]\n\nLa segunda buttonbar es una ribbon.\n\nSaludos", "time": "14:50", "topic": "Ayuda con ButtonBar", "username": "horacio" } ]
Ayuda con ButtonBar
[ { "date": "2014-12-25", "forum": "FiveWin para Harbour/xHarbour", "text": "El colega Horacio se adelanto a mi respuesta, la ribbon la puedes usar con una sola pestaña y la ocultas y tienes el bien de poner los iconos del tamaño que quieras y en la posicion que quieras y combinar iconos de diferentes tamaños, se veria igual a la button bar y hasta mas elegante, seria una buena opcion, saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "15:40", "topic": "Ayuda con ButtonBar", "username": "joseluisysturiz" } ]
Ayuda con ButtonBar
[ { "date": "2014-12-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Horacio, Jose Luis,\n\nCómo ocultais las pestañas de la RibbonBar ?", "time": "17:30", "topic": "Ayuda con ButtonBar", "username": "Antonio Linares" } ]
Ayuda con ButtonBar
[ { "date": "2014-12-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio, no definiendo los prompts y poniendo el TopMargin a 0 \n\n[code=fw:10k2uaog]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">Define</span> Ribbonbar oRBar <span style=\"color: #0000ff;\">Window</span> oVarGlobales : <span style=\"color: #000000;\">oWndHijas</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> Height <span style=\"color: #000000;\">58</span> Topmargin <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">2010</span> <span style=\"color: #0000ff;\">Color</span> RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">220</span>, <span style=\"color: #000000;\">235</span>, <span style=\"color: #000000;\">252</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:10k2uaog]\n\nSaludos", "time": "22:04", "topic": "Ayuda con ButtonBar", "username": "horacio" } ]
Ayuda con ButtonBar
[ { "date": "2014-12-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio, es mas que todo un truco visual, si dejas las pestañas y pones TopMargin en 0, oculta las pestañas por la posicion de la barra y puedes hacer referencia a ellas y hasta usar la opcion ALT, pero si no quieres nada de eso...Ya lo dijo el colega, saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\n[code=fw:2u4it0o1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   <span style=\"color: #0000ff;\">DEFINE</span> RIBBONBAR oRBar <span style=\"color: #0000ff;\">WINDOW</span> oDatos:<span style=\"color: #000000;\">oWndPPAL</span> HEIGHT <span style=\"color: #000000;\">90</span> TOPMARGIN <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">2010</span><br /><br />   ADD GROUP oGrupos<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> RIBBON oRBar <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">1</span> width <span style=\"color: #000000;\">270</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Agrupación\"</span><br /><br />   @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">5</span> ADD <span style=\"color: #0000ff;\">BUTTON</span> aBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Cancelar\"</span> ;<br />      BITMAP <span style=\"color: #ff0000;\">\"bitmaps<span style=\"color: #000000;\">\\c</span>ancel32.bmp\"</span> ;<br />      GROUP oGrupos<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> Alert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />      <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">55</span><br /><br />   @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">65</span> ADD <span style=\"color: #0000ff;\">BUTTON</span> aBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Factura\"</span> ;<br />      BITMAP <span style=\"color: #ff0000;\">\"bitmaps<span style=\"color: #000000;\">\\f</span>actura32.bmp\"</span> ;<br />      GROUP oGrupos<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> Alert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />      <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">55</span><br /><br />   @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">130</span> ADD <span style=\"color: #0000ff;\">BUTTON</span> aBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Marcar\"</span> ;<br />      BITMAP <span style=\"color: #ff0000;\">\"bitmaps<span style=\"color: #000000;\">\\m</span>arca32.bmp\"</span> ;<br />      GROUP oGrupos<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> Alert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />      <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">55</span><br /><br />   @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">195</span> ADD <span style=\"color: #0000ff;\">BUTTON</span> aBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Salir\"</span> ;<br />      BITMAP <span style=\"color: #ff0000;\">\"bitmaps<span style=\"color: #000000;\">\\s</span>alir32.bmp\"</span> ;<br />      GROUP oGrupos<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oDatos:<span style=\"color: #000000;\">oWndPPAL</span>:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />      <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">55</span><br /> </div>[/code:2u4it0o1]", "time": "03:41", "topic": "Ayuda con ButtonBar", "username": "joseluisysturiz" } ]
Ayuda con ButtonBar
[ { "date": "2014-12-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Jose Luis, no se me había ocurrido la idea de definir varias pestañas ocultas. Buena idea ...\n\nSaludos", "time": "14:16", "topic": "Ayuda con ButtonBar", "username": "horacio" } ]
Ayuda con ButtonBar
[ { "date": "2014-12-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Horacio, Jose Luis, muy bueno, gracias", "time": "14:38", "topic": "Ayuda con ButtonBar", "username": "cnavarro" } ]
Ayuda con ButtonBar