messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2013-11-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Manuel,\n\nNo se cual pueda ser tu problema.\nDesaconsejo utilizar el APPEND FROM DELIMITED por el delimitador.\nImaginate que tienes un asterisco en el telefono o en la direccion: pues ya la tenemos liada.\n\nAsi que te aconsejo hacer una lectura con el lector de archivos txt que tiene fw, transformarla en un array de tokens e ir comprobando que cada token tiene la longitud (nº de columnas) esperadas, sino significara que el caracter delimitador esta siendo usado en algun campo. Ademas, el hacerlo asi, el tener una rutina para esto, te dara mas control y podras por ejemplo hacer conversiones en el momento de la conversion o podras grabar en campos distintos al mero orden.\n\nUn saludo", "time": "20:45", "topic": "APPEND FROM DELIMITED", "username": "hmpaquito" } ]
APPEND FROM DELIMITED
[ { "date": "2013-11-20", "forum": "FiveWin para Harbour/xHarbour", "text": "hmpaquito, muchas gracias por el consejo.", "time": "10:55", "topic": "APPEND FROM DELIMITED", "username": "Manuel Aranda" } ]
APPEND FROM DELIMITED
[ { "date": "2013-11-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Manuel,\nSi aún no lo has solucionado, ¿podríamos ver, al menos, las primeras 10 líneas del .txt?\nSaludos.", "time": "20:49", "topic": "APPEND FROM DELIMITED", "username": "FranciscoA" } ]
APPEND FROM DELIMITED
[ { "date": "2007-08-14", "forum": "FiveWin for Harbour/xHarbour", "text": "I am not able to append from a dbf file when it has a .CDX file associated with it. The only way I can do it is to delete the cdx file first, then do an \"INDEX ON...\" to rebuild it after I append from it. Is this a limitation of xHarbour or is it a bug?\n\nCharles", "time": "21:48", "topic": "APPEND FROM not working when CDX file exist", "username": "CharlesPratt" } ]
APPEND FROM not working when CDX file exist
[ { "date": "2007-08-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Can you show a reduced sample of the problem?\n\nEMG", "time": "22:39", "topic": "APPEND FROM not working when CDX file exist", "username": "Enrico Maria Giordano" } ]
APPEND FROM not working when CDX file exist
[ { "date": "2007-08-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico - \nYou can download a sample that shows the problem from <!-- m --><a class=\"postlink\" href=\"http://www.softraksystems.com/download/append.zip\">http://www.softraksystems.com/download/append.zip</a><!-- m --> Run the exe file and look at the prg file. I also included the error.log which appears in the app directory after it overwrites the first one that you see when the error occurs. The one you see says \"alias not found\", but is overwritten by the one that says \"hb_cdxIndexFree: Index file still locked.\" \n\nThe problem appears to be that dbCloseArea() does not release the lock on the CDX file that has been previously opened with the dbf file as EXCLUSIVE. \n\nThanks for your help.\n\nCharles", "time": "12:33", "topic": "APPEND FROM not working when CDX file exist", "username": "CharlesPratt" } ]
APPEND FROM not working when CDX file exist
[ { "date": "2007-08-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Page not found. Please paste here the PRG showing the problem.\n\nEMG", "time": "15:02", "topic": "APPEND FROM not working when CDX file exist", "username": "Enrico Maria Giordano" } ]
APPEND FROM not working when CDX file exist
[ { "date": "2007-08-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico - \nNow the download link works. Sorry I didn't test it before.\n\nCharles", "time": "15:45", "topic": "APPEND FROM not working when CDX file exist", "username": "CharlesPratt" } ]
APPEND FROM not working when CDX file exist
[ { "date": "2007-08-16", "forum": "FiveWin for Harbour/xHarbour", "text": "The following sample works fine here:\n\n[code:gzeb0yxy]REQUEST DBFCDX\n\n\nFUNCTION MAIN&#40;&#41;\n\n RDDSETDEFAULT&#40; \"DBFCDX\" &#41;\n\n DBCREATE&#40; \"ERRTEST\", &#123; &#123; \"TEST\", \"C\", 35, 0 &#125; &#125; &#41;\n\n USE ERRTEST\n\n INDEX ON FIELD -> test TO ERRTEST\n\n APPEND BLANK\n\n REPLACE FIELD -> test WITH \"Test\"\n\n DBCREATE&#40; \"ERRTEST2\", &#123; &#123; \"TEST\", \"C\", 35, 0 &#125; &#125; &#41;\n\n USE ERRTEST2\n\n APPEND FROM ERRTEST\n\n RETURN NIL[/code:gzeb0yxy]\n\nPlease add the minimal amount of code needed to replicate the problem.\n\nEMG", "time": "17:10", "topic": "APPEND FROM not working when CDX file exist", "username": "Enrico Maria Giordano" } ]
APPEND FROM not working when CDX file exist
[ { "date": "2007-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nIt has been some time since I used \"Append\".\n\nBut if I remember well, the file from which you append, must be closed.\n\nCould that solve your problem ?\n\nGood luck.", "time": "01:24", "topic": "APPEND FROM not working when CDX file exist", "username": "driessen" } ]
APPEND FROM not working when CDX file exist
[ { "date": "2007-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, you are right, as COPY TO opens the destination file in exclusive mode.\n\nEMG", "time": "07:46", "topic": "APPEND FROM not working when CDX file exist", "username": "Enrico Maria Giordano" } ]
APPEND FROM not working when CDX file exist
[ { "date": "2007-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico - \nThe following code is very simple, and causses the error to occur. Rather than using dbcreate as you did, I am using the customer.dbf from the FWH samples folder. The first time you run this, un-comment the COPY TO CUST line to produce the tcust.dbf. \n\nREQUEST DBFCDX\n\nRDDSETDEFAULT(\"DBFCDX\")\n\nUSE CUSTOMER NEW EXCLUSIVE\nINDEX ON CUSTOMER->LAST TAG LAST\nINDEX ON CUSTOMER->SALARY TAG SALARY\nDBGOTOP()\n\n *COPY TO TCUST\n \nCUSTOMER->(DBCLOSEAREA())\n\nUSE TCUST\nZAP\nAPPEND FROM CUSTOMER\n\nRETURN NIL\n\nRegards,\nCharles", "time": "15:25", "topic": "APPEND FROM not working when CDX file exist", "username": "CharlesPratt" } ]
APPEND FROM not working when CDX file exist
[ { "date": "2007-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Same error with Clipper. The reason is that you can't use aliases inside the index key. Change as follows:\n\n[code:2e06dvv1]INDEX ON FIELD->LAST TAG LAST\nINDEX ON FIELD->SALARY TAG SALARY[/code:2e06dvv1]\n\nEMG", "time": "16:15", "topic": "APPEND FROM not working when CDX file exist", "username": "Enrico Maria Giordano" } ]
APPEND FROM not working when CDX file exist
[ { "date": "2007-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "That fixes it. Many thanks, Enrico. I have some code to change in some of my apps.\n\nCharles", "time": "18:37", "topic": "APPEND FROM not working when CDX file exist", "username": "CharlesPratt" } ]
APPEND FROM not working when CDX file exist
[ { "date": "2020-11-15", "forum": "mod_harbour", "text": "Dear Antonio,\nWhere do I find AP_GETENV in source code.\nIn apache.prg I see: extern HB_VMPROCESSSYMBOLS, HB_VMEXECUTE, AP_GETENV, AP_BODY, HB_URLDECODE\nCan you please explain to me what this means.\nThank you so much.\nBest regards,\nOtto", "time": "09:04", "topic": "AP_GETENV", "username": "Otto" } ]
AP_GETENV
[ { "date": "2020-11-16", "forum": "mod_harbour", "text": "Dear Otto,\n\n[url:3row6b4s]https&#58;//github&#46;com/FiveTechSoft/mod_harbour/blob/master/source/in&#46;c[/url:3row6b4s]\n\n[code=fw:3row6b4s]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> AP_GETENV <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;hb_retc<span style=\"color: #000000;\">&#40;</span> apr_table_get<span style=\"color: #000000;\">&#40;</span> GetRequestRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>->subprocess_env, hb_parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span> &nbsp;</div>[/code:3row6b4s]", "time": "08:39", "topic": "AP_GETENV", "username": "Antonio Linares" } ]
AP_GETENV
[ { "date": "2020-11-16", "forum": "mod_harbour", "text": "Dear Otto,\n\n> extern HB_VMPROCESSSYMBOLS, HB_VMEXECUTE, AP_GETENV, AP_BODY, HB_URLDECODE\n\nTo force the link of those symbols", "time": "08:40", "topic": "AP_GETENV", "username": "Antonio Linares" } ]
AP_GETENV
[ { "date": "2007-01-22", "forum": "FiveWin para Harbour/xHarbour", "text": "alguien me podria facilitar un ejemplo operativo de TREE\n\nGRACIAS", "time": "20:42", "topic": "ARBOLES", "username": "A&C" } ]
ARBOLES
[ { "date": "2007-01-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigo\n\nRevisas el ejemplo TESTTREE.PRG en SAMPLES, ok?", "time": "00:11", "topic": "ARBOLES", "username": "Rochinha" } ]
ARBOLES
[ { "date": "2016-07-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigo como Actualizo los Total en este Archivo TestMerg,prg ya que le agregue el edit \n\n\n WITH OBJECT oBrw:aCols[ 5 ]\n :nEditType := EDIT_GET\n :nFooterType := AGGR_SUM\n END\npero no actuliza el total solo el gran total\nSaludos", "time": "18:27", "topic": "ARCHIVO TESTMERG.PRG", "username": "jbrita" } ]
ARCHIVO TESTMERG.PRG
[ { "date": "2016-07-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Agregale oBrw:MakeTotals() despues de salir de la edicion.", "time": "17:15", "topic": "ARCHIVO TESTMERG.PRG", "username": "cmsoft" } ]
ARCHIVO TESTMERG.PRG
[ { "date": "2018-08-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados amigos\nEstoy usando en Rpreview en una aplicacion y me encuentro con que es imposible borrar los metafiles que se generan en el \\TEMP de windows.\nCuando la aplicación arranca hago un aEval(Directory(Gentenv('TEMP')+'\\*.emf'),{|aFiles| ferase(Getenv('TEMP')+'\\'+aFiles[1])}) y se borran todos perfectamente.\nAhora bien, cuando hago un preview de cualquier listado o Report, todo funciona bien, se generan los metafiles correspondientes y se muestran en el Preview, luego efectúo la impresión y cierro el preview. LOS ARCHIVOS METAFILES PERMANECEN EN SU LUGAR y se van acumulando a medida que voy haciendo distintos preview, es imposible borrarlos manualmente porque me dan un error de que EL ARCHIVO A BORRAR ESTA EN USO POR OTRO PROCESO !!!\nEl preview ya fue cerrado, incluso cambio de proceso y no hay forma de borrarlos hasta que cierro la aplicación y la arranco nuevamente.\nHe probado de todo para liberarlos, oPrn:end(), DeleteEnhMetafile(CloseEnhMetafile(hHand)), ferase(cFile) etc,ctc,etc.\nCon aplicaciones viejas de 16bits. el preview termina y los metafiles (*.wmf) se borran todos automáticamente. Mire la clase rpreview pero no encuentro la causa de dicho comportamiento.\nAlguien podría, por favor orientarme ? será un 'BUG' de la Tprinter o la Rpreview ?\nMuchas gracias a todos", "time": "20:37", "topic": "ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos", "username": "rterraz" } ]
ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos
[ { "date": "2018-08-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Intenta asi, al salir del sistema(programa principal),\n\n[code=fw:2pxr1ehw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> LIBERA_TODO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;DELETEFILE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\W</span>INDOWS<span style=\"color: #000000;\">\\T</span>EMP<span style=\"color: #000000;\">\\*</span>.EMF\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;DbCommitAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;DbUnLockAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;DbCloseAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;FreeResources<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">Release</span> All<br />&nbsp; &nbsp;SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_GCALL<span style=\"color: #000000;\">&#40;</span> .T. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;CLEAR MEMORY<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> FILE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"checkres.txt\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; FErase<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"checkres.txt\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;CheckRes<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;PostQuitMessage<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;QUIT<br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp;</div>[/code:2pxr1ehw]\n\nSaludos.", "time": "20:49", "topic": "ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos", "username": "karinha" } ]
ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos
[ { "date": "2018-08-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Karinha un gusto conocerte!\nmuchas gracias por tu aporte.\nLo probe pero los *.EMF siguen sin permitir ser borrados hasta que no salgo totalmente de la aplicación o entro de nuevo.\nPor lo que veo la Rpreview los genera y los abre para mostrarlos y luego no los libera mas y es imposible borrarlos.\nLo que pasa que en mi aplicación yo genero liquidaciones y al terminar guardo los *.emf en un archivo zip por si en algun momento es necesario reimprimirlas.\nSi esto ocurre abro el ZIP en una carpeta, extraigo los *.emf y realizo el preview de los mismos y su reimpresión.\nHasta ahi todo Ok, una vez terminada la reimpresión debo borrar los *.EMF que recuperé para que no se mezclen con otras posibles reimpresiones y eso es imposible.Me dice que la aplicacion mantiene habiertos los archivos y que es imposible borrarlos. COMO LOS CIERRO ????\nEn 16bits la rpreview los borra automaticamente al terminar el preview, pero en 32bits no funciona <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \nSaludos desde Argentina", "time": "15:17", "topic": "ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos", "username": "rterraz" } ]
ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos
[ { "date": "2018-08-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Creo, sea mejor generar todo en *.PDF, yo hago asi y no tengo problemas y és más seguro.\n\n[img:3sj8hviv]https&#58;//i&#46;imgur&#46;com/t2rlh6w&#46;png[/img:3sj8hviv]", "time": "15:38", "topic": "ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos", "username": "karinha" } ]
ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos
[ { "date": "2018-08-08", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:3rturfsg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"Directry.ch\"</span><br /><br /><span style=\"color: #00C800;\">static</span> oWnd<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBar<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp;AEVAL(DIRECTORY( \"TEMP*.*\" &nbsp; &nbsp; ),{ |aFILE| FERASE(aFILE[F_NAME]) } )<br />&nbsp; &nbsp;AEVAL(DIRECTORY( \"SOMA*.*\" &nbsp; &nbsp; ),{ |aFILE| FERASE(aFILE[F_NAME]) } )<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> FILE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\W</span>INDOWS<span style=\"color: #000000;\">\\T</span>EMP<span style=\"color: #000000;\">\\T</span>ESTE.EMF\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; DELETEFILE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\W</span>INDOWS<span style=\"color: #000000;\">\\T</span>EMP<span style=\"color: #000000;\">\\T</span>ESTE.EMF\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> FILE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\W</span>INDOWS<span style=\"color: #000000;\">\\T</span>EMP<span style=\"color: #000000;\">\\T</span>ESTE.EMF\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;? <span style=\"color: #ff0000;\">\"Porque no borra? computadora con VIRUS? \"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LIBERA_TODO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Borra Emf\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> LIBERA_TODO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// salir</span><br /><br />&nbsp; &nbsp;SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"Borra Emf\"</span> NOINSET CLOCK DATE KEYBOARD<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> LIBERA_TODO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;DELETEFILE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\W</span>INDOWS<span style=\"color: #000000;\">\\T</span>EMP<span style=\"color: #000000;\">\\*</span>.EMF\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;DbCommitAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;DbUnLockAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;DbCloseAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;FreeResources<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">Release</span> All<br />&nbsp; &nbsp;SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_GCALL<span style=\"color: #000000;\">&#40;</span> .T. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;CLEAR MEMORY<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp;IF FILE( \"checkres.txt\" )<br />&nbsp; &nbsp; &nbsp; FErase( \"checkres.txt\" )<br />&nbsp; &nbsp;ENDIF<br /><br />&nbsp; &nbsp;CheckRes()<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;PostQuitMessage<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;QUIT<br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp;</div>[/code:3rturfsg]\n\nSaludos.", "time": "16:46", "topic": "ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos", "username": "karinha" } ]
ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos
[ { "date": "2018-08-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Hora Karinha\nGracias por seguir ocupandote del tema.\nTe explico...cuando recien entras a la aplicacion o cuando ejecutas la Libera_todo despues de haber terminado la aplicación (saliste de la oWnd del main)\nlos archivo se borran sin problemas.\nEl problema surge una vez que has hecho un preview.\nA partir de alli TODOS los nuevos *.EMF que se van generando quedan capturados y es imposible borrarlos!!!\nProba hacer un preview de alguna impresión y una vez que hayas terminado anda a la carpeta Getenv('TEMP') de windows e intenta borrar alguno de los *emf que encuentres y vas a ver lo que ocurre (imposible borrarlos). [b:2hzsk85t]Tenes que estar con la aplicación que hizo la impresión corriendo[/b:2hzsk85t]\nLo probamos en windows10 y windows7 y es lo mismo. Usando la Preview en 16bits los *.EMF se borran automaticamente al terminar el preview, por eso creo que el problema se encuentra en algun lugar de la Clase rPreview pero he probado algunas modificaciones de la misma y NADA.\nun abrazo", "time": "17:36", "topic": "ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos", "username": "rterraz" } ]
ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos
[ { "date": "2018-08-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Mira en RPREVIEW.PRG si el comando DELETEMETAFILE(), está funcionando; Saludos.", "time": "14:31", "topic": "ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos", "username": "karinha" } ]
ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos
[ { "date": "2018-08-09", "forum": "FiveWin para Harbour/xHarbour", "text": "el DeleteEnhMetafiles() no los borra \nEstuve mirando con el comando OPENFILES del sistema y me muestra que todos los *.emf estan abiertos por la aplicación (el oWnd main del EXE de FWH)\nHasta que no salgo de la misma no se liberan!!!\nPasa en cualquier version de windows. Hay algo en el ejecutable que los mantiene abiertos.\nSi queres probar hace un pequeño exe que haga un PREVIEW de cualquier listado y vas a ver que hasta que no cerras el exe no podes borrarlos <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \nEstoy por abandonar <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: --> \nsaludos", "time": "17:08", "topic": "ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos", "username": "rterraz" } ]
ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos
[ { "date": "2018-08-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Que raro. \nEn mi versión FWH 1204, los EMF son borrados inmediatamente después de cerrar el preview.\nPor supuesto si no cierras el preview no se puede borrarlos.\n\nTienes modificada la classe tprinter, metodo end()?\n\nSeria bueno que mostraras tu código.\n\nSaludos.", "time": "20:06", "topic": "ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos", "username": "FranciscoA" } ]
ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos
[ { "date": "2018-08-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Tengo el fwh 18 y la clase tprinter y rpreview estan originales.\nCompare el metodo end() con el de versiones anteriores y es igual. \nHay algo que mantiene los emf capturados y impide actuar al ferase() del metodo end().\nHe probado con oprinter:end() y oprinter:=nil y nada\n Ya me canse voy a tratar por otro lado\nMuchas gracias.\nPd. Cuando cierro la aplicacion los archivos se liberan.poe eso los borro todos al inicio pero ni bien hago un preview se empiezan a acumular y tengo listados que producen cientos de ellos ???", "time": "21:29", "topic": "ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos", "username": "rterraz" } ]
ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos
[ { "date": "2008-12-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Problema SOLUCIONADO, favor de hacer caso omiso al mensaje anterior.\r\n\r\n Gracias\r\n\r\n\r\n Ricardo E. Guardado Flores", "time": "18:49", "topic": "ARCHIVOS . MEM", "username": "ricardog" } ]
ARCHIVOS . MEM
[ { "date": "2008-09-26", "forum": "FiveWin para CA-Clipper", "text": "Hola\r\n\r\nTodos venimos de Clipper, y soliamos utilizar el famomo HEADMAIN.MEM que no era mas que un file donde guardabamos variables de memoria, herede esta costumbre al paso al FiveWin (16 bits) aun, y sospecho que me esta generando los problemas de GPF, las variables contenidas en este archivo pasan a ser PUBLICAS y por ende ocupan recursos de memoria?, he intentado urtilizar un array y #Xtraslate pero no tengo buen resultado, Antonio a lo mejor hay alguna solucion.\r\n\r\nGracias", "time": "17:00", "topic": "ARCHIVOS .MEM", "username": "LuisPonce" } ]
ARCHIVOS .MEM
[ { "date": "2008-09-27", "forum": "FiveWin para CA-Clipper", "text": "Luis,\r\n\r\nQue variables estas guardando en ese fichero MEM ?\r\n\r\nDesde donde y cuando las restauras ?", "time": "00:00", "topic": "ARCHIVOS .MEM", "username": "Antonio Linares" } ]
ARCHIVOS .MEM
[ { "date": "2008-09-27", "forum": "FiveWin para CA-Clipper", "text": "Hola Antonio\r\n\r\nGracias por tu respuesta, en ese file guardo los nombres de las tablas que utilizo, Pictures y otras :\r\n\r\nUSE &FIL01\r\n\r\nUSE &FIL02..... \r\n\r\nComo comprenderas son casi com cincuenta, y parametros de mis sistemas, decimales, ruta de mi servidor, impuestos y demas.\r\n\r\ny lo abro al inicio del sistema, en mi modulo principal algo asi como esto :\r\n\r\n#include \"FiveWin.ch\"\r\n#include \"Folder.ch\"\r\n#include \"Report.Ch\"\r\n#include \"SSay.ch\"\r\n#Include \"Ord.Ch\"\r\n\r\nSTATIC oWnd,hBorland,oMenu,oCursorMano\r\nSTATIC cVersion:=\"Ventas Ver. 7.0\"\r\nSTATIC cMiCia :=\"\"\r\nSTATIC cMiRuc :=\"\"\r\nSTATIC cMiDir :=\"\"\r\nSTATIC cMiDi2 :=\"\"\r\nSTATIC cMiDi3 :=\"\"\r\nSTATIC cMiPro :=\"\"\r\nSTATIC cMiCom :=\"\"\r\nSTATIC cMiMail :=\"la_ponce@hotmail.com\"\r\n\r\n//----------------------------------------------------------------------------//\r\n\r\nFunction Main()\r\n LOCAL oBrush,oIco,oBarraBotones\r\n LOCAL oBtnCaptura,oBtnParametros,oBtnCalculador,oBtnClient,oBtnProveed,oBtnABusca,oBtnArticulos,oBtnReindexa,oBtnSalir,oBtnCotiza,oBtnCaja,oBtnTactil,oBtnInternet\r\n LOCAL oBmp,oFont,oFontComic,oMiCasilla,oTcCasilla,oNetCasilla\r\n LOCAL cBrocha,cLogoInicial,aMiCia\r\n LOCAL lValidaSys,lValidaRed\r\n\r\n PUBLIC cCodFilial:=\"\"\r\n PUBLIC cNomFilial:=\"\"\r\n PUBLIC cAbrFilial:=\"\"\r\n PUBLIC TCambio,lFilCentral\r\n PUBLIC mmUsuario,mmInicial,mmNombre,mmAcceso,mmUltimo,mmModulo,mmIngreso,mmRegPss\r\n PUBLIC cImpNet,cImpLoc,cImpXls\r\n\r\n hBorland := LoadLibrary( \"BWCC.DLL\" ) // Loading Borland's dll\r\n SET RESOURCES TO \"VT20998.dll\"\r\n SET DATE GERMAN\r\n SET _3DLOOK ON\r\n\r\n RESTORE FROM HEADMAIN\r\n RESTORE FROM HEADIMPT ADDITIVE\r\n\r\n lValidaSys := ValidaSys()\r\n lValidaRed := ValidaRed()\r\n aMiCia := IF(lValidaSys,QMiCia(),{ \"INTEL SOFT S.C.R.Ltda.\", \"Av. de la Cultura 1-A\",\"20225059559\",\"PacificSoft\" })\r\n cMiCia := aMiCia[1]\r\n cMiDir := aMiCia[2]\r\n cMiRuc := aMiCia[3]\r\n cMiCom := aMiCia[4]\r\n cBrocha := BcaTapiz(TRIM(IMPTPZ))\r\n cLogoInicial:= TRIM(IMPLG0)\r\n nWindows := IIF(IsWin95(),1,2).....\r\n\r\n DEFINE FONT oFont NAME \"MS SANS SERIF\" SIZE 0,-10 // ancho,alto\r\n DEFINE FONT oFontComic NAME \"Comic Sans Ms\" SIZE 8, 15\r\n DEFINE ICON oIco RESOURCE \"ICONO\"\r\n DEFINE CURSOR oCursorMano RESOURCE \"Hand\"\r\n\r\n IF nWindows=1 // Windows 95/98\r\n\r\n IF lValidaRed\r\n DEFINE WINDOW oWnd MDI ;\r\n TITLE \"Sistema de Ventas\" ;\r\n BRUSH oBrush ;\r\n ICON oIco ;\r\n MENU IIF(lValidaSys.and.lValidaRed,BuildMenu(),SalirMenu())\r\n ELSE\r\n DEFINE WINDOW oWnd MDI ;\r\n TITLE \"Sistema de Ventas\" ;\r\n BRUSH oBrush ;\r\n ICON oIco ;\r\n MENU SalirMenu()\r\n\r\n ENDIF\r\n\r\n ELSE\r\n\r\n IF lValidaRed\r\n DEFINE WINDOW oWnd MDI ;\r\n TITLE \"Sistema de Ventas\" ;\r\n ICON oIco ;\r\n MENU IIF(lValidaSys.and.lValidaRed,BuildMenu(),SalirMenu())\r\n\r\n oWnd:bPainted = { | hDC | PalBmpDraw( hDC, 0, 0, oBrush:hBitmap, oWnd:nWidth, oWnd:nHeight ) }\r\n\r\n ELSE\r\n DEFINE WINDOW oWnd MDI ;\r\n TITLE \"Sistema de Ventas\" ;\r\n ICON oIco ;\r\n MENU SalirMenu()\r\n\r\n oWnd:bPainted = { | hDC | PalBmpDraw( hDC, 0, 0, oBrush:hBitmap, oWnd:nWidth, oWnd:nHeight ) }\r\n\r\n ENDIF\r\n\r\n ENDIF\r\n\r\n oWnd:Say( 3, 16, aMiCia[4], nRGB( 25, 40, 95 ), nRGB( 192, 192, 192 ),oFontComic )\r\n\r\n DEFINE BUTTONBAR oBarraBotones; // Se define Barra de Botones (Objeto: BUTTONBAR).\r\n SIZE 42,42; // Tama&curren;o en pixeles de los botones\r\n 3D; // Vista en efecto 3¦ dimensi&cent;n\r\n TOP; // Se despliega en la parte superior de la ventana.\r\n OF oWnd; // Se indica que pertenece\r\n CURSOR oCursorMano // Se define tipo de cursor al posicionarse en la barra.\r\n\r\n\r\n DEFINE BUTTON oBtnClient RESOURCE \"Bmp_Clientes\" OF oBarraBotones ;\r\n TOOLTIP \"Clientes\";\r\n NOBORDER ;\r\n ACTION Click(),MovClte(oWnd,cVersion,cMiCia);\r\n WHEN lValidaSys.and.lValidaRed ;\r\n MESSAGE \"Archivo de Clientes\"\r\n\r\n DEFINE BUTTON oBtnArticulos RESOURCE \"Bmp_Articulos\" OF oBarraBotones ;\r\n TOOLTIP \"Articulos\";\r\n NOBORDER ;\r\n ACTION (Click(),MovItem(oWnd,cVersion,cMiCia));\r\n WHEN lValidaSys.and.lValidaRed ;\r\n MESSAGE OemToAnsi(\"Archivo de Articulos\")\r\n\r\n DEFINE BUTTON oBtnProveed RESOURCE \"Bmp_Proveedores\" OF oBarraBotones ;\r\n TOOLTIP \"Proveedores\";\r\n NOBORDER ;\r\n ACTION (Click(),MovProv(oWnd,cVersion,cMiCia));\r\n WHEN lValidaSys.and.lValidaRed ;\r\n MESSAGE \"Archivo de Proveedores\"\r\n\r\n\r\n SET FONT OF oWnd TO oFont\r\n\r\n SET MESSAGE OF oWnd ;\r\n TO \"Software a Medida by Pacific(s)Soft\" NOINSET CENTERED KEYBOARD TIME DATE\r\n\r\n/*** Define tus propias casillas:... ***/\r\n\r\n DEFINE MSGITEM oMiCasilla OF oWnd:oMsgBar;\r\n PROMPT \"Operador\";\r\n SIZE 100 COLOR \"R*/BG\" ;\r\n ACTION (Click(),InfoUsuario())\r\n\r\n DEFINE MSGITEM oNetCasilla OF oWnd:oMsgBar;\r\n PROMPT \"Ruta de Servidor\";\r\n SIZE 150 COLOR \"G+/N\" ;\r\n ACTION (Click(),Dlg_Parametro(oWnd,cMiCia,cMiCom,cMiDir,cMiRuc),oNetCasilla:SetText(TRIM(IMPNET)))\r\n\r\n DEFINE MSGITEM oTcCasilla OF oWnd:oMsgBar;\r\n PROMPT \"T. de Cambio\";\r\n SIZE 110 COLOR \"GR+/N\" ;\r\n ACTION (Click(),TCambio:=Cambio(oWnd),oTcCasilla:SetText(\"T.C. \"+TRANS(TCambio,MA43)))\r\n\r\n ACTIVATE WINDOW oWnd MAXIMIZED ;\r\n ON INIT (SetHandleCount(80),;\r\n IngPasse(),;\r\n ConfigSet(),;\r\n oNetCasilla:SetText(TRIM(IMPNET)),;\r\n oMiCasilla:SetText(mmUsuario),;\r\n Matrices(),;\r\n CreaDbfNtx(.f.),;\r\n TCambio:=Cambio(oWnd),;\r\n oTcCasilla:SetText(\"T.C. \"+TRANS(TCambio,MA43)),;\r\n LogoInicio(cLogoInicial),;\r\n oWnd:SetText(cMiCia+\" - \"+UPPER(TRIM(cNomFilial))),;\r\n IIF(IMPSND,SndPlaySound( \"..\\Sonidos\\Notify.wav\" ),\"\") ) ;\r\n VALID MsgYesNo( \"Salir del Sistema\" ,cVersion)\r\n\r\n DIRCHANGE(\"\\FWVENTAS\\DATA\")\r\n\r\n IMPOSV:=nWindows\r\n IMPHOY:=DATE()\r\n IMPNTX:=.F.\r\n\r\n * Mascaras para PICTURE\r\n\r\n IMPMPV:=IIF(!EMPTY(IMPDPV),\"999,999\"+\".\"+REPL(\"9\",IMPDPV),\"999,999\")\r\n IMPMPC:=IIF(!EMPTY(IMPDPC),\"999,999\"+\".\"+REPL(\"9\",IMPDPC),\"999,999\")\r\n IMPMUM:=IIF(!EMPTY(IMPMUM),\"999,999\"+\".\"+REPL(\"9\",IMPDUM),\"999,999\")\r\n\r\n SAVE TO HEADIMPT ALL LIKE IMP* FIL* MA*\r\n\r\n SET RESOURCES TO // Desactivamos los recursos definidos.\r\n\r\n FreeLibrary( hBorland ) // We have finish with it\r\n\r\nReturn nil\r\n\r\nY abro todavia dos, y como veras los IMP* FIL* y mascaras para PICTURE las pongo en un MEM me ha funcionado muy bien el Clipper puro pero ahora con regular exito.\r\n\r\nEstoy con Clipper 5.3b FW 2.4 y Blinker 7.0\r\n\r\ny el LNK\r\n\r\nBLINKER CLIPPER SYMBOL OFF\r\nBLINKER EXECUTABLE COMPRESS\r\nBLINKER EXECUTABLE CLIPPER F30\r\nMAP A,S\r\n\r\nPACKCODE\r\nPACKDATA\r\n\r\n// If you use Mr. Debug for Windows product\r\n// search c:\\mrdebug\\lib\\mrd4win.lib\r\n\r\nFILE VT20999, VT20998, VT20100, VT20150, VT20199, VT20200, VT20299, VT20300, VT20400, VT20500, VT20550, VT20600, VT20700, VT20710, VT20800, VT20900, VT20340, VT20000\r\nFILE TGET, TGRAPH, TDOSPRN, SSAY,TCBROWSE, fwcalen,F:\\clip53\\obj\\mpar\r\n\r\nDEFBEGIN\r\n name FiveWin\r\n description 'Clipper for Windows library'\r\n exetype Windows 3.1\r\n code moveable discardable\r\n data preload moveable\r\n stacksize 10500\r\n heapsize 8500\r\n segment 'PLANKTON_TEXT' nondiscardable\r\n segment 'EXTEND_TEXT' nondiscardable\r\n segment 'OM_TEXT' nondiscardable\r\n segment 'OSMEM_TEXT' nondiscardable\r\n segment 'SORTOF_TEXT' nondiscardable\r\n segment 'STACK_TEXT' nondiscardable\r\nDEFEND\r\n\r\nNOBELL\r\n\r\nSEARCH Five, FiveC, Objects, SBROWSE\r\nBTNGET, FILEXLS\r\nLIB WinApi, Clipper, Extend, Terminal, dbfcdx, _dbfcdx, CTP53, BTNGET, FILEXLS\r\n\r\n\r\nGRACIAS\r\n\r\nAtt.\r\nLuis Ponce", "time": "02:12", "topic": "ARCHIVOS .MEM", "username": "LuisPonce" } ]
ARCHIVOS .MEM
[ { "date": "2008-09-27", "forum": "FiveWin para CA-Clipper", "text": "Luis,\r\n\r\n> ahora con regular exito. \r\n\r\nEl problema cual es ? GPFs ?\r\n\r\nDonde ocurren ? Has puesto trazas en tu programa usando MsgInfo() para localizar el punto exacto en donde se genera un GPF ?\r\n\r\nTendrás que generar un fichero MAP usando MAP A,S con Bliker y buscar la dirección del GPF dentro de él.\r\n\r\nMi mejor consejo es que migres a 32 bits usando FWH y Harbour/xHarbour.", "time": "07:23", "topic": "ARCHIVOS .MEM", "username": "Antonio Linares" } ]
ARCHIVOS .MEM
[ { "date": "2008-09-27", "forum": "FiveWin para CA-Clipper", "text": "El problema es que se ha vuelto inestable, debido a los problemas de GPF, en las listas de articulos muestra un grafico con el ON CHANGE del LISTBOX y si lo pasa muy rapido da error stck fault 650, uso la TIMAGE para poder mostrar JPG, el scroll del mouse no va para arriba... y no logro solucionar estos inconvenientes, debo estar haciendo algo mal.\r\n\r\nGracias Antonio, quisiera hacer caminar el sistema para migrar a paso firme a 32 bits, cuales serian los pasos y como cambiaria mi entorno de programacion.\r\n\r\nAtt.", "time": "17:38", "topic": "ARCHIVOS .MEM", "username": "LuisPonce" } ]
ARCHIVOS .MEM
[ { "date": "2008-09-27", "forum": "FiveWin para CA-Clipper", "text": "Hola Luis:\r\n\r\nSeguramente ese problema es que estas usando NViewlib o \r\nalgo parecido. Ese fue unos de mi problemas en 16 bits.\r\n\r\n(Si las imagenes son JPG prueba primerpo con BMPs)\r\n\r\nAhoar con 32 bits, no ocurre, usas JPG o BMP sin problemas.\r\n\r\nDe todos modos trata de ubicar la FreeImage.dll, y busca\r\nen utilidades en el foro que debe de haber algo.\r\n\r\nYo use esta solucion alternativa. Pero igualmente\r\nlo unico que te salvara definitivamente es pasarte a Harbour .\r\n\r\nSaludos\r\n\r\nRuben Fernandez.", "time": "18:29", "topic": "ARCHIVOS .MEM", "username": "Ruben D. Fernandez" } ]
ARCHIVOS .MEM
[ { "date": "2016-08-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados, tiempo atras.. plantee mal una consulta con respecto a trabajar con ciertos archivos, que no conocia.. lei mejor y son archivos del tipo JSON, me falto conocer mas... el caso es que busque aca.. pero no sale algo muy claro.. y se esta dando mucho que ciertas respuestas de datos te los entreguen en ese formato, te hablan de parsear y recuperar el archivo JSON..\n\nsi alguien tiene mas clara la pelicula, favor de orientarme como poder dirigir mis esfuerzos en :\n\na) Recuperar un archivo y leer un JSON.\nb) Extraer los datos de este archivo, lo que llaman parsaer...\n\nXharbour, soporta esto.. mis disculpas, pero se me es necesario ver si fivewin con xharbour.. me dejan procesar esto..", "time": "19:42", "topic": "ARCHIVOS JSON", "username": "kpidata2016" } ]
ARCHIVOS JSON
[ { "date": "2016-08-23", "forum": "FiveWin para Harbour/xHarbour", "text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=191101#p191101\">viewtopic.php?p=191101#p191101</a><!-- l -->", "time": "19:50", "topic": "ARCHIVOS JSON", "username": "Antonio Linares" } ]
ARCHIVOS JSON
[ { "date": "2016-06-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Luis descargate desde este enlace los archivos que utilizo para la librería tpdf, y también la librería que esta enlazada con bcc582 y harbour\n\n<!-- m --><a class=\"postlink\" href=\"https://www.4shared.com/zip/JFhHppTpce/tpdfh.html\">https://www.4shared.com/zip/JFhHppTpce/tpdfh.html</a><!-- m -->\n\nCon esta librería funciona el ejemplo que te envié.\n\nLuis, el otro", "time": "20:37", "topic": "ARCHIVOS PDF", "username": "surGom" } ]
ARCHIVOS PDF
[ { "date": "2016-06-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenos Dias\n\nEs necesario crear archivos PDF desde mi aplicacion, encontre información en el Foro referente a PDFLIB y TPDF (no se sin lo mismo) use la segunda por que encontre un link que puso Karinha:\n\ncomo clase propia de FiveWin\n\n[url:amgb33gm]https&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=TPDF&#46;zip&can=2&q=[/url:amgb33gm]\n\nDespues de muchas lunas, construi a mano el TPDFX.LIB pese a que el archivo esta presente, no podia hacer nada, asi que genere los .OBJ de los .PRGs de esa clase y los junté al .LIB existente con TLIB y pude correr el codigo del ejemplo dentro de mi aplicacion:\n\na mi .RMK le agregue ..\\LIB\\TPDFX.LIB\n\nal .PRG que contiene la funcion de ejemplo agregué los ficheros de cabecera\n\n#include \"PdfHbDoc.ch\"\n*#include \"Pdf.ch\"\n\nsi libero el \"Pdf.ch\" me dá 84 errores del tipo;\n\nSyntax Error: At 'FONT'\nSyntax Error: At 'OREPORTE'\nInvalid lvalue: '()'\n\n\nponiendolo como comentario corre, asi que pude agrear el codigo de ejemplo para correrlo\ndesde mi aplicacion \n\n[code=fw:amgb33gm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">Function</span> MyFirstPdf<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> oPdf := TPdf<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;\">\"First.pdf\"</span>,, letter_height, letter_width <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// ( cFileName, nHeight, nWidth )</span><br /><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfNewPage</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"P\"</span>,, <span style=\"color: #ff0000;\">\"Arial\"</span>,, <span style=\"color: #000000;\">24</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// ( cPaperSize, cOrientation, nLinesPerInch, cFontName, nFontType, nFontSize )</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfImage</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"nomina1.jpg\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, letter_width, letter_height <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfClosePage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfNewPage</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"P\"</span>,, <span style=\"color: #ff0000;\">\"Arial\"</span>,, <span style=\"color: #000000;\">24</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// ( cPaperSize, cOrientation, nLinesPerInch, cFontName, nFontType, nFontSize )</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfImage</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"nomina2.jpg\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, letter_width, letter_height <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfClosePage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfClose</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;ShellExecute<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">hWnd</span>, <span style=\"color: #ff0000;\">\"open\"</span>, <span style=\"color: #ff0000;\">\"First.pdf\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span></div>[/code:amgb33gm]\n\ny corrió..... genera el \"First.pdf\" pero vacío y con el siguiente error:\n\n\n\"Error al procesar pagina. Numero fuera de rango\"\n\nprobé con otro ejemplo:\n\n[code=fw:amgb33gm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">function</span> creapdfcc<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> dresult <span style=\"color: #B900B9;\">// := &nbsp;DEHASTA()</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cImpdos<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oprn<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nsaldo := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nvalor := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> z := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cPath := <span style=\"color: #ff0000;\">\"MEUPDF.pdf\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oPdf<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> ntotal := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;n &nbsp;:= <span style=\"color: #000000;\">2.9</span><br /><br />&nbsp; &nbsp;opdf := tpdf<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">new</span><span style=\"color: #000000;\">&#40;</span>cPath<span style=\"color: #000000;\">&#41;</span><br /><br />* &nbsp; opdf:<span style=\"color: #000000;\">Pdfnewpage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"A4\"</span>,<span style=\"color: #ff0000;\">\"P\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfNewPage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"A4\"</span> , <span style=\"color: #ff0000;\">\"P\"</span>,, <span style=\"color: #ff0000;\">\"Arial\"</span>,, <span style=\"color: #000000;\">24</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// ( cPaperSize, cOrientation, nLinesPerInch, cFontName, nFontType, nFontSize )</span><br /><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">Pdfimage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\Q</span>RCODE.jpg\"</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">85</span>,<span style=\"color: #000000;\">66</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"QUÍMICA MEGA SA\"</span>,cm2dpi<span style=\"color: #000000;\">&#40;</span> .<span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">100</span>,.T.<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Matanza 1456/58\"</span>,cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.2</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">100</span>,.T.<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Avellaneda-Pcia Bs As\"</span>,cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.6</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">100</span>,.T.<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"T.E.: 4289-2700(Rotativas)\"</span>,cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2.0</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">100</span>,.T.<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span>replicate<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"_\"</span>,<span style=\"color: #000000;\">115</span><span style=\"color: #000000;\">&#41;</span>,cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2.5</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">10</span>,.T.<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">Pdfclosepage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">pdfclose</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Archivo creado con éxito\"</span>,<span style=\"color: #ff0000;\">\"Aviso del sistema\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp;if !empty(cmail)<br />&nbsp; &nbsp; &nbsp; correo(cMail,,(\"Enviamos resumen de cuenta desde \" + transform(dresult[1],\"@d\") + \" hasta \" + &nbsp;transform(dresult[1],\"@d\") ),\"Resumen de cuenta\", alltrim(cPath ) )<br />&nbsp; &nbsp;endif<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;ShellExecute<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">hWnd</span>, <span style=\"color: #ff0000;\">\"open\"</span>, <span style=\"color: #ff0000;\">\"meupdf.pdf\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> .t.<br /><br /><span style=\"color: #B900B9;\">/*******************************************************************************/</span><br /><br /><span style=\"color: #00C800;\">function</span> cm2dpi<span style=\"color: #000000;\">&#40;</span> nCM, <span style=\"color: #0000ff;\">page</span>, lHeight <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> nHeight,nDpi := <span style=\"color: #000000;\">72</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> nRes<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> empty<span style=\"color: #000000;\">&#40;</span> lHeight <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; lHeight := .T.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> lHeight<br />&nbsp; &nbsp; &nbsp; nHeight := <span style=\"color: #000000;\">842.0</span><br />&nbsp; &nbsp; &nbsp; nRes := nHeight - <span style=\"color: #000000;\">&#40;</span> nCM * nDpi / <span style=\"color: #000000;\">2.54</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; nRes := <span style=\"color: #000000;\">&#40;</span> nCM * nDpi / <span style=\"color: #000000;\">2.54</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> nRes<br /><br /><br /><br /><span style=\"color: #00C800;\">Function</span> MyFirstPdf2<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> oPdf := TPdf<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;\">\"First.pdf\"</span>,, letter_height, letter_width <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// ( cFileName, nHeight, nWidth )</span><br /><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfNewPage</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"P\"</span>,, <span style=\"color: #ff0000;\">\"Arial\"</span>,, <span style=\"color: #000000;\">24</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// ( cPaperSize, cOrientation, nLinesPerInch, cFontName, nFontType, nFontSize )</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfImage</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"nomina1.jpg\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, letter_width, letter_height <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfClosePage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfNewPage</span><span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"P\"</span>,, <span style=\"color: #ff0000;\">\"Arial\"</span>,, <span style=\"color: #000000;\">24</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// ( cPaperSize, cOrientation, nLinesPerInch, cFontName, nFontType, nFontSize )</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfImage</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"nomina2.jpg\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, letter_width, letter_height <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfClosePage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">PdfClose</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;ShellExecute<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">hWnd</span>, <span style=\"color: #ff0000;\">\"open\"</span>, <span style=\"color: #ff0000;\">\"First.pdf\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /><br /><br /><br />&nbsp;</div>[/code:amgb33gm]\n\n\nCon el mismo resultado, sospecho que:\n\n1. como creé a mano el TPDFX.LIB omití algo e imagino que es el pdfhbdoc.obj, pues\nno encontre el .prg para generar el .obj y añadirlo al .lib\n\n2. o la clase esta incompleta\n3. la clase no es para xHarbour\n4. o es el \"pdf.ch\" que omito\n\nUtilizo:\n\nxHarbour Compiler 1.1.0 (Simplex)\nFWHX 8.02\n\nAlguien tendra alguna idea de por que me marca ese error??\no que puedo estar omitiendo\n\nOjo: Abriendo el First.pdf desde fuera de la aplicacion, me da el mismo error\n\nGracias", "time": "15:34", "topic": "ARCHIVOS PDF", "username": "LuisPonce" } ]
ARCHIVOS PDF
[ { "date": "2016-06-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Lucho,,,\nve esto..\n\n[code=fw:ys0vgrql]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oPdf:<span style=\"color: #000000;\">PdfSetFont</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"COURIER NEW\"</span>, <span style=\"color: #000000;\">0</span>, nFontPdf <span style=\"color: #000000;\">&#41;</span><br />opdf:<span style=\"color: #000000;\">Pdfnewpage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"A4\"</span>,<span style=\"color: #ff0000;\">\"P\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />oPdf:<span style=\"color: #000000;\">Pdfimage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\B</span>MP<span style=\"color: #000000;\">\\s</span>vite.jpg\"</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">580</span>, <span style=\"color: #000000;\">60</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #B900B9;\">//PdfSay(oPdf, _DELEN3(oApp:cMaster), 2.5, 2.5, \"TIMES\", BOLD, 10)</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"EMPRESA\"</span>, <span style=\"color: #000000;\">2.5</span>, <span style=\"color: #000000;\">2.5</span>, <span style=\"color: #ff0000;\">\"TIMES\"</span>, BOLD, <span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"COTIZACION\"</span>, <span style=\"color: #000000;\">3.0</span>, <span style=\"color: #000000;\">8.0</span>, <span style=\"color: #ff0000;\">\"TIMES\"</span>, <span style=\"color: #0000ff;\">NORMAL</span>, <span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"SRS: \"</span> + cNombre, <span style=\"color: #000000;\">3.5</span>, <span style=\"color: #000000;\">2.5</span>, <span style=\"color: #ff0000;\">\"TIMES\"</span>, BOLD, <span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#41;</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"DIR: \"</span> + cDirecc, <span style=\"color: #000000;\">4.0</span>, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"RUC: \"</span> + cNumRuc, <span style=\"color: #000000;\">4.5</span>, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, REPLICATE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"_\"</span>,<span style=\"color: #000000;\">115</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">5.5</span>, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br /><br />CURSORWAIT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />cLinea := <span style=\"color: #ff0000;\">\"Cantidad &nbsp;Unid &nbsp; Producto &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Precio Un. Sub Total\"</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, cLinea, <span style=\"color: #000000;\">6.0</span>, <span style=\"color: #000000;\">2.5</span>, <span style=\"color: #ff0000;\">\"COURIER NEW\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#41;</span><br /><br />nCont := <span style=\"color: #000000;\">6.3</span><br /><br />nLen := LEN<span style=\"color: #000000;\">&#40;</span>adetVen<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">FOR</span> nContR := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nLen<br /><br />&nbsp; cLinea := PADL<span style=\"color: #000000;\">&#40;</span>ALLTRIM<span style=\"color: #000000;\">&#40;</span>aDetVen<span style=\"color: #000000;\">&#91;</span>nContR,<span style=\"color: #000000;\">03</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" \"</span> +PADR<span style=\"color: #000000;\">&#40;</span>aDetVen<span style=\"color: #000000;\">&#91;</span>nContR,<span style=\"color: #000000;\">02</span><span style=\"color: #000000;\">&#93;</span>,<span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" \"</span> + PADR<span style=\"color: #000000;\">&#40;</span>aDetVen<span style=\"color: #000000;\">&#91;</span>nContR,<span style=\"color: #000000;\">01</span><span style=\"color: #000000;\">&#93;</span>,<span style=\"color: #000000;\">50</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" \"</span> + PADL<span style=\"color: #000000;\">&#40;</span>aDetVen<span style=\"color: #000000;\">&#91;</span>nContR,<span style=\"color: #000000;\">04</span><span style=\"color: #000000;\">&#93;</span>,<span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" \"</span> + PADL<span style=\"color: #000000;\">&#40;</span>aDetVen<span style=\"color: #000000;\">&#91;</span>nContR,<span style=\"color: #000000;\">07</span><span style=\"color: #000000;\">&#93;</span>,<span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, cLinea, nCont, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; nTotal := nTotal + VAL<span style=\"color: #000000;\">&#40;</span>aDetVen<span style=\"color: #000000;\">&#91;</span>nContR,<span style=\"color: #000000;\">07</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; nCont := nCont + <span style=\"color: #000000;\">0.3</span><br /><br />&nbsp; <span style=\"color: #00C800;\">If</span> nCont > <span style=\"color: #000000;\">20</span><br /><br />&nbsp; <span style=\"color: #00C800;\">EndIf</span><br /><br /><span style=\"color: #00C800;\">NEXT</span> nCont<br /><br />nCont += <span style=\"color: #000000;\">0.3</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, PADL<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Total...\"</span> &nbsp;+ <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>nMoneda=<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"S/.\"</span>,<span style=\"color: #ff0000;\">\"U$.\"</span><span style=\"color: #000000;\">&#41;</span> + STR<span style=\"color: #000000;\">&#40;</span>nTotal,<span style=\"color: #000000;\">12</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">92</span><span style=\"color: #000000;\">&#41;</span>, nCont, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br /><br />nCont += <span style=\"color: #000000;\">0.3</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"Precios Válidos Hasta :\"</span> + DTOST<span style=\"color: #000000;\">&#40;</span>dFecha1<span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" -Forma de Pago :\"</span> + cFormaPago + <span style=\"color: #ff0000;\">\" -Forma de Entrega :\"</span> + cFormaEntrega, nCont, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br /><br />nCont += <span style=\"color: #000000;\">0.3</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"Los precios están sujetos a cambios sin previo aviso\"</span>, nCont, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br /><br />nCont += <span style=\"color: #000000;\">0.3</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"Fecha : \"</span> + DtoC<span style=\"color: #000000;\">&#40;</span>oApp:<span style=\"color: #000000;\">dDate</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" :\"</span> + Time<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, nCont, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br /><br />oPdf:<span style=\"color: #000000;\">PdfClosepage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oPdf:<span style=\"color: #000000;\">PdfClose</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />SHELLEXECUTE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, cFile, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #B900B9;\">//-------------------------------------</span><br /><br /><span style=\"color: #B900B9;\">//------------------------------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, cCadena, nPosV, nPosH, cFont, cType, nTam<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">DEFAULT</span> cFont := <span style=\"color: #ff0000;\">\"COURIER NEW\"</span><br /><span style=\"color: #00C800;\">DEFAULT</span> cType := <span style=\"color: #ff0000;\">\"NORMAL\"</span><br /><span style=\"color: #00C800;\">DEFAULT</span> nTam &nbsp;:= <span style=\"color: #000000;\">10</span><br /><br /><span style=\"color: #00C800;\">IF</span> PCount<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">4</span> &nbsp;<span style=\"color: #B900B9;\">//!EMPTY(cFont)</span><br />&nbsp; oPdf:<span style=\"color: #000000;\">Pdfsetfont</span><span style=\"color: #000000;\">&#40;</span> cFont, cType, nTam<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">EndIf</span><br /><br />oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span>cCadena, Cm2Dpi<span style=\"color: #000000;\">&#40;</span> nPosV <span style=\"color: #000000;\">&#41;</span>, Cm2Dpi<span style=\"color: #000000;\">&#40;</span> nPosH, .f.<span style=\"color: #000000;\">&#41;</span>, .T.<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: #B900B9;\">//---------------------------------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> PdfBox<span style=\"color: #000000;\">&#40;</span>oPdf, nIni1, nIni2, nTam1, nTam2, cFont, cType, nTam<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">DEFAULT</span> cFont := <span style=\"color: #ff0000;\">\"COURIER NEW\"</span><br /><span style=\"color: #00C800;\">DEFAULT</span> cType := <span style=\"color: #ff0000;\">\"NORMAL\"</span><br /><span style=\"color: #00C800;\">DEFAULT</span> nTam &nbsp;:= <span style=\"color: #000000;\">10</span><br /><br /><span style=\"color: #00C800;\">IF</span> PCount<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">5</span> &nbsp; <span style=\"color: #B900B9;\">//!EMPTY(cFont)</span><br />&nbsp; oPdf:<span style=\"color: #000000;\">Pdfsetfont</span><span style=\"color: #000000;\">&#40;</span> cFont, cType, nTam<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">EndIf</span><br /><br />oPdf:<span style=\"color: #000000;\">PDF_RECT</span><span style=\"color: #000000;\">&#40;</span>Cm2Dpi<span style=\"color: #000000;\">&#40;</span> nIni1 <span style=\"color: #000000;\">&#41;</span>, Cm2Dpi<span style=\"color: #000000;\">&#40;</span> nIni2, .f.<span style=\"color: #000000;\">&#41;</span>, nTam1, nTam2 <span style=\"color: #000000;\">&#41;</span><br />oPdf:<span style=\"color: #000000;\">PDF_STROKE</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: #B900B9;\">//----------------------------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> Cm2Dpi<span style=\"color: #000000;\">&#40;</span> nCM, lHeight <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> nHeight,nDpi := <span style=\"color: #000000;\">72</span><br /><span style=\"color: #00C800;\">Local</span> nRes<br /><span style=\"color: #00C800;\">DEFAULT</span> lHeight := .t.<br /><br /><span style=\"color: #00C800;\">If</span> lHeight<br />&nbsp; &nbsp;nHeight := <span style=\"color: #000000;\">842.0</span><br />&nbsp; &nbsp;nRes := nHeight - <span style=\"color: #000000;\">&#40;</span> nCM * nDpi / <span style=\"color: #000000;\">2.54</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;<span style=\"color: #00C800;\">Else</span><br />&nbsp; &nbsp;nRes := <span style=\"color: #000000;\">&#40;</span> nCM * nDpi / <span style=\"color: #000000;\">2.54</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span> nRes <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp;</div>[/code:ys0vgrql]", "time": "15:43", "topic": "ARCHIVOS PDF", "username": "Willi Quintana" } ]
ARCHIVOS PDF
[ { "date": "2016-06-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Willy\n\nGracias por tu respuesta\n\nno corre, me da error:\n\noPdf:PdfSetFont( \"COURIER NEW\", 0, nFontPdf )\n\nque valores puede contener nFontPDf;\nle puse valor 10 y pasó\n\n\nPdfSay(oPdf, \"EMPRESA\", 2.5, 2.5, \"TIMES\", BOLD, 10)\nPdfSay(oPdf, \"COTIZACION\", 3.0, 8.0, \"TIMES\", NORMAL, 20)\nPdfSay(oPdf, \"SRS: \" + cNombre, 3.5, 2.5, \"TIMES\", BOLD, <!-- s8) --><img src=\"{SMILIES_PATH}/icon_cool.gif\" alt=\"8)\" title=\"Cool\" /><!-- s8) -->\n\nque valores debe contener:\n\nBOLD\nNORMAL\n\nApplication\n===========\n Path and name: C:\\VENTAS\\Ventas.exe (32 bits)\n Size: 5,330,944 bytes\n Time from start: 0 hours 0 mins 15 secs \n Error occurred at: 10/06/2016, 10:03:26\n Error description: Error BASE/1081 Argument error: +\n Args:\n [ 1] = C NORMAL\n [ 2] = N 1\n\nStack Calls\n===========\n Called from: pdf1.prg => TPDF:PDFSETFONT(553)\n Called from: vt20150.prg => PDFSAY(8715)\n Called from: vt20150.prg => CREAPDFCC(8657)\n Called from: fw-vt2.prg => (b)BUILDMENU(746)\n Called from: MENU.PRG => TMENU:COMMAND(0)\n Called from: WINDOW.PRG => TWINDOW:COMMAND(0)\n Called from: MDIFRAME.PRG => TMDIFRAME:COMMAND(0)\n Called from: => TMDIFRAME:HANDLEEVENT(0)\n Called from: WINDOW.PRG => _FWH(0)\n Called from: => WINRUN(0)\n Called from: WINDOW.PRG => TMDIFRAME:ACTIVATE(0)\n Called from: fw-vt2.prg => MAIN(660)", "time": "16:01", "topic": "ARCHIVOS PDF", "username": "LuisPonce" } ]
ARCHIVOS PDF
[ { "date": "2016-06-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Willy\n\nMe debe faltar algunos #define\nHe resuelto los mensajes, agregué las variables\n\ny me dió el mismo resultado\n\n\"Error al procesar pagina. Número fuera de rango\"\n\nDebe ser algo relacionado con la construccion de la clase", "time": "16:33", "topic": "ARCHIVOS PDF", "username": "LuisPonce" } ]
ARCHIVOS PDF
[ { "date": "2016-06-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Luis,,,, faltaba las cabeceras\n[code=fw:2ptw549r]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /># include <span style=\"color: #ff0000;\">\"fivewin.ch\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// 0x4L |</span><br /># include <span style=\"color: #ff0000;\">\"report.ch\"</span><br /># include <span style=\"color: #ff0000;\">\"dtpicker.ch\"</span><br /># include <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br /><span style=\"color: #00C800;\">Function</span> PruebaPdf<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />cFile := <span style=\"color: #ff0000;\">\"Prueba.PDF\"</span><br /><br />oPdf := TPdf<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//, , 612, 792 &nbsp;)</span><br /><br />oPdf:<span style=\"color: #000000;\">PdfInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"COTIZACION\"</span>, <span style=\"color: #ff0000;\">\"\"</span> ,<span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />oPdf:<span style=\"color: #000000;\">PdfSetFont</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"COURIER NEW\"</span>, <span style=\"color: #000000;\">0</span>, nFontPdf <span style=\"color: #000000;\">&#41;</span><br />opdf:<span style=\"color: #000000;\">Pdfnewpage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"A4\"</span>,<span style=\"color: #ff0000;\">\"P\"</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />oPdf:<span style=\"color: #000000;\">Pdfimage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\B</span>MP<span style=\"color: #000000;\">\\s</span>vite.jpg\"</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">580</span>, <span style=\"color: #000000;\">60</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #B900B9;\">//PdfSay(oPdf, _DELEN3(oApp:cMaster), 2.5, 2.5, \"TIMES\", BOLD, 10)</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"EMPRESA\"</span>, <span style=\"color: #000000;\">2.5</span>, <span style=\"color: #000000;\">2.5</span>, <span style=\"color: #ff0000;\">\"TIMES\"</span>, BOLD, <span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"COTIZACION\"</span>, <span style=\"color: #000000;\">3.0</span>, <span style=\"color: #000000;\">8.0</span>, <span style=\"color: #ff0000;\">\"TIMES\"</span>, <span style=\"color: #0000ff;\">NORMAL</span>, <span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"SRS: \"</span> + cNombre, <span style=\"color: #000000;\">3.5</span>, <span style=\"color: #000000;\">2.5</span>, <span style=\"color: #ff0000;\">\"TIMES\"</span>, BOLD, <span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#41;</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"DIR: \"</span> + cDirecc, <span style=\"color: #000000;\">4.0</span>, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"RUC: \"</span> + cNumRuc, <span style=\"color: #000000;\">4.5</span>, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, REPLICATE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"_\"</span>,<span style=\"color: #000000;\">115</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">5.5</span>, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br /><br />CURSORWAIT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />cLinea := <span style=\"color: #ff0000;\">\"Cantidad &nbsp;Unid &nbsp; Producto &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Precio Un. Sub Total\"</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, cLinea, <span style=\"color: #000000;\">6.0</span>, <span style=\"color: #000000;\">2.5</span>, <span style=\"color: #ff0000;\">\"COURIER NEW\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#41;</span><br /><br />nCont := <span style=\"color: #000000;\">6.3</span><br /><br />nLen := LEN<span style=\"color: #000000;\">&#40;</span>adetVen<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">FOR</span> nContR := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nLen<br /><br />&nbsp; cLinea := PADL<span style=\"color: #000000;\">&#40;</span>ALLTRIM<span style=\"color: #000000;\">&#40;</span>aDetVen<span style=\"color: #000000;\">&#91;</span>nContR,<span style=\"color: #000000;\">03</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" \"</span> +PADR<span style=\"color: #000000;\">&#40;</span>aDetVen<span style=\"color: #000000;\">&#91;</span>nContR,<span style=\"color: #000000;\">02</span><span style=\"color: #000000;\">&#93;</span>,<span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" \"</span> + PADR<span style=\"color: #000000;\">&#40;</span>aDetVen<span style=\"color: #000000;\">&#91;</span>nContR,<span style=\"color: #000000;\">01</span><span style=\"color: #000000;\">&#93;</span>,<span style=\"color: #000000;\">50</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" \"</span> + PADL<span style=\"color: #000000;\">&#40;</span>aDetVen<span style=\"color: #000000;\">&#91;</span>nContR,<span style=\"color: #000000;\">04</span><span style=\"color: #000000;\">&#93;</span>,<span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" \"</span> + PADL<span style=\"color: #000000;\">&#40;</span>aDetVen<span style=\"color: #000000;\">&#91;</span>nContR,<span style=\"color: #000000;\">07</span><span style=\"color: #000000;\">&#93;</span>,<span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, cLinea, nCont, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; nTotal := nTotal + VAL<span style=\"color: #000000;\">&#40;</span>aDetVen<span style=\"color: #000000;\">&#91;</span>nContR,<span style=\"color: #000000;\">07</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; nCont := nCont + <span style=\"color: #000000;\">0.3</span><br /><br />&nbsp; <span style=\"color: #00C800;\">If</span> nCont > <span style=\"color: #000000;\">20</span><br /><br />&nbsp; <span style=\"color: #00C800;\">EndIf</span><br /><br /><span style=\"color: #00C800;\">NEXT</span> nCont<br /><br />nCont += <span style=\"color: #000000;\">0.3</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, PADL<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Total...\"</span> &nbsp;+ <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>nMoneda=<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"S/.\"</span>,<span style=\"color: #ff0000;\">\"U$.\"</span><span style=\"color: #000000;\">&#41;</span> + STR<span style=\"color: #000000;\">&#40;</span>nTotal,<span style=\"color: #000000;\">12</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">92</span><span style=\"color: #000000;\">&#41;</span>, nCont, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br /><br />nCont += <span style=\"color: #000000;\">0.3</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"Precios Válidos Hasta :\"</span> + DTOST<span style=\"color: #000000;\">&#40;</span>dFecha1<span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" -Forma de Pago :\"</span> + cFormaPago + <span style=\"color: #ff0000;\">\" -Forma de Entrega :\"</span> + cFormaEntrega, nCont, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br /><br />nCont += <span style=\"color: #000000;\">0.3</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"Los precios están sujetos a cambios sin previo aviso\"</span>, nCont, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br /><br />nCont += <span style=\"color: #000000;\">0.3</span><br />PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, <span style=\"color: #ff0000;\">\"Fecha : \"</span> + DtoC<span style=\"color: #000000;\">&#40;</span>oApp:<span style=\"color: #000000;\">dDate</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" :\"</span> + Time<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, nCont, <span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span><br /><br />oPdf:<span style=\"color: #000000;\">PdfClosepage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oPdf:<span style=\"color: #000000;\">PdfClose</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />SHELLEXECUTE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, cFile, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #B900B9;\">//-------------------------------------</span><br /><br /><span style=\"color: #B900B9;\">//------------------------------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> PdfSay<span style=\"color: #000000;\">&#40;</span>oPdf, cCadena, nPosV, nPosH, cFont, cType, nTam<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">DEFAULT</span> cFont := <span style=\"color: #ff0000;\">\"COURIER NEW\"</span><br /><span style=\"color: #00C800;\">DEFAULT</span> cType := <span style=\"color: #ff0000;\">\"NORMAL\"</span><br /><span style=\"color: #00C800;\">DEFAULT</span> nTam &nbsp;:= <span style=\"color: #000000;\">10</span><br /><br /><span style=\"color: #00C800;\">IF</span> PCount<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">4</span> &nbsp;<span style=\"color: #B900B9;\">//!EMPTY(cFont)</span><br />&nbsp; oPdf:<span style=\"color: #000000;\">Pdfsetfont</span><span style=\"color: #000000;\">&#40;</span> cFont, cType, nTam<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">EndIf</span><br /><br />oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span>cCadena, Cm2Dpi<span style=\"color: #000000;\">&#40;</span> nPosV <span style=\"color: #000000;\">&#41;</span>, Cm2Dpi<span style=\"color: #000000;\">&#40;</span> nPosH, .f.<span style=\"color: #000000;\">&#41;</span>, .T.<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: #B900B9;\">//---------------------------------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> PdfBox<span style=\"color: #000000;\">&#40;</span>oPdf, nIni1, nIni2, nTam1, nTam2, cFont, cType, nTam<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">DEFAULT</span> cFont := <span style=\"color: #ff0000;\">\"COURIER NEW\"</span><br /><span style=\"color: #00C800;\">DEFAULT</span> cType := <span style=\"color: #ff0000;\">\"NORMAL\"</span><br /><span style=\"color: #00C800;\">DEFAULT</span> nTam &nbsp;:= <span style=\"color: #000000;\">10</span><br /><br /><span style=\"color: #00C800;\">IF</span> PCount<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">5</span> &nbsp; <span style=\"color: #B900B9;\">//!EMPTY(cFont)</span><br />&nbsp; oPdf:<span style=\"color: #000000;\">Pdfsetfont</span><span style=\"color: #000000;\">&#40;</span> cFont, cType, nTam<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">EndIf</span><br /><br />oPdf:<span style=\"color: #000000;\">PDF_RECT</span><span style=\"color: #000000;\">&#40;</span>Cm2Dpi<span style=\"color: #000000;\">&#40;</span> nIni1 <span style=\"color: #000000;\">&#41;</span>, Cm2Dpi<span style=\"color: #000000;\">&#40;</span> nIni2, .f.<span style=\"color: #000000;\">&#41;</span>, nTam1, nTam2 <span style=\"color: #000000;\">&#41;</span><br />oPdf:<span style=\"color: #000000;\">PDF_STROKE</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: #B900B9;\">//----------------------------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> Cm2Dpi<span style=\"color: #000000;\">&#40;</span> nCM, lHeight <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> nHeight,nDpi := <span style=\"color: #000000;\">72</span><br /><span style=\"color: #00C800;\">Local</span> nRes<br /><span style=\"color: #00C800;\">DEFAULT</span> lHeight := .t.<br /><br /><span style=\"color: #00C800;\">If</span> lHeight<br />&nbsp; &nbsp;nHeight := <span style=\"color: #000000;\">842.0</span><br />&nbsp; &nbsp;nRes := nHeight - <span style=\"color: #000000;\">&#40;</span> nCM * nDpi / <span style=\"color: #000000;\">2.54</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;<span style=\"color: #00C800;\">Else</span><br />&nbsp; &nbsp;nRes := <span style=\"color: #000000;\">&#40;</span> nCM * nDpi / <span style=\"color: #000000;\">2.54</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span> nRes <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:2ptw549r]", "time": "16:35", "topic": "ARCHIVOS PDF", "username": "Willi Quintana" } ]
ARCHIVOS PDF
[ { "date": "2016-06-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Willy\n\nAgregué las cabaceras\n\n# include \"report.ch\"\n# include \"dtpicker.ch\"\n# include \"xbrowse.ch\"\n\ntambien\n\noPdf:PdfInfo( \"COTIZACION\", \"\" ,\"\", \"\" )\n\ny sigue el mismo error\n\nError al procesar pagina, numero fuera de rango\n\nAbre el Adobe Reader, el documento en blanco y el mensaje de error", "time": "16:52", "topic": "ARCHIVOS PDF", "username": "LuisPonce" } ]
ARCHIVOS PDF
[ { "date": "2016-06-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Fijate en este ejemplo que esta funcionando y podes reemplazar las variables y probalo\n\n Y fijate si tenés las cabeceras\n#include \"PdfHbDoc.ch\"\n#include \"Pdf.ch\"\n\n[code=fw:1mou49ln]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> &nbsp;impibrpdf<span style=\"color: #000000;\">&#40;</span> aMae, lPcia, oVar, cPath <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> z := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nrow := <span style=\"color: #000000;\">3.2</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cTitulo := <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oPdf<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nComproba<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> x<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lPcia<br /><br />&nbsp; &nbsp; &nbsp; cTitulo := <span style=\"color: #ff0000;\">\"Pcia de Buenos Aires\"</span><br />&nbsp; &nbsp; &nbsp; nComproba := &nbsp;ovar:<span style=\"color: #000000;\">nNBruto</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; nComproba := oVar:<span style=\"color: #000000;\">nNbrucap</span><br />&nbsp; &nbsp; &nbsp; cTitulo := <span style=\"color: #ff0000;\">\"Capital Federal\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">try</span><br />&nbsp; &nbsp;opdf := tpdf<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">new</span><span style=\"color: #000000;\">&#40;</span> cPath <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;titpdef<span style=\"color: #000000;\">&#40;</span> oPdf <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// creopdf están los titulos</span><br /><br /><br /><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CUIT 30-65485547-8\"</span>,cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2.4</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">100</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Agente de Retención: \"</span> + oApp:<span style=\"color: #000000;\">nroBruto</span> <span style=\"color: #000000;\">&#41;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2.4</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">350</span>, .T. <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfsetfont</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"COURIER\"</span>, <span style=\"color: #0000ff;\">NORMAL</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Retención de Ingresos Brutos\"</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> cTitulo, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">8.4</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Fecha: \"</span> + DToC<span style=\"color: #000000;\">&#40;</span> oVar:<span style=\"color: #000000;\">dfecha</span> <span style=\"color: #000000;\">&#41;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Constancia N° \"</span> + valstr<span style=\"color: #000000;\">&#40;</span> nComproba <span style=\"color: #000000;\">&#41;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Rentenido a: \"</span> + aMae<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CUIT \"</span> + aMae<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Domicilio: \"</span> + AllTrim<span style=\"color: #000000;\">&#40;</span>aMae<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> + Space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> + AllTrim<span style=\"color: #000000;\">&#40;</span>aMae<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> aMae<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Número de IIBB: \"</span> + aMae<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">17</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Pago efectuado: $\"</span> + Transform<span style=\"color: #000000;\">&#40;</span> oVar:<span style=\"color: #000000;\">totalre</span>,<span style=\"color: #ff0000;\">\"@e 999,999.99\"</span> <span style=\"color: #000000;\">&#41;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Importe retenido: $\"</span> + Transform<span style=\"color: #000000;\">&#40;</span> iif<span style=\"color: #000000;\">&#40;</span>lPcia,oVar:<span style=\"color: #000000;\">nRetib</span>,oVar:<span style=\"color: #000000;\">nRetibcap</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"@e 999,999.99\"</span> <span style=\"color: #000000;\">&#41;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Alícuota aplicada: %\"</span> + iif<span style=\"color: #000000;\">&#40;</span> lpcia,Transform<span style=\"color: #000000;\">&#40;</span>oVar:<span style=\"color: #000000;\">nPorIB</span>, <span style=\"color: #ff0000;\">\"@e 99.99\"</span> <span style=\"color: #000000;\">&#41;</span>,Transform<span style=\"color: #000000;\">&#40;</span>oVar:<span style=\"color: #000000;\">Ibrecap</span>, <span style=\"color: #ff0000;\">\"@e 99.99\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> x = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> Len<span style=\"color: #000000;\">&#40;</span> oVar:<span style=\"color: #000000;\">adeta</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> oVar:<span style=\"color: #000000;\">adeta</span><span style=\"color: #000000;\">&#91;</span> x, <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span> >= oApp:<span style=\"color: #000000;\">minibru</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Afecta a comprobante Nº \"</span> + oVar:<span style=\"color: #000000;\">adeta</span><span style=\"color: #000000;\">&#91;</span> x,<span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\" Base Imp. \"</span> + Transform<span style=\"color: #000000;\">&#40;</span>oVar:<span style=\"color: #000000;\">adeta</span><span style=\"color: #000000;\">&#91;</span> x,<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span>,<span style=\"color: #ff0000;\">\"@e 999,999.99\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Importe que será depositado por declaración jurada correspondiente al mes de\"</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += <span style=\"color: #000000;\">1.2</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> mes<span style=\"color: #000000;\">&#40;</span>Month<span style=\"color: #000000;\">&#40;</span>oVar:<span style=\"color: #000000;\">dfecha</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" de \"</span> + valstr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">Year</span><span style=\"color: #000000;\">&#40;</span>oVar:<span style=\"color: #000000;\">dFecha</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += .<span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.5</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">Pdfimage</span><span style=\"color: #000000;\">&#40;</span> oApp:<span style=\"color: #000000;\">curproga</span> + <span style=\"color: #ff0000;\">\"firma1.jpg\"</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> nrow += <span style=\"color: #000000;\">3.5</span> <span style=\"color: #000000;\">&#41;</span>, cmancho<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9.5</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">158</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">Pdfclosepage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">pdfclose</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />catch<br />&nbsp; &nbsp;? <span style=\"color: #ff0000;\">\"No encuentro variable\"</span><br />end<br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> cmAncho<span style=\"color: #000000;\">&#40;</span> nCm, ctexto <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cnum<br /><br /><span style=\"color: #00C800;\">RETURN</span> multi<span style=\"color: #000000;\">&#40;</span> nCm, <span style=\"color: #000000;\">27.42</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//para a4</span><br />&nbsp;</div>[/code:1mou49ln]\n\nEspero te sirva", "time": "00:49", "topic": "ARCHIVOS PDF", "username": "surGom" } ]
ARCHIVOS PDF
[ { "date": "2016-06-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Me olvidé de esta función\n\n[code=fw:mxlicr2x]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> titpdef<span style=\"color: #000000;\">&#40;</span> oPdf <span style=\"color: #000000;\">&#41;</span><br /><br />   opdf:<span style=\"color: #000000;\">Pdfnewpage</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"A4\"</span>, <span style=\"color: #ff0000;\">\"P\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   oPdf:<span style=\"color: #000000;\">Pdfimage</span><span style=\"color: #000000;\">&#40;</span> oApp:<span style=\"color: #000000;\">curproga</span> + <span style=\"color: #ff0000;\">\"logoc1.jpg\"</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2.5</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">66</span> <span style=\"color: #000000;\">&#41;</span><br />   oPdf:<span style=\"color: #000000;\">Pdfsetfont</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TIMES\"</span>, BOLD, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span><br />   opdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"QUÍMICA MEGA SA\"</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> .<span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">100</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />   oPdf:<span style=\"color: #000000;\">Pdfsetfont</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TIMES\"</span>, <span style=\"color: #0000ff;\">NORMAL</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span><br />   oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Matanza 1456/58\"</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.2</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">100</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />   oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Avellaneda-Pcia Bs As\"</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.6</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">100</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />   oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"T.E.: 4289-2700(Rotativas)\"</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2.0</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">100</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />   oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> Replicate<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"_\"</span>,<span style=\"color: #000000;\">115</span> <span style=\"color: #000000;\">&#41;</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2.6</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">10</span>, .T. <span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><span style=\"color: #B900B9;\">/*******************************************************************************/</span></div>[/code:mxlicr2x]", "time": "00:52", "topic": "ARCHIVOS PDF", "username": "surGom" } ]
ARCHIVOS PDF
[ { "date": "2016-06-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias\n\nlo pruebo y comento", "time": "01:03", "topic": "ARCHIVOS PDF", "username": "LuisPonce" } ]
ARCHIVOS PDF
[ { "date": "2016-06-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Willy y SurGom\n\nme da el mismo error\n\n\"Error al procesar pagina, numero fuera de rango\"\n\nAbre el Adobe Reader, el documento en blanco y el mensaje de error\n\ne incluir el PDF.ch, me da errores en los FONTS, NORMAL, BOLD.....", "time": "03:11", "topic": "ARCHIVOS PDF", "username": "LuisPonce" } ]
ARCHIVOS PDF
[ { "date": "2016-06-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola SurGom\n\nEsa libreria es para xHarbour??, la bajo y te aviso\n\nGracias", "time": "18:36", "topic": "ARCHIVOS PDF", "username": "LuisPonce" } ]
ARCHIVOS PDF
[ { "date": "2016-06-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Fijate que la librería que te envío es para harbour. Compila los prg con xharbour\n\n\n\nLuis", "time": "01:27", "topic": "ARCHIVOS PDF", "username": "surGom" } ]
ARCHIVOS PDF
[ { "date": "2016-06-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Esta está compilada con xharbour\n\n<!-- m --><a class=\"postlink\" href=\"https://www.4shared.com/file/MzS1IZWtba/tpdf.html\">https://www.4shared.com/file/MzS1IZWtba/tpdf.html</a><!-- m -->", "time": "01:33", "topic": "ARCHIVOS PDF", "username": "surGom" } ]
ARCHIVOS PDF
[ { "date": "2018-03-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos Luis\n\nRetomo este post, logre compilar los 2 ejemplos el de la PDFLIB y el de la TLIB, pero en ambos casos cuando ejecuto me sale el siguiente mensaje :\n\n\"Error al procesar pagina, numero fuera de rango\"\n\nNecesito crear PDFs sencillos directamente desde codigo, gracias", "time": "03:50", "topic": "ARCHIVOS PDF", "username": "Enrrique Vertiz" } ]
ARCHIVOS PDF
[ { "date": "2018-03-14", "forum": "FiveWin para Harbour/xHarbour", "text": "La solución es usar harupdf . Mirate en el foro , existen bastantes posts sobre el asunto .\nHarupdf esta dentro de las contrib de harbour y tenemos una clase de Carlos Mora que la hace casi compatible con tprinter de fwh .\nsi usas windows 10 otra opcion es usar la impresora \"Microsoft print to pdf\" que viene con él , imprimes como siempre pero directo a un pdf.\nSaludos.", "time": "08:38", "topic": "ARCHIVOS PDF", "username": "mastintin" } ]
ARCHIVOS PDF
[ { "date": "2018-03-14", "forum": "FiveWin para Harbour/xHarbour", "text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=33439\">viewtopic.php?f=6&t=33439</a><!-- l -->", "time": "09:34", "topic": "ARCHIVOS PDF", "username": "hmpaquito" } ]
ARCHIVOS PDF
[ { "date": "2018-03-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados, gracias por su apoyo\n\nAl final, decidi por modificar la rpreview.prg del FWH, segun sea el caso muestra el preview y espera, lo normal o muestra el preview y genera automaticamente el PDF que era lo que necesitaba.", "time": "12:04", "topic": "ARCHIVOS PDF", "username": "Enrrique Vertiz" } ]
ARCHIVOS PDF
[ { "date": "2017-01-06", "forum": "FiveWin para Harbour/xHarbour", "text": "amigo tengo este codigo\n\ncArchivoTxt :=memoread(\"C:\\SYSTEMA\\PTO_CORSSA\\salida.txt\")\nIf Empty(cArchivoTxt)\n MsgAlert(\"Archivo Vacio\",\"Atencion\" )\n\nElseIf !File(cArchivoTxt)\n MsgAlert(\"Archivo no se Encuentra\",\"Atencion\" )\n\nEndIf\n\ny siempre me sale archivo no se encuentra\n\nsaludos", "time": "14:14", "topic": "ARCHVIO TXT", "username": "jbrita" } ]
ARCHVIO TXT
[ { "date": "2017-01-06", "forum": "FiveWin para Harbour/xHarbour", "text": "alguna ayuda es urgente el problema\n\nsaludos", "time": "14:24", "topic": "ARCHVIO TXT", "username": "jbrita" } ]
ARCHVIO TXT
[ { "date": "2017-01-06", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:3ml8hxjc]<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> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cResult, cMuestra, oPrn, oFont, nLin, nLinha, nQtde<br /><br />&nbsp; &nbsp;BEGIN SEQUENCE<br /><br />&nbsp; &nbsp; &nbsp; cResult := MemoRead<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TESTE.TXT\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cMuestra := ALLTRIM<span style=\"color: #000000;\">&#40;</span> cResult <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PRINTER</span> oPrn <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Erros do Programa\"</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 <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> <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</span><br />&nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #000000;\">SetPortrait</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Vertical</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PAGE</span> <span style=\"color: #B900B9;\">// solo ejemplo - USE BEGIN... END..</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLin:=<span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> nLinha = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> MLCOUNT<span style=\"color: #000000;\">&#40;</span> cMuestra, <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPrn:<span style=\"color: #000000;\">CmSay</span><span style=\"color: #000000;\">&#40;</span> nLin := nLin +.<span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1.5</span>, MEMOLINE<span style=\"color: #000000;\">&#40;</span> cMuestra, <span style=\"color: #000000;\">100</span>, nLinha<span style=\"color: #000000;\">&#41;</span>, oFont <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nLin > <span style=\"color: #000000;\">25</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLin = <span style=\"color: #000000;\">1</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><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ENDPAGE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ENDPRINT</span><br /><br />&nbsp; &nbsp; &nbsp; oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;END SEQUENCE<br /><br />&nbsp; &nbsp;? LEN<span style=\"color: #000000;\">&#40;</span> cResult <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;nQtde := LEN<span style=\"color: #000000;\">&#40;</span> cResult <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> nQtde == <span style=\"color: #000000;\">1384</span><br /><br />&nbsp; &nbsp; &nbsp; MsgAlert<span style=\"color: #000000;\">&#40;</span> cResult <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Fallo en cResult\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:3ml8hxjc]\n\u001a", "time": "14:29", "topic": "ARCHVIO TXT", "username": "karinha" } ]
ARCHVIO TXT
[ { "date": "2017-01-06", "forum": "FiveWin para Harbour/xHarbour", "text": "I think it's happening because you are using a long name in the path (\\PTO_CORSSA). Try change to this:\n\ncArchivoTxt := memoread(Lfn2Sfn(\"C:\\SYSTEMA\\PTO_CORSSA\\salida.txt\"))", "time": "14:40", "topic": "ARCHVIO TXT", "username": "vilian" } ]
ARCHVIO TXT
[ { "date": "2017-01-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Very good Vilian,\n\n[code=fw:33z7oekk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// FiveWin long filenames management.</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> hFile &nbsp; := LCreat<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"This is a long filename file.txt\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cBuffer := <span style=\"color: #ff0000;\">\"FiveWin long filenames management\"</span><br /><br />&nbsp; &nbsp;FWrite<span style=\"color: #000000;\">&#40;</span> hFile, @cBuffer, Len<span style=\"color: #000000;\">&#40;</span> cBuffer <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;LClose<span style=\"color: #000000;\">&#40;</span> hFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// LongFileName to ShortFileName. The file must exists !!!</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> LFN2SFN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"This is a long filename file.txt\"</span> <span style=\"color: #000000;\">&#41;</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: #B900B9;\">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:33z7oekk]\n\u001a", "time": "14:58", "topic": "ARCHVIO TXT", "username": "karinha" } ]
ARCHVIO TXT
[ { "date": "2017-01-06", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"jbrita\":1xij67l9]amigo tengo este codigo\n\ncArchivoTxt :=memoread(\"C:\\SYSTEMA\\PTO_CORSSA\\salida.txt\")\nIf Empty(cArchivoTxt)\n MsgAlert(\"Archivo Vacio\",\"Atencion\" )\n\nElseIf !File(cArchivoTxt)\n MsgAlert(\"Archivo no se Encuentra\",\"Atencion\" )\n\nEndIf\n\ny siempre me sale archivo no se encuentra\n\nsaludos[/quote:1xij67l9]\n\nQuizás asi te funcione\n\n[code=fw:1xij67l9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />cMyFile &nbsp; := <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\S</span>YSTEMA<span style=\"color: #000000;\">\\P</span>TO_CORSSA<span style=\"color: #000000;\">\\s</span>alida.txt\"</span><br />cArchivoTxt :=memoread<span style=\"color: #000000;\">&#40;</span> cMyFile <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">If</span> Empty<span style=\"color: #000000;\">&#40;</span>cArchivoTxt<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgAlert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Archivo Vacio\"</span>,<span style=\"color: #ff0000;\">\"Atencion\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />ElseIf !File<span style=\"color: #000000;\">&#40;</span> cMyFile <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgAlert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Archivo no se Encuentra\"</span>,<span style=\"color: #ff0000;\">\"Atencion\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">EndIf</span><br /><br /><br />&nbsp;</div>[/code:1xij67l9]", "time": "15:57", "topic": "ARCHVIO TXT", "username": "cnavarro" } ]
ARCHVIO TXT
[ { "date": "2017-01-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Es pequeñito pero mal diseñado desde el principio\nCabia a esto:\n[code=fw:3ffmyjs2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />    cMyFile := <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\S</span>YSTEMA<span style=\"color: #000000;\">\\P</span>TO_CORSSA<span style=\"color: #000000;\">\\s</span>alida.txt\"</span><br />    <br />    <span style=\"color: #00C800;\">If</span> File<span style=\"color: #000000;\">&#40;</span> cMyFile <span style=\"color: #000000;\">&#41;</span><br />         cArchivoTxt := memoread<span style=\"color: #000000;\">&#40;</span> cMyFile <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">If</span> Empty<span style=\"color: #000000;\">&#40;</span>cArchivoTxt<span style=\"color: #000000;\">&#41;</span><br />               MsgAlert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Archivo Vacio\"</span>,<span style=\"color: #ff0000;\">\"Atencion\"</span> <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">endif</span><br />    <span style=\"color: #00C800;\">Else</span><br />          MsgAlert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Archivo no se Encuentra\"</span>,<span style=\"color: #ff0000;\">\"Atencion\"</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">EndIf</span><br /> </div>[/code:3ffmyjs2]", "time": "20:51", "topic": "ARCHVIO TXT", "username": "xmanuel" } ]
ARCHVIO TXT
[ { "date": "2008-07-09", "forum": "Off Topic / Otros temas", "text": "Hello all,\r\n I'm looking for an ARM9 based development kit, with the SDRAM of at least 64M, ethernet, audio and LCD connection. Better would it be if it would be Samsung S3C24x0 based. I have been looking around for a long time and found nothing exactly meets my requirement. Would anyone of you plz recommend one to me? thanks a lot!", "time": "10:25", "topic": "ARM9 Samsung S3C24x0 based dev kit?", "username": "leon20008" } ]
ARM9 Samsung S3C24x0 based dev kit?
[ { "date": "2008-07-09", "forum": "Off Topic / Otros temas", "text": "Do you mean a Pocket PC hardware or are you looking for a software development tool for that hardware ?", "time": "10:56", "topic": "ARM9 Samsung S3C24x0 based dev kit?", "username": "Antonio Linares" } ]
ARM9 Samsung S3C24x0 based dev kit?
[ { "date": "2008-07-10", "forum": "Off Topic / Otros temas", "text": "Hi Antonio..\r\nI mean hardware, a development board\r\n I finally found one kit named AT2440 yesterday at [url:os6w1pwp]http&#58;//www&#46;developmentboard&#46;net[/url:os6w1pwp]\r\n. What do you think of it?\r\nI think it would be perfect for me. The board is nice, it meets all\r\nof my requiremenst, and contains all the necessary accessaries. The\r\nprice is reasonable. And the company in China would provide me English\r\ninstruction files, so I can modify it by myself in the future and learn\r\nmore about the embedded things.\r\nI found that development kits from China are really cheap, maybe you guys should try this [url:os6w1pwp]http&#58;//www&#46;developmentboard&#46;net[/url:os6w1pwp] next time when you need some boards.", "time": "04:54", "topic": "ARM9 Samsung S3C24x0 based dev kit?", "username": "leon20008" } ]
ARM9 Samsung S3C24x0 based dev kit?
[ { "date": "2010-07-27", "forum": "FiveWin for Harbour/xHarbour", "text": "how I can del an element of a array and refresh the array ?\nI have a array aData sample \n56,.t.\n102,.f.\n103,.f.\n I want delete only the array element with .t. and refresh the array aData", "time": "00:55", "topic": "ARRAY", "username": "MdaSolution" } ]
ARRAY
[ { "date": "2010-07-27", "forum": "FiveWin for Harbour/xHarbour", "text": "// I want delete only the array element with .t. and refresh the array aData\n\nPRIVATE aData[5][2]\naData[1] := { [color=#FF0000:eemvntuc]56[/color:eemvntuc], .T. }\naData[2] := { 102, .F. }\naData[3] := { 103, .F. }\naData[4] := { [color=#FF0000:eemvntuc]104[/color:eemvntuc], .T. }\naData[5] := { 105, .F. }\n\n[color=#00BF00:eemvntuc]// Optional\nPRIVATE aNEWARRAY := {}[/color:eemvntuc]\n\n// [color=#0000FF:eemvntuc]Show all Array-Elements[/color:eemvntuc]\nI := 1\nFOR I := 1 TO LEN(aData)\nMsgalert( aData[I][1] )\nNEXT\n\n// [color=#0000FF:eemvntuc]Delete all Elements with .T.[/color:eemvntuc]\nI := 1\nY := LEN( aData )\nFOR I := 1 TO Y\nIF aData[I][2] = .T.\nADEL( aData,I )\nY-- // [color=#FF0000:eemvntuc]Reduce Array-Length - 1[/color:eemvntuc] ( dynamic FOR / NEXT )\nAADD(aNEWARRAY, { aData[I][1], .F.}) [color=#00BF00:eemvntuc]// Optional save all .F. to a new Array[/color:eemvntuc]\nENDIF\nNEXT\n\n// Shows [color=#FF0000:eemvntuc]102, 103, 105[/color:eemvntuc] ( original ARRAY with only .F.)\nI := 1\nFOR I := 1 TO Y ( Y = new Array-length )\nMsgalert( aData[I][1] )\nNEXT\n\n[color=#00BF00:eemvntuc]// Optional\nI := 1\nFOR I := 1 TO LEN( aNEWARRAY )\nMsgalert( aNEWARRAY[I][1] )\nNEXT[/color:eemvntuc]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "02:12", "topic": "ARRAY", "username": "ukoenig" } ]
ARRAY
[ { "date": "2010-07-27", "forum": "FiveWin for Harbour/xHarbour", "text": "This is simpler\n[code=fw:290xxoy2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">AEval<span style=\"color: #000000;\">&#40;</span> AClone<span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#123;</span> |a,i| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> a<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, ADel<span style=\"color: #000000;\">&#40;</span> aData, i, .t. <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:290xxoy2]", "time": "08:35", "topic": "ARRAY", "username": "nageswaragunupudi" } ]
ARRAY
[ { "date": "2010-07-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Take note, in Rao's code, ADel() has 3 parameter. The 3rd parameter is an xHarbour extension which I think is not supported by Harbour", "time": "10:56", "topic": "ARRAY", "username": "hua" } ]
ARRAY
[ { "date": "2010-07-27", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"hua\":5aavhqyb]Take note, in Rao's code, ADel() has 3 parameter. The 3rd parameter is an xHarbour extension which I think is not supported by Harbour[/quote:5aavhqyb]\nThis works with Harbour too. Just link xhb.lib. Harbour make file in samples folder includes this lib", "time": "13:03", "topic": "ARRAY", "username": "nageswaragunupudi" } ]
ARRAY
[ { "date": "2010-07-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Rao:\n[quote=\"nageswaragunupudi\":3m6sxp1e]\nThis works with Harbour too. Just link xhb.lib. Harbour make file in samples folder includes this lib[/quote:3m6sxp1e]The function in xhb.lib that does the job is named xhb_adel()\n\nBest regards.\n\nManuel Mercado Gómez.", "time": "23:11", "topic": "ARRAY", "username": "mmercado" } ]
ARRAY
[ { "date": "2010-07-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks Mr. Mercado. \nYes. You are right.\nIf we need syntax compatibility with xharbour, we need to include xhb.ch in the program file and link it with xhb.lib.\n\nThe logic I posted above is faulty.\nHere is the corrected one\n[code=fw:2qmxgmfo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br />#ifndef __XHARBOUR__<br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xhb.ch\"</span><br />#endif<br /><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aData := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, .t. <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>, .f. <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>, .t. <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>, .f. <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> n := <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> AClone<span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#123;</span> |a,i| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> a<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, ADel<span style=\"color: #000000;\">&#40;</span> aData, n, .t. <span style=\"color: #000000;\">&#41;</span>, n++ <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:2qmxgmfo]", "time": "02:38", "topic": "ARRAY", "username": "nageswaragunupudi" } ]
ARRAY
[ { "date": "2010-07-28", "forum": "FiveWin for Harbour/xHarbour", "text": "thanks to all.\nI corrected the error .", "time": "09:21", "topic": "ARRAY", "username": "MdaSolution" } ]
ARRAY
[ { "date": "2021-04-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos algun ejemplo de array folderex , BUSQUEDA y xbrowse\n\nsaludos", "time": "17:32", "topic": "ARRAY + FOLDER + XBROWSE + BUSQUEDA", "username": "jbrita" } ]
ARRAY + FOLDER + XBROWSE + BUSQUEDA
[ { "date": "2021-04-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Ningun colega a tenido la oportunidad de trabajar con estos controles al mismo tiempo\n\nsaludos", "time": "15:25", "topic": "ARRAY + FOLDER + XBROWSE + BUSQUEDA", "username": "jbrita" } ]
ARRAY + FOLDER + XBROWSE + BUSQUEDA
[ { "date": "2012-03-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos, he necesitado los titulos de las columnas de un xBrowse para alimentar un combobox y asi que el usuario decida por donde hacer el rodenamiento o busqueda, mi pregunta es, existe una VAR en la clase xBrowse que me devuelvo todos los nombres definidos de las columnas, algo como aHeader, pero que devuelva cHeader.? por los momentos lo consigo asi: \n\nFOR nFor := 1 TO LEN(oBrow:aCols)\n AADD( aTitCol, oBrow:aCols[nFor]:cHeader )\n\nNEXT\n\nluego paso aTitCol al combo box, sino existe ni modo, lei la clase como a las 1:00 am pero no encontre nada que me ayudara, seguro se me paso y no lo vi, <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> , gracias, saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "16:57", "topic": "ARRAY CON TITULOS DE LAS COLUMNAS EN XBROWSE(SOLUCIONADO)", "username": "joseluisysturiz" } ]
ARRAY CON TITULOS DE LAS COLUMNAS EN XBROWSE(SOLUCIONADO)
[ { "date": "2012-03-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Jose\n\nLa forma como lo haces es la correcta, no se guarda los \"prompt\" de las columnas en un array aparte pues ya estan creados en los objetos columnas, eso evita tener informacion repetida", "time": "17:41", "topic": "ARRAY CON TITULOS DE LAS COLUMNAS EN XBROWSE(SOLUCIONADO)", "username": "Daniel Garcia-Gil" } ]
ARRAY CON TITULOS DE LAS COLUMNAS EN XBROWSE(SOLUCIONADO)
[ { "date": "2012-03-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Ok Daniel, gracias por el dato, por lo menos no estaba tan perdido, jejeje, saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "19:47", "topic": "ARRAY CON TITULOS DE LAS COLUMNAS EN XBROWSE(SOLUCIONADO)", "username": "joseluisysturiz" } ]
ARRAY CON TITULOS DE LAS COLUMNAS EN XBROWSE(SOLUCIONADO)
[ { "date": "2009-10-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Can I see if an array is empty or Full ?\nI must show a ok.bmp if aNumbers[1] is full or if is Empty I must show No.bmp", "time": "10:02", "topic": "ARRAY EMpty", "username": "Silvio" } ]
ARRAY EMpty
[ { "date": "2009-10-07", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:2i78qvfb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">iif<span style=\"color: #000000;\">&#40;</span>aNumbers<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #00C800;\">nil</span>,<span style=\"color: #ff0000;\">' no.bmp'</span>,<span style=\"color: #ff0000;\">'ok.bmp)</span></div>[/code:2i78qvfb]\n\nRegards,\nMarc", "time": "10:42", "topic": "ARRAY EMpty", "username": "Marc Vanzegbroeck" } ]
ARRAY EMpty
[ { "date": "2006-10-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Alguien me podria explicar como usar BROWSE con ARRAY, \n\nyo uso TSBROWSE,, ahi defino con ADD COLUMN TO Obrw ARRAY ELEMENT \n\nalgun ejemplo util \n\nGRACIAS", "time": "23:11", "topic": "ARRAY EN BROWSE ( TSBROWSE)", "username": "A&C" } ]
ARRAY EN BROWSE ( TSBROWSE)
[ { "date": "2006-10-23", "forum": "FiveWin para Harbour/xHarbour", "text": "te envie algo a tu privado, espero te ayude, es de ayuda de otros colegas.", "time": "02:24", "topic": "ARRAY EN BROWSE ( TSBROWSE)", "username": "joseluisysturiz" } ]
ARRAY EN BROWSE ( TSBROWSE)
[ { "date": "2006-10-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Asi lo tengo yo\nSaludos\n\n[code:25jo9lws]\n\n oBrw &#58;= TXBrowse&#40;&#41;&#58;New&#40; oDlg &#41;\n oBrw&#58;CreateFromResource&#40; 100 &#41;\n\n oBrw&#58;SetArray&#40; aDatos, &#46;t&#46; &#41; // &#46;t&#46; para que haga sort de los datos\n\n oBrw&#58;aCols&#91;1&#93;&#58;cHeader &#58;= \"TD\"\n oBrw&#58;aCols&#91;2&#93;&#58;nDataStrAlign &#58;= 0 // 0=izq 1=der\n\n oBrw&#58;aCols&#91;2&#93;&#58;cHeader &#58;= \"#Número\"\n oBrw&#58;aCols&#91;2&#93;&#58;nDataStrAlign &#58;= 0\n\n oBrw&#58;aCols&#91;3&#93;&#58;cHeader &#58;= \"F&#46;Emisión\"\n oBrw&#58;aCols&#91;3&#93;&#58;nDataStrAlign &#58;= 0\n\n oBrw&#58;aCols&#91;4&#93;&#58;cHeader &#58;= \"F&#46;Ult&#46;Venc&#46;\"\n oBrw&#58;aCols&#91;4&#93;&#58;nDataStrAlign &#58;= 0\n\n oBrw&#58;aCols&#91;5&#93;&#58;cHeader &#58;= \"Mo&#46;\"\n oBrw&#58;aCols&#91;5&#93;&#58;nDataStrAlign &#58;= 0\n\n oBrw&#58;aCols&#91;6&#93;&#58;cHeader &#58;= \"V&#46;Bruto\"\n oBrw&#58;aCols&#91;6&#93;&#58;nDataStrAlign &#58;= 1\n\n oBrw&#58;aCols&#91;7&#93;&#58;cHeader &#58;= \"Saldo\"\n oBrw&#58;aCols&#91;7&#93;&#58;nDataStrAlign &#58;= 1\n\n oBrw&#58;aCols&#91;8&#93;&#58;cHeader &#58;= \"Tasa\"\n oBrw&#58;aCols&#91;8&#93;&#58;nDataStrAlign &#58;= 1\n\n oBrw&#58;aCols&#91;9&#93;&#58;cHeader &#58;= \"ID\"\n oBrw&#58;aCols&#91;9&#93;&#58;nDataStrAlign &#58;= 1\n\n oBrw&#58;lHScroll &#58;= &#46;T&#46;\n oBrw&#58;lVScroll &#58;= &#46;T&#46;\n\n oBrw&#58;nRowDividerStyle &#58;= 4\n oBrw&#58;nColDividerStyle &#58;= 4\n oBrw&#58;nMarqueeStyle &#58;= 5\n oBrw&#58;lRecordSelector &#58;= &#46;f&#46;\n\n[/code:25jo9lws]", "time": "13:11", "topic": "ARRAY EN BROWSE ( TSBROWSE)", "username": "dbzap" } ]
ARRAY EN BROWSE ( TSBROWSE)
[ { "date": "2006-10-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Yo uso el wbrowse de Hernán y funciona muy bien con arrays\n\n\n@15,1 listbox listrubros fields str(arubros[listrubros:nat][1],10,0)),;\n arubros[listrubros:nat,2],;\n\t\t arubros[listrubros:nat,3];\n headers \"Rubro\", \"Descripcion\", \"Medida\";\n fieldsizes 50,200,50;\n of oFolde:aDialogs[2] font ofont size 330, 120 update pixel\n listrubros:ajustify:={.f.,.f.,.f.}\n listrubros:cAlias := \"ARRAY\"\n listrubros:setarray(arubros)\n listrubros:lcellstyle:=.t.\n listrubros:nlinestyle:=1\n\n\nUn saludo\n\nMarcelo Jingo", "time": "17:33", "topic": "ARRAY EN BROWSE ( TSBROWSE)", "username": "sjingo" } ]
ARRAY EN BROWSE ( TSBROWSE)
[ { "date": "2006-10-23", "forum": "FiveWin para Harbour/xHarbour", "text": "mandame tu correo y te mando un ejemplo. El mio es <!-- e --><a href=\"mailto:horacio_dellacasa@yahoo.com.ar\">horacio_dellacasa@yahoo.com.ar</a><!-- e -->\n\nSaludos", "time": "18:21", "topic": "ARRAY EN BROWSE ( TSBROWSE)", "username": "horacio" } ]
ARRAY EN BROWSE ( TSBROWSE)
[ { "date": "2007-09-18", "forum": "FiveWin for Harbour/xHarbour", "text": "I remember to have read that array rdd is available. Can any one help me where can i get it please?\n\nNageswara Rao", "time": "12:27", "topic": "ARRAY RDD", "username": "nageswaragunupudi" } ]
ARRAY RDD
[ { "date": "2007-09-18", "forum": "FiveWin for Harbour/xHarbour", "text": "It is in the xHarbour CVS:\n\nsource\\rdd\\usrrdd\\rdds\\arrayrdd.prg\n\nEMG", "time": "18:07", "topic": "ARRAY RDD", "username": "Enrico Maria Giordano" } ]
ARRAY RDD
[ { "date": "2007-09-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you very much pls\nRegards\nNageswaraRao", "time": "01:30", "topic": "ARRAY RDD", "username": "nageswaragunupudi" } ]
ARRAY RDD
[ { "date": "2013-07-06", "forum": "FiveWin for Harbour/xHarbour", "text": "For Harbour already exists a more complete version of this class With Index support, and for xharbour exist same ?", "time": "15:23", "topic": "ARRAY RDD", "username": "vilian" } ]
ARRAY RDD
[ { "date": "2009-05-04", "forum": "FiveWin for Pocket PC", "text": "Hello Antonio,\nI found out that a kind of „recordset” approach - oLbx with ARRAY - works much faster than using the database.\nAre you aware of advantages / disadvantages of using ARRAYS.\nThanks in advance\nOtto\n\nWith ARRAY (much faster)\n[code=fw:1p26lco0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">while</span> .not. eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />aadd<span style=\"color: #000000;\">&#40;</span>arr1,<span style=\"color: #000000;\">&#123;</span> str<span style=\"color: #000000;\">&#40;</span>RECHNUNG->menge<span style=\"color: #000000;\">&#41;</span>,str<span style=\"color: #000000;\">&#40;</span>RECHNUNG->vmenge<span style=\"color: #000000;\">&#41;</span>, RECHNUNG->bezeichnun,str<span style=\"color: #000000;\">&#40;</span>RECHNUNG->Wert <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />skip<br /><span style=\"color: #00C800;\">enddo</span><br /><br />   @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">LISTBOX</span> oBrwRG ;<br />    FIELDS <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"\"</span> ,<span style=\"color: #ff0000;\">\"\"</span>,<span style=\"color: #ff0000;\">\"\"</span>;<br />    HEADERS <span style=\"color: #ff0000;\">\"ME\"</span>, <span style=\"color: #ff0000;\">\"VMe\"</span>, <span style=\"color: #ff0000;\">\"Bezeichnung\"</span>,<span style=\"color: #ff0000;\">\"Preis\"</span> ;<br />    <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">240</span>, <span style=\"color: #000000;\">195</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oWndRG<br />   oBrwRG:<span style=\"color: #000000;\">bLine</span> = <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> arr1<span style=\"color: #000000;\">&#91;</span>oBrwRG:<span style=\"color: #000000;\">nAt</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, arr1<span style=\"color: #000000;\">&#91;</span>oBrwRG:<span style=\"color: #000000;\">nAt</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>, arr1<span style=\"color: #000000;\">&#91;</span>oBrwRG:<span style=\"color: #000000;\">nAt</span>,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>, arr1<span style=\"color: #000000;\">&#91;</span>oBrwRG:<span style=\"color: #000000;\">nAt</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />   oBrwRG:<span style=\"color: #000000;\">SetArray</span><span style=\"color: #000000;\">&#40;</span> arr1 <span style=\"color: #000000;\">&#41;</span><br /> <br /> </div>[/code:1p26lco0]\n \n \n Database:\n \n[quote:1p26lco0] select RECHNUNG\n go top\n\n @ 0, 0 LISTBOX oBrwRG ;\n FIELDS ALLTRIM(str(RECHNUNG->menge-RECHNUNG->vmenge)),ALLTRIM(str(RECHNUNG->vmenge)), RECHNUNG->bezeichnun,str(RECHNUNG->Wert);\n HEADERS \"ME\", \"VMe\", \"Bezeichnung\",\"Preis\";\n ALIAS \"RECHNUNG\";\n fieldsizes 30,30,110,30;\n SIZE 240, 195 OF oWndRG\nSELECT RECHNUNG->AKTIV FOR \" \" TO \" \" \n \n \n[/quote:1p26lco0]\n\n\nBest regards,\nOtto", "time": "10:48", "topic": "ARRAY or DATABASE with oLbx?", "username": "Otto" } ]
ARRAY or DATABASE with oLbx?
[ { "date": "2009-05-04", "forum": "FiveWin for Pocket PC", "text": "Otto,\n\nAn array is entirely hold in memory, it does not need any disk access, thus it is faster.\n\nAnyhow, if you are doing your tests in the Pocket PC memory card, please keep in mind that the memory card as harddisk is slower than using a Pocket PC folder in its harddisk.", "time": "11:34", "topic": "ARRAY or DATABASE with oLbx?", "username": "Antonio Linares" } ]
ARRAY or DATABASE with oLbx?
[ { "date": "2009-05-04", "forum": "FiveWin for Pocket PC", "text": "Hello Antonio,\nI made more tests and found out that it is the \"select for to\" what makes it slow.\n\nBest regards,\nOtto", "time": "12:35", "topic": "ARRAY or DATABASE with oLbx?", "username": "Otto" } ]
ARRAY or DATABASE with oLbx?
[ { "date": "2009-05-04", "forum": "FiveWin for Pocket PC", "text": "Otto,\n\n> \"select for to\"\n\nYes, as it works as a filter. You should always use conditional indexes instead", "time": "13:12", "topic": "ARRAY or DATABASE with oLbx?", "username": "Antonio Linares" } ]
ARRAY or DATABASE with oLbx?
[ { "date": "2009-05-04", "forum": "FiveWin for Pocket PC", "text": "Hello Antonio,\n\nconditional is the solution.\nNow it is high speed. \n\nBest regards,\nOtto", "time": "14:39", "topic": "ARRAY or DATABASE with oLbx?", "username": "Otto" } ]
ARRAY or DATABASE with oLbx?
[ { "date": "2007-06-01", "forum": "FiveWin for CA-Clipper", "text": "I need to use array longer than 4096 elements (multidimensional if possible), and it is verry important to be used in LISTBOX.\n\nSome sugestions ?[/b]", "time": "12:08", "topic": "ARRAY over 4096 elements", "username": "avista" } ]
ARRAY over 4096 elements
[ { "date": "2007-06-01", "forum": "FiveWin for CA-Clipper", "text": "Clipper arrays are limited to 4096 elements. There is a workaround that consists on using the latest element to point to another array:\n\naTest[ 4096 ] = Array( 4096 )\n\nAnyhow we do recommend you to port your Clipper application to Harbour/xHarbour where these limitations no longer exist", "time": "12:21", "topic": "ARRAY over 4096 elements", "username": "Antonio Linares" } ]
ARRAY over 4096 elements
[ { "date": "2007-06-01", "forum": "FiveWin for CA-Clipper", "text": "Hi Antonio and thanks for fast answer.\n\n-> aTest[ 4096 ] = Array( 4096 )\n\n\n I will try to use this ....but how to use it in LISTBOX and view that 9191 elements ?\n\nBest regards,\n Pande.", "time": "13:31", "topic": "ARRAY over 4096 elements", "username": "avista" } ]
ARRAY over 4096 elements