topic
stringlengths
1
63
text
stringlengths
1
577k
oBrw:ToCalc() OpenOffice similiar to oBrw:ToExcel()
Antonio and Friends,How about having a Method in xBrowse to export data to Calc (OpenOffice) similiar to oBrw:ToExcel() in future xBrowse updates.Nowadays I find that more people are getting used to OpenOffice and are insisting to have reports in Calc instead of Excel.OpenOffice Calc can be configured to open MS Excel ...
oBrw:ToCalc() OpenOffice similiar to oBrw:ToExcel()
Friends,From another forum I found that in Mr.Manual Mercados' TSBrowse there is a Method to export TsBrowse Data to Excel Format without using OLE. This TSBrowse has 2 methods to transfer browser data to ExcelMethod 1 : using OLE similiar to xBrowse:ToExcel() methodMethod 2 : Data is transfered to excel without using ...
oBrw:ToExcel( ... ) Use bHeader y bFooter (Resuelto)
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=37671">viewtopic.php?f=3&t=37671</a><!-- l -->
oBrw:ToExcel( ... ) Use bHeader y bFooter (Resuelto)
Hola. Mr. Nages. Como podria agregar informacion al Inicio y al final del documento Excel Creado con oBrw:ToExcel( ... ) Ejm : HEADER LINEA1 HEADER LINEA2 HEADER LINEA3 ..... INFORMACION AGREGADA POR oBrw:ToExcel( ... ) .... FOOTER LINEA1 FOOTER LINEA2 FOOTER LINEA3 .......... Podria ser algo asi, ejemplo :...
oBrw:ToExcel( ... ) Use bHeader y bFooter (Resuelto)
Saludos man, hasta donde se hay forma de saber el final de una hoja creada, alli podrias con la clase excel agregar dicha linea de footer y al inicio la cabezera, se que no es lo mas practica, pero es una solucion temporal mientras se hace lo que sugieres en la clase de xbrowse, mandame un wsap cuando puedas que necesi...
oBrw:ToExcel( ... ) Use bHeader y bFooter (Solved)
Hello. Mr. Nages. How could I add information at the Start and end of the Excel document Created with oBrw: ToExcel (...) Example : HEADER LINEA1 HEADER LINEA2 HEADER LINEA3 ..... Iformation Added by oBrw:ToExcel( ... ) .... FOOTER LINEA1 FOOTER LINEA2 FOOTER LINEA3 .......... It could be something like that,...
oBrw:ToExcel( ... ) Use bHeader y bFooter (Solved)
oBrw:ToExcel(...) returns oSheet object( Worksheet object of Excel ) You can add/modify whatever information you want to the oSheet object.
oBrw:ToExcel( ... ) Use bHeader y bFooter (Solved)
Thanks Mr. Nages
oBrw:ToExcel() doesn't runs with FWH9.10
Hi all, there is a problem using the method oBrw:ToExcel() when only openoffice (3.0 >) is installed. A self contained sample is available on <!-- w --><a class="postlink" href="http://www.softwarexp.co.uk/beta/xtest.zip">www.softwarexp.co.uk/beta/xtest.zip</a><!-- w --> and the following error appairs: Application ...
oBrw:ToExcel() doesn't runs with FWH9.10
Marco, We are already reviewing it to provide you a solution today or tomorrow morning, thanks
oBrw:ToExcel() doesn't runs with FWH9.10
Please substitute the present line 5993 in METHOD ToExcel( ... ) [quote:3i9s9j1k] return ::ToCalc( bProgress, nGroupBy,, aCols )[/quote:3i9s9j1k] as [quote:3i9s9j1k] return ::ToCalc( bProgress, nGroupBy,,, aCols )[/quote:3i9s9j1k] One more comma is needed in the parameters.
oBrw:ToExcel() doesn't runs with FWH9.10
It runs. Thanks
oBrw:ToExcel() error
Hi everyone; I'm seen an error when exporting from xbrowse using :ToExcel(). Error text is: [code=fw:180g5lki]<div class="fw" id="{CB}" style="font-family: monospace;">Error Excel.Application.ACTIVESHEET/<span style="color: #000000;">424</span> Unknown error: <span style="color: #000000;">CELLS</span><br />...<br />S...
oBrw:ToExcel() error
We need to see what is the code in line 6935. Very likely, such an error could arise when the parameters of Cells(...) are invalid or invalid assignment.
oBrw:ToExcel() error
Hi. The line at 6935 is this: [code=fw:1eaj2bln]<div class="fw" id="{CB}" style="font-family: monospace;">                     oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> nPasteRow, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>:<span s...
oBrw:ToExcel() error
[quote:a783rpgb][ 1 ] = N 353213 [/quote:a783rpgb] This is the reason. Here nPasteRow's value appears to be beyond the limit. If the code of xbrowse is bug-free ( let us assume so for the time being ), this value should not exceed the total rows in the table. If the table really contains more rows than 352,213 then we ...
oBrw:ToExcel() error
Mr. Rao; Hi. Thank you for the information. The error log is being saved to a systemerrors table. I get to inspect the table on a daily base looking for bugs. However, I don't have an installation where the program is used by less than 70 users and although I do know the login user's name that generates the runtim...
oBrw:ToExcel() error
[quote:1evtb8o6]bKeyCount() might be the problem here as it might not be respecting filters ...?[/quote:1evtb8o6] Likely. Actually the Loop should end when either nRow > Eval( bKeyCount ) .or. Eval( bSkip, 1 ) != 1, whichever happens first. You can try checking behavior of these codeblocks.
oBrw:ToExcel() error ACTIVESHEET:CELLS/0 S_OK: _FORMULA
Hi, My program was worked good until few days. I havnt changed anything is source code. Now while XBROWSE exporting data to EXCEL 'TXBROWSE:TOEXCEL()' method produce error: Application =========== Path and name: C:\dantools\dantools.exe (32 bits) Size: 3,117,056 bytes Time from start: 0 hours 0 mins 36 secs ...
oBrw:ToExcel() error ACTIVESHEET:CELLS/0 S_OK: _FORMULA
[quote:dsdolc1t]My Question is HOW TO DETERMINE "List Separator" from "Regional and Language Options" and how to send it like a parameter to XBROWSE [/quote:dsdolc1t] We shall soon provide a way for the programmer to specify language specific parameters, to replace the defaults where necessary. We also need to do thi...
oBrw:ToExcel() error ACTIVESHEET:CELLS/0 S_OK: _FORMULA
Hi Rao, Thanks for reply, I see but ... some sugestions for now ? I ask again ...any chance to TO DETERMINE "List Separator" from "Regional and Language Options" from FWH If yes i will make some changes to XBROWSE class to use "List Separator" May be i can ask user when start oBrw:ToExcel() what "List Separator" use bu...
oBrw:ToExcel() error ACTIVESHEET:CELLS/0 S_OK: _FORMULA
Great Mr. Rao. I also offer my help to test on spanish systems. Thank you very much.
oBrw:ToExcel() error ACTIVESHEET:CELLS/0 S_OK: _FORMULA
Hi Rao, [b:ni90rcan]I please again ... some sugestions for now ?[/b:ni90rcan] any chance to TO DETERMINE "List Separator" from "Regional and Language Options" from FWH If yes i will make some changes to XBROWSE class to use "List Separator" [b:ni90rcan]If no ...any chance to use TRY clausule to stop CRASHING program...
oBrw:ToExcel() error ACTIVESHEET:CELLS/0 S_OK: _FORMULA
??
oBrw:ToExcel() error ACTIVESHEET:CELLS/0 S_OK: _FORMULA
My solution for this problem. First i added a function [b:3siyxqck]GetListSeparator()[/b:3siyxqck] in XBROWSE CLASS which return "List Separator" from "Regional and Language Options" [code=fw:3siyxqck]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> GetListSepara...
oBrw:ToExcel() error ACTIVESHEET:CELLS/0 S_OK: _FORMULA
An easier way to get list separator is cListSeparator := oExcel:International[ 5 ]
oBrw:aCols[5]:SetColsAsRows( ) SOLUCIONADO
Buenas noches amigos. Estoy tratando de agregar nuevas funcionalidades a un programa de Nominas Quincenales que he desarrollado. Tengo un pequeño inconveniente: Al utilizar :SetColsAsRows() todo funciona, excepto porque el fondo de las columnas unidas no se pinta totalmente en la columna única creada. Parece como que ...
oBrw:aCols[5]:SetColsAsRows( ) SOLUCIONADO
Disculpen, olvidé poner el código. [code=fw:273mawbb]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oLbx <span style="color: #0000ff;">ID</span> <span style="color: #000000;">181</span> <span style="color: #000...
oBrw:aCols[5]:SetColsAsRows( ) SOLUCIONADO
OK, solucionado. Debe ser mi version 1204. Voy a revisar la Classe y tratar de modificarla. //Para pintar bien fondo de cols de menor tamaño a la que se unen con :SetColsAsRow() oBrw:aCols[6]:nWidth := oBrw:aCols[5]:nWidth oBrw:aCols[8]:nWidth := oBrw:aCols[5]:nWidth Saludos.
oBrw:aCols[x]:Hide() muuuy lento
Hola jovenes, Requiriendo de su sapiencia. Uso TXBROWSE y defino las columnas asi: ADD TO oBrw DATA (Archivo)->Campo Posteriormente, si no deseo que alguna columna sea mostrada pero que aparezca cuando se de clic derecho en los encabezados, uso: oBrw:aCols[x]:Hide() El asunto es que, por ejemplo, tengo 44 columnas d...
oBrw:aCols[x]:Hide() muuuy lento
probaste que pasa si usas nWidth= 0 o si utilizas colores, probaste sacarle los colores? o fijarte si usas que la ultima columna tome todo el ancho que quede del xBrowse? otra pregunta, utlizar datos de tablas o mysql? si es asi yo hay veces que hago la consulta de suponte 5 campos y solo en el xbrowe defino 2, si se ...
oBrw:aCols[x]:Hide() muuuy lento
Hola goosfancito, Gracias por contestar. No puedo usar nWith=0 porque aparecerian las rayas verticales divisorias y si el usuario desea ver una de las "minimizadas" deberia ampliar todas para ver cual es la que necesita. Los colores si son necesarios porque sirven para diferenciar el sexo de los animales que esta mos...
oBrw:aCols[x]:Hide() muuuy lento
Rodolfo Para entender tu codificación. Si mostras 7 columnas, porque necesitás ADD las 44?
oBrw:aCols[x]:Hide() muuuy lento
La informacion basica se encuentra en esas 7 columnas, pero si el usuario desea ver la informacion adicional bastaria con dar clic derecho en el area de encabezados y seleccionar las columnas que ahora desea ver.
oBrw:bClrStd error in 16.04
Hi, I was using it in 16.02 without any error. [code=fw:wj25rtvi]<div class="fw" id="{CB}" style="font-family: monospace;">  oBrw:<span style="color: #000000;">bClrStd</span>   := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, <span style="color: #00C800;">If</spa...
oBrw:bClrStd error in 16.04
This must have happened when browsing an empty array. Please make this modification in xbrowse.prg: Please locate METHOD CreateBarGet() CLASS TXBrwColumn ( Line 12450 ) [code=fw:19980xdr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> CreateBarGet<span style="colo...
oBrw:bClrStd error in 16.04
Thank you mr. Rao, It is working now.
oBrw:bKeyDown VK_LEFT y VK_RIGHT ( SOLUCIONADO )
Hola que tal: Yo pude capturar las pulsaciones de VK_Down y VK_Right pero cambiándolas en el tGet.prg por lo que mi contestación te valdría si tienes un Get cuando quieres capturarlas. Yo me cree una variable publica que la llame zGetKey y la puse en valor 1 y en las ventanas que quiero capturar el VK_Left, el VK_Rig...
oBrw:bKeyDown VK_LEFT y VK_RIGHT ( SOLUCIONADO )
Saludos de nuevo: Alguien ha podido detectar cuando las teclas VK_LEFT y VK_RIGHT son presionadas via oBrw:bKeyDown de XBrowse.? El teclado alfanumerico es detectado más no así las teclas arriba, abajo, derecha e izquierda. [code=fw:31bjhrtz]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style...
oBrw:bKeyDown VK_LEFT y VK_RIGHT ( SOLUCIONADO )
Victor, Tienes que modificar el método KeyDown() de la Clase TXBrowse para detectar esas teclas y evaluar un codeblock (por ejemplo). Que necesitas hacer para esas teclas ? Igual se nos ocurre otra forma
oBrw:bKeyDown VK_LEFT y VK_RIGHT ( SOLUCIONADO )
Gracias por tomarse la molestia de leer mi petición: Carlos: Con get no hay problema, tengo algo similiar a lo que me comentas para obtener estas teclas, solo necesito obtenerlas y hacer que funcionen en la clase xbrowse, de todas maneras muchas gracias por tu comentario... <!-- s:lol: --><img src="{SMILIES_PATH}/ico...
oBrw:bKeyDown VK_LEFT y VK_RIGHT ( SOLUCIONADO )
Victor, Porque no usas un Tree (arbol) estandard de Windows ? Hay alguna razón en especial ?
oBrw:bKeyDown VK_LEFT y VK_RIGHT ( SOLUCIONADO )
Maestro Antonio: Porque los ejemplos que hay en samples no se adecuaron a lo que necesitaba, excepto xbrwdisk.prg que era lo más próximo por la facilidad que da xbrowse, lo adapte y modifique para lograr el objetivo, no sin antes haber probado con Treeview, pero era todo un lio armar todo el árbol jerarquizado a part...
oBrw:bKeyDown VK_LEFT y VK_RIGHT ( SOLUCIONADO )
[quote:2hh0stcu]Victor, Tienes que modificar el método KeyDown() de la Clase TXBrowse para detectar esas teclas y evaluar un codeblock (por ejemplo).[/quote:2hh0stcu] Alguien tiene una idea de como..? Gracias..
oBrw:bKeyDown VK_LEFT y VK_RIGHT ( SOLUCIONADO )
Después de haber investigado y aprendido un poco sobre Clases y Métodos he logrado mi objetivo sin tocar nada en la clase Xbrowse, lo he logrado usando "OVERRIDE METHOD" sobre la clase Xbrowse con Harbour gracias a la ayuda de Carlos Vargas: [url:161cvd1t]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?...
oBrw:cBmpAdjBrush changed in FWH 9.04 ?
Hello, some month ago, we started a function ( Daniel ) for xBrowse [color=#BF0000:1ifirhoc]oBrw:cBmpAdjBrush[/color:1ifirhoc] During testing, i could change the background at runtime. This function is included now in FWH 9.04. Testing this function after the Update I noticed that, selecting a Image with button-actio...
oBrw:cBmpAdjBrush changed in FWH 9.04 ?
By comparing source code of xbrowse 903 and 904 I notice that line number 1014 "DeleteObject( hBmpNew )" is newly inserted in 904.
oBrw:cBmpAdjBrush changed in FWH 9.04 ?
Thank You very much for the information. I deleted the line, but still the same : at button-action, the background changes to tiled. I added a switch button to a other application. IT WORKS THERE. I have to check, where the difference comes from. ( I'm glad, that there is no bug ) The working browser ( switching the...
oBrw:cFilterFld
Compañeros en el foro: Tengo un xBrowse con el cual quiero auditoriar una tabla dbf, con dos indices TEMPORARY Al hacer click en cada una de las columnas que estan indexadas, todo trabaja bien, incluso busqueda incremental, pero cuando uso oBrw::lIncrFilter := .t., el filtro permanece con el de la primer busqueda, ...
oBrw:cFilterFld
[code=fw:1suew9wj]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bRClickHeader</span> := <span style="color: ...
oBrw:cFilterFld
[quote="nageswaragunupudi":2h43j4uf]oBrw:aCols[6]:bRClickHeader := {|| oBrw:Seek( "" ). oBrw:cFilterFld := "Cliente" }   oBrw:aCols[8]:bRClickHeader := {|| oBrw:Seek( "" ), oBrw:cFilterFld := "Descrip" }    [/quote:2h43j4uf] Mr. Nages, thanks por your reply. The behavior still the same. The incremental filter contin...
oBrw:cFilterFld
[quote:32w10950]I personally prefer offering the choice of filter-field to the user in a combobox. That is more clear to the user. Please note filter field has nothing to do with index order.[/quote:32w10950] I will try your sugestion Regards
oBrw:cFilterFld
Mr. Nages. Sorry... was my mistake!!. It is working now. Thanks for your attention, again. Regards.
oBrw:cFilterFld
Glad to know it is working.
oBrw:cFilterFld 2 campos
lIncrFilter := .t. lSeekWild := .t. oBrw:cFilterFld := "CODE1+CODE2" como hacer? Es posible? []'s
oBrw:cFilterFld 2 campos
In that case please use bFilterExp instead of cFilterFld. Eg: oBrw:bFilterExp := { |cExp| Upper( cExp ) $ FIELD1 + FIELD2 } With bFilterExp we can have any complex filter conditions: Eg: oBrw:bFilterExp := { |cExp| Upper( cExp ) $ FIELD1 .AND. .NOT. ( Upper( cExp ) $ FIELD2 ) }
oBrw:nAt
When using tcbrowse the oBrw:nAt would take me to the proper record number in the data base when lddb clicking on the oBrw line. In xbrowse it seems to take me to the column. Is there something in xbrowse that will function to take me to the record rather then the column.Thanks
oBrw:nAt
I understand you are asking about browsing arrays.oXBrowse:nArrayAt is equivalent to oTCBrowse:nAt
oBrw:nAt
NageswaraRao:I spent soooo much time trying to figure out the answer. You've been a great help. oBrw:nArrayAt worked perfectly. So how does one learn this. Is there any documentation on getting the answer. Or just post and everyone helps each other?
oBrw:nAt
please read the documentation in the .hlp and .chm files in the fwh\manual folder. Also read whatsnew.txt in the fwh folder to read about the changes and improvements made after the documention was prepared.Please take time to study the samples in the fwh\samples folder. Becuase you are working with xbrowse, please...
oBrw:report() ... control fonts
oRep:aFont already has two fonts built by the browse object oRep:aFont[ 1 ] is Tahoma size 0,-8 oRep:aFont[ 2 ] is Tahoma size 0,-8 bold I need to have another font I made oFontCopy := TFont():New("TAHOMA",0,-108,.F.,,180,,,,,,,,,,oRep:oDevice) //to print a text nscapment aadd(oRep:aFont, oFontCopy) then oRep...
oBrw:report() how can you control fonts etc. in the print.
I really like the ability to move browse column around. Biggest problem now is to print the browse after altering it. I'm using oBrw:report() but I need the ability to size the print and cut it off when reaching a particular record.\Any suggestions on how to accomplish this?
oBrw:report() how can you control fonts etc. in the print.
>I'm using oBrw:report() but I need the ability to size the print and cut it off when reaching a particular record.\ I'm not sure what you mean by "size the print." If you mean change the size of the font, then you would either have to modify the xbrowse source or create a subclass because the font size of xBrowse:repo...
oBrw:report() how can you control fonts etc. in the print.
>I'm not sure what you mean by "size the print." If you mean change the size of the font, then you would either have to modify the xbrowse source or create a subclass because the font size of xBrowse:report() is >hardcoded. Yes change the font.> You can filter or scope the database anyway you want before calling the Re...
oBrw:report() how can you control fonts etc. in the print.
Mr Harvey and Mr James>If you mean change the size of the font, then you would either have to modify the xbrowse source or create a subclass because the font size of xBrowse:report() is hardcoded....If you want more control of the report then I suggest using TReport instead.>We can do with oBrw:Report( ... ) method its...
oBrw:report() how can you control fonts etc. in the print.
I have used the bSetUp parameter to great advantage. All my reports linked to browses now use oBrw:Report( ... ) method with my own settings made through bSetUp parameter.I have a suggestion to Mr Antonio. While using this feature I found the need to call the bSetUp block twice at two stages. Now this is called before ...
oBrw:report() how can you control fonts etc. in the print.
Harvey,>And it prints 6 extra pages. Won't stop at the last recored to print. I suspect this is a problem with you browse definition--I am not seeing that problem here. Try creating a very simple browse and see if it works OK for you.James
oBrw:report() how can you control fonts etc. in the print.
Rao and James having a problem with the info sent. See code:In mYreportSetUp() get compile error..."incorrect statement or unbalanced delimiters".If i change it to: Define font oRep:aFont[1] name "arial" size 3.75,7it prints so small can't be read and even though font is so small it still doesnt print all the columns o...
oBrw:report() how can you control fonts etc. in the print.
>In mYreportSetUp() get compile error..."incorrect statement or unbalanced delimiters".>Please see this line:[code:15vpccu9] oRep&#58;aFont&#91;1&#93; [/code:15vpccu9]This obviously gives a syntax error. First please resolve syntax errors at your end.>If i change it to: Define font oRep:aFont[1] name "arial" size 3...
oBrw:report() how can you control fonts etc. in the print.
Here is a quick sample for using bSetUp codeblock. This sample uses the customer.dbf in the \fwh\samples folder.Please compile and run this program in the samples directory. Then please go through the code, samples on making reports in the samples folder and then suitably adopt to your needs.[code:2w6x41gy] #include '...
oBrw:report() how can you control fonts etc. in the print.
Harvey,>DEFINE FONT oFont NAME 'ARIAL NARROW' SIZE 0,-9 OF oRep:oDevice > oRep:aFont[ 1 ] := oFont Note how he uses the OF clause. If you don't do this you will get very tiny font sizes. The font needs to be built using the resolution of the print device (the printer in this case).Also, to specify font sizes in poi...
oBrw:report() how can you control fonts etc. in the print.
Rao & James.After all of your help its working just great. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Only thing now is to stop it from printing 6 extra pages. <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> Thanks ...
oBrw:report() how can you control fonts etc. in the print.
NageswaraRao,>DEFINE FONT oFont NAME 'ARIAL NARROW' SIZE 0,-9 OF oRep:oDevice > oRep:aFont[ 1 ] := oFont In this case, I think that you need to end the existing font before assigning a new one, or there will be a resource leak. So, it should be:oFont:end()DEFINE FONT oFont NAME 'ARIAL NARROW' SIZE 0,-9 OF oRep:oDevice ...
oBrw:report() how can you control fonts etc. in the print.
Mr James.I agree with you. But please consider this.Should it be oRep:aFont[ 1 ]:End()DEFINE FONT oFont NAME 'ARIAL NARROW' SIZE 0,-9 OF oRep:oDeviceoRep:aFont[ 1 ] := oFont?Then we do not have to release this new font again in our program, because Report object releases all font objects in the DATA aFonts array. Then...
oBrw:report() how can you control fonts etc. in the print.
NageswaraRao,>Should it be >oRep:aFont[ 1 ]:End() >DEFINE FONT oFont NAME 'ARIAL NARROW' SIZE 0,-9 OF oRep:oDevice >oRep:aFont[ 1 ] := oFont Since oRep:aFont[ 1 ] is just a pointer to oFont then either way will do the same thing.>Now I have looked at Report method in xbrowse.prg. The method>creates two fonts, oFont and...
oBrw:report() how can you control fonts etc. in the print.
Mr JamesThe contents of oRep:aFont are not just pointers to the font objects provided by us. Report object creates new font objects afresh, with the identical specs for the "device" and stores them in ::aFont array. So these fonts are different objects. Report object releases only the fonts created by it. So the font...
oBrw:report() how can you control fonts etc. in the print.
NageswaraRao,>The contents of oRep:aFont are not just pointers to the font objects provided by us.OK, I see what you mean. In that case I think we need to end both font objects.oFont:end()oRep:aFont[ 1 ]:End() DEFINE FONT oFont NAME 'ARIAL NARROW' SIZE 0,-9 OF oRep:oDevice oRep:aFont[ 1 ] := oFont And, as you stated be...
oBrw:report() how can you control fonts etc. in the print.
>oFont:end() ?where from are you getting thsi oFont?
oBrw:report() how can you control fonts etc. in the print.
NageswaraRao,Well, I admit I was a bit confused by your code:[code:10qjh911] DEFINE BUTTON OF oBar PROMPT 'Print' ; ACTION oBrw&#58;Report&#40; 'TestReport', , , ; &#123; |oRep, oBrw, oFont| MySetUp&#40; oRep, oBrw, @oPrnFont &#41; &#125; &#41;[/code:10qjh911] You specified oFont as the third parameter t...
oBrw:report() how can you control fonts etc. in the print.
Yes. You are right. Thanks
oBrw:report() prints too much
Using oBrw:report() to print a browse. The print seems to print the entire data base and not stoping where the filter says to stop. It prints 5 extra page headers with no data below the header. The data is filtered out so there shoud be no data but it is printing 5 extra pages all with a header.How do I shut it off a...
oBrw:report() prints too much
Harvey,The problem seems to be that the xbrowse:Report() method is doing this: oRep:bWhile := { || oRep:nCounter < nRows }Where nRows = ordKeyCount(), and this won't work with a filter.I think you are going to have to use the report setup method (that was discussed in another message thread) to change the oRpt:b...
oBrw:report() prints too much
James:Couple of questionsYou said> oRpt:bWhile := {|| ! eof() } Are you suggesting modify the xbrowse class?How does the !eof() get the print to stop at end of filter and not print extra pages?[code:2u5p41ez]I think you are going to have to use the report setup method &#40;that was discussed in another message thread&#...
oBrw:report() prints too much
Harvey,>Couple of questions >You said >> oRpt:bWhile := {|| ! eof() } >Are you suggesting modify the xbrowse class?No.>How does the !eof() get the print to stop at end of filter and not print extra pages?Because eof() respects filters and ordKeyCount() apparently doesn't. >I think you are going to have to use the repor...
oBrw:report() prints too much
Thanks... Be testing when I get home later today.
oBrw:report() prints too much
Its a problem and the above suggestion also does not help for two reasons.1. Report method sets oRep:bWhile after evaluating user codeblock 2. Even if we modify xbrowse source, xbrowse navigation never retults in eof(). ( This report will never stop !!!! )This needs a different kind of fix ( I dont know yet ) in the ...
oBrw:report() prints too much
My view:XBrowse Report method needs a fix.While the present oRep:bSkip and oRep:bWhile blocks may be retained for non - dbf datasources, if the ::calias is not empty, oRep:bSkip should be { |n| (::cAlias)->( DbSkip( n ) ) } and oRep:bWhile should be { || ! ( ::cAlias)->( Eof () ) }I did not experience this because most...
oBrw:report() prints too much
[quote="James Bott":2wmcmz28]Because eof() respects filters and ordKeyCount() apparently doesn't.[/quote:2wmcmz28]Yes. OrdKeyCount() just count the record in the controlling index.EMG
oBrw:report() prints too much
Harvey,>Report method sets oRep:bWhile after evaluating user codeblock NageswaraRao, has a good point. You cannot use the bWhile that I suggested.I suggest trying his idea about changing the bSkip and bWhile in the TXBrowe:Report method to test if that works for you. If so, perhaps we can get Antonio to make those chan...
oBrw:report() prints too much
>Another option is not to use filters; can you use scopes instead? Scopes might work with xbrowse as it is now. >Or, you can just write your own report using TReport instead of using the xBrowse:Report() method. >I suggest we better do this temporary fix to xbrowse now and Mr Antonio would do this or a better fix in th...
oBrw:report() prints too much
NageswaraRao,>Again, can any one reflect on my question: How to find the number of visible records after setting a filter in DBFCDX and DBFNTX ?I think you would have to count them by skipping through the database. If you use the eof() you don't have to deal with this.James
oBrw:report() prints too much
AdsGetKeyCount() and AdsGetRecordCount() provide flags ADS_RESPECTFILTERS, ADS_RESPECTSCOPES, etc. Wish DBFCDX also provides similar functionality. When the filters are fully optimized it is just a matter of reading from the filter bitmaps. It would be nice if (x)Harbour development teams provide similar functionalit...
oBrw:report() prints too much
James, Rao:[code:rjx9wgtx] if ! empty&#40;&#58;&#58;cAlias&#41; oRep&#58;bSkip &#58;= &#123; |n| &#40;&#58;&#58;cAlias&#41;->&#40; DbSkip&#40; n &#41; &#41; &#125; oRep&#58;bWhile &#58;= &#123; || ! &#40; &#58;&#58;cAlias&#41;->&#40; Eof &#40;&#41; &#41; &#125; endif [/code:rjx9wgtx]Where do I put this in the...
oBrw:report() prints too much
In the method Report( ... )After the line : oRep:bEnd := ::bGoTopand before the line oRep:Activate()
oBrw:report() prints too much
Thanks for the help but not working [code:3kfqnupl] oRep&#58;bEnd &#58;= &#58;&#58;bGoTop if !empty&#40;&#58;&#58;cAlias&#41; oRep&#58;bSkip &#58;= &#123; |n| &#40;&#58;&#58;cAlias&#41;->&#40; DbSkip&#40; n &#41; &#41; &#125; oRep&#58;bWhile &#58;= &#123; || ! &#40; &#58;&#58;cAlias&#41;->&#40; Eof &#40;...
oBrw:report() prints too much
not working means whats happening ?
oBrw:report() prints too much
Harvey,>Not working... Can you give us more information? What is it doing or not doing?James
oBrw:report() prints too much
Adding the new code james posted is not working. I added it to xbrowse i'm still getting a 7 page print. There is only 2 pages of data. The other pages should be filtered out. The data does not appear on the extra pages only the headers. The record count is governing the number of pages to print when it should be the ...
oBrw:report() prints too much
Are you seeing the blank lines when you are seeing the browse on the screen ? When you go bottom of the browse?
oBrw:report() prints too much
Rao:No lines just blank pages with the proper header.