topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
oPrn PREVIEW en Apaisado pero imprime en Vertical | me pasa lo mismo cuando tengo el preview en visualización del Report, todo indica que esta en horizontal pero al mandar a imprimir sale en vertical <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> ..... la verdad no le había tomado importancia.... <!-- s:D --><... |
oPrn PREVIEW en Apaisado pero imprime en Vertical | [quote="cnavarro":1z3euqve]Si no te funciona, intenta poniéndolo dentro de la clausula PAGE
[code=fw:1z3euqve]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> <span style="color: #0000ff;">PAGE</span><br /> oPrn:<span style="color: #000000;">SetPage</span><span style="color: #0... |
oPrn:DraftMode( ) | Tratando de usar esta funcion, al parecer está algo mal....
Cuando la activo, me dibuja oPrn:Box y oPrn:RoundBox como 4 veces mas grande.. solamente Horizontalmente
El Brush se aumenta en los cuatro lados...
[code=fw:4tzr8ohk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#inc... |
oPrn:ImportWMF() | Antonio,
after the last modification to ImportWMF() introduced with the March build, the function works ok in XP, either with WMF or with EMF files, but in Windows 98 both the file types are loaded incorrectly.
Please have a look at the modified corel.prg sample I've sent to your private mailbox.
Thank you,
Davide. |
oPrn:ImportWMF() | Davide,
In Class TPrinter Method ImportWMF() try these two possibilities:
[code:37030bbl]
::SetIsoTropicMode()
::SetWindowExt( GetDeviceCaps( ::hDC, HORZRES ),;
GetDeviceCaps( ::hDC, VERTRES ) )
::SetViewPortExt( G... |
oPrn:ImportWMF() | Davide,
In XP if you double click on the EMF file, the XP graphics viewer reports that there is an error on the EMF file. Paint Shop Pro also refuses to open it. |
oPrn:ImportWMF() | Antonio,
[quote:2dj6fiqi]In XP if you double click on the EMF file, the XP graphics viewer reports that there is an error on the EMF file. Paint Shop Pro also refuses to open it.[/quote:2dj6fiqi]
I've seen it. I've created the EMF with OpenOffice, starting from the WMF one. In W98 they are both opened correctly with AC... |
oPrn:ImportWMF() | Antonio,
[code:2et0moer]
::SetIsoTropicMode()
::SetWindowExt( GetDeviceCaps( ::hDC, HORZRES ),;
GetDeviceCaps( ::hDC, VERTRES ) )
::SetViewPortExt( GetDeviceCaps( ::hDC, HORZRES ),;
... |
oPrn:ImportWMF() | Davide,
You may try to rebuild that file again to see if it gets fixed. |
oPrn:ImportWMF() | Antonio,
[quote="Antonio Linares":39s7wu3c]You may try to rebuild that file again to see if it gets fixed.[/quote:39s7wu3c]
I tried the WMF on another W98 machine. Same behaviour.
I reopened the WMF with CorelDraw (which displays it correctly) and reexported it as a WMF file. Same behaviour.
The original WMF worked wel... |
oPrn:ImportWMF() | thanks, |
oPrn:ImportWMF() | Antonio,
I confirm you the original WMF works ok with FWH25 in Windows98.
The problem may be related to the WMF2EMF() function in 98.
Hi,
Davide. |
oPrn:ImportWMF() | Davide,
We just use standard Win32 functions for WMF2EMF(). |
oPrn:ImportWMF() | Antonio,
[quote="Antonio Linares":3m72jp1s]We just use standard Win32 functions for WMF2EMF().[/quote:3m72jp1s]
well, I really don't know why it worked before and it does not work well now. It was only a guess/suggestion based on the tests I've made so far.
Thank you,
Davide. |
oPrn:RoundBox (solucionado) | Karinha
Muchas gracias por responder
[quote:hkrtxcke]echo %bcdir%\lib\cw32.lib + >> b32.bc
echo %bcdir%\lib\import32.lib + >> b32.bc
echo %bcdir%\lib\uuid.lib + >> b32.bc
echo %bcdir%\lib\ws2_32.lib + >> b32.bc
echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc
echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc
echo %bcdir%\li... |
oPrn:RoundBox (solucionado) | Por favor alquien que me ayude
Quiero poner una caja redondeada y me da el siguiente alert
Error code: 0 loading GDI:EXE
Este es mi codigo ( el codigo lo tome del foro)
[code=fw:zedequ5b]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> CajaRed<span style=... |
oPrn:RoundBox (solucionado) | [url:26laazrp]http://imgur.com/hlU4zUq[/url:26laazrp]
[img:26laazrp]http://i.imgur.com/hlU4zUq.png[/img:26laazrp] |
oPrn:RoundBox (solucionado) | [code=fw:vlq13y1c]<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> CajaRed<span style="color: #000000;">(</span><span style="color: #000000;">)<... |
oPrn:RoundBox (solucionado) | [code=fw:3dptjsel]<div class="fw" id="{CB}" style="font-family: monospace;"><br />echo %bcdir%\lib\cw32.lib + >> b32.bc<br />echo %bcdir%\lib\import32.lib + >> b32.bc<br />echo %bcdir%\lib\uuid.lib + >> b32.bc<br />echo %bcdir%\lib\ws2_32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc<br />echo %bcdi... |
oPrn:RoundBox (solucionado) | Te falta: gdiplus.lib
Saludos. |
oPrn:RoundBox (solucionado) | Karinha
Muchas gracias por tus atenciones
Agregué a mi archivo de entorno gdiplus.lib como me indicaste pero el mensaje de error seguía
Despues de mucho buscar encontré la solución tomando un fragmento de codigo de la TUtilPrn de The Full
[code=fw:ie7584z3]<div class="fw" id="{CB}" style="font-family: monospace;">... |
oPrn:RoundBox (solucionado) | Mui bién... Más,
[url:2392egem]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=34256[/url:2392egem]
Yo uso FWHX17.01 y compila bién como puedes veer en la imagen.
Saludos. |
oPrn:RoundBox() (SOLUCIONADO) | Estoy intentando usar esta función:
[code=fw:2i3vlfrw]<div class="fw" id="{CB}" style="font-family: monospace;">oPrn:<span style="color: #000000;">RoundBox</span><span style="color: #000000;">(</span> nLeftMargin , prow , nRightMargin , prow + <span style="color: #000000;">1000</span> , oPen, nRGB<span style="col... |
oPrn:RoundBox() (SOLUCIONADO) | Bayron:
[code=fw:11brt42o]<div class="fw" id="{CB}" style="font-family: monospace;"><br />CajaRound<span style="color: #000000;">(</span> <span style="color: #000000;">1.6</span> , <span style="color: #000000;">15.0</span> , <span style="color: #000000;">3.4</span>, <span style="color: #000000;">20.0</span> ,oPrn,... |
oPrn:RoundBox() (SOLUCIONADO) | Carlos,
a ti te muestra bien la caja???? Porque a mi, usando Fwh12.04 no...
Me la muestra cuadrada, sin usar le PEN que le indico y sin usar el color de fondo... Hoy voy a hecharle una miradita a la clase... |
oPrn:RoundBox() (SOLUCIONADO) | Byron,
Me pinta bien, tanto con FWH 12.04 como 12.05
Debes tener en cuenta que las medidas deben entrar en pixeles, pues nAncho y nAlto, que son las que definen la cantidad de redondeo de las esquinas, están en pixeles. En el caso del ejemplo, están a 90:
CajaRound(nArriba, nIzq, nAbajo, nDerecha, oPrn, nAncho, nAlt... |
oPrn:RoundBox() (SOLUCIONADO) | Bayron,
Usando la clase TPrinter con Preview has logrado que éste te abra ampliado ?. Por default lo abre reducido y no se distinguen los informes, y esto les molesta a los clientes pues no quieren tener que estar dando click para aumentar resolución.
He probado cuanta opción se me ha ocurrido, metiéndole la mano a T... |
oPrn:RoundBox() (SOLUCIONADO) | Gracias Carlos, pero mi problema no son las coordenadas... yo las calculo de acuerdo a la resolución de la impresora, el problema es que no me toma en cuenta ni el brush, ni redondea las esquinas, ni pinta el fondo...
y no tengo ni idea por que...
Ya le hecharé una miradita al rpreview.... |
oPrn:RoundBox() (SOLUCIONADO) | Carlos, acabo de revisar un poco de rPreview y tmetafil.prg, el problema se da porque:
Seleccionando desde el menú el metodo ::Zoom(), funciona correctamente, pero al accionarlo inclusive despues de ::BuildWindow() en el método ::New() , solo la resolucion horizontal es calculada, pero no la vertical...
Esto supongo s... |
oPrn:RoundBox() (SOLUCIONADO) | uPSSSS, me faltaba
[code=fw:1zg30xbw]<div class="fw" id="{CB}" style="font-family: monospace;">nAncho, nAlto,</div>[/code:1zg30xbw] |
oPrn:RoundBox() diferente a oPrn:say | Hola amigos, sigo molestando con esto.
Encuentro comportamientos diferentes en
roundbox y say
cTitulo[11] := "Ruben & Dario"
oPrn:RoundBox( 1, 7.8, 1.8 , 13, 0.1,0.1, fPen1,CLR_WHITE, {cTitulo[11], oFont5, CLR_BLACK} ,"CM" ) ==> No muestra el carácter & y no lo imprime
oPrn:Say( 3, 7.8 , cTitulo[11] , oFont... |
oPrn:RoundBox() diferente a oPrn:say | Cual és tú versión de FWH? Debria funcionar bién! versiones antiguas, no funciona mismo.
Regards, saludos. |
oPrn:RoundBox() diferente a oPrn:say | Es 22.12 la actual.
Gracias
Enviado desde mi 21081111RG mediante Tapatalk |
oPrn:RoundBox() diferente a oPrn:say | Entendido. Muestre un ejemplo práctico, para que el personal de FiveTech compile y confirme el defecto en esta versión de Fivewin que utiliza.
Regards, saludos. |
oPrn:RoundBox() diferente a oPrn:say | Ejemplo, mismo que usó Mr. Rao. Le agregué el símbolo &.
Difiere lo que se ve en Preview con lo que muestra en PDF (apretando boton de acrobat en el preview
En el PDF no se ven los textos en vertical
[code=fw:cv9uipbi]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</s... |
oPrn:RoundBox() diferente a oPrn:say | Dario, mira:
[code=fw:1z3f05jy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\DARIOF.PRG</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function... |
oPrn:RoundBox() diferente a oPrn:say | Disculpa las molestias.
No funciona con letra VERTICAL
No funciona cuando son 1 o 3 o 5 signos de & y si funciona con oPrn:say
Este es tu ejemplo y verás que no funciona del todo bien.
Si pones 2 &, imprime 1 y si ponere 3 & tambien imprime 1, si pones 4 imprime 2.
Los & impares no los muestra bien.
[b:qf76wewv]P... |
oPrn:SETSIZE() no me funciona | Amigos:
Necesito imprimir etiquetas con código de barras, el tamaño de la etiqueta es de 6.5 cms de ancho por 2.5 cms de alto.
Cómo puedo indicarle a la clase TPrinter este pequeño tamaño ????
He probado con oPrn:SetSize pero no funciona.
Saludos, Armando |
oPrn:SETSIZE() no me funciona | Hola Armando
Si utilizas Barlib, por ejemplo para Ean13 es así
@ nLIz, nCIz ean13 ccodigo width npix size nlongi of oPrn banner
y los códigos de barra yo los he generado de 1 cm x 1 cm.
mira éste programa que hice hace mucho tiempo y juega con las medidas:
<!-- m --><a class="postlink" href="http://hyperupload.... |
oPrn:SETSIZE() no me funciona | José Luis:
Muy bonito programa, te agradezco el interes.
Efectivamente estoy usando la excelente LIB de Cayetano y el problema que tengo no radica en especificar el tamaño del código de barras sino el tamaño de la etiqueta para que TPRinter salte al inicio de la siguiente despues de imprimir una, por cierto la impres... |
oPrn:SETSIZE() no me funciona | Armando
Como podrás comprobar en el programa, hay unos get para el tamaño de la etiqueta y otros para el tamaño de las barras.
Bien, pues el tamaño que pudes poner es en cm. y admite cualquier tamaño, puedes poner por ejemplo tamaño de la etiqueta Alto 6.5 cm, Ancho 1.5 cm, le pones en grueso de la barra 0.02, y el alt... |
oPrn:SETSIZE() no me funciona | José Luis:
Muchas gracias por el apoyo, voy entendiendo.
Solo un par de preguntas más, que clase usas para la impresión, TDosPrn, TPrinter, TReport ?, podrías mostrar tu código de impresión ?
Saludos |
oPrn:SETSIZE() no me funciona | Voy a buscar...
Como te dije es un programa muy antiguo, y hecho un poco para uso personal, por lo tanto sin florituras, y como funciona, pues no me preocupé de cambiar nada.
Saludos
Jose Luis |
oPrn:SETSIZE() no me funciona | Aqui está
[code:1rt6zoqg]*+±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±
*+
*+ Function codigo()
*+
*+ Called from ( barras.prg ) 1 - function main()
*+
*+±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±
*+
function codigo( tipo, lprime... |
oPrn:SETSIZE() no me funciona | José Luis:
Muchas gracias, por supuesto que sirve y de mucho.
Voy a hincarle el diente
Saludos |
oPrn:Say() with background color. | Hello all,
any way to do it without using oPrn:RoundBox() before the oPrn:Say() ?
Thanks,
Davide
FWH 9.05 - xH 1.2.1 - Bcc 5.5 |
oPrn:SayBitMap | Hi, I'm having a problem with the instruction:
oPrn:SayBitmap(x,y,cFile,nWidth,nHight,nScale)
The Bitmap I'm trying to print is a 250,70 pixels BMP. It displays it fine in the preview (oPrn:SayBitmap(1,1,cFile)) but in the printer is very small (about .5 x .5 cms.).
I calculate the horizontal and vertical resolution... |
oPrn:SayBitMap | Hi
you can use new Image.prg within FreeImage to modify your Printer.prg.
Regards,
Richard |
oPrn:SayBitMap | After several tests I found out that the parameters on the oSayBitmap work this way:
I have an bmp image 250,70 pixels, if I print it with oPrn:SayBitmap(1,1,'Image.bmp') it will be barely visible (about 1 cm).
You should play with these numbers to adjust the size you want. A 500,140 would show a decent logo.
On t... |
oPrn:SayBitMap | Hi Asito
Have you tried the output on different printers with the same nWidth
and nHeight ?
I found the output is varying from printer to printer.
Can anybody suggest me what is the common mechanism to get a
constant output on any windows printer with the same program.
- Ramesh Babu P |
oPrn:SayBitMap | Image sizes are in pixel but pixel sizes change from printer to printer. You have to calculate how many pixels are needed to cover a specific paper area:
oPrn:SayBitmap( 0, 0, "IMAGE.BMP", oPrn:nHorzRes() / 4, oPrn:nVertRes() / 8 )
EMG |
oPrn:SayBitmap | Hola buenas noches, como puedo hacer para ajustar la imagen al tamaño que quiero.
Cuando la muestro por pantalla con ADJUST lo hago pero para imprimir no encuentro la forma.
Saludos
Jorge. |
oPrn:SayBitmap | [url:3ci0tmri]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=40577&sid=5b5fc44838cd2a65305d1ee8a3ff1c16[/url:3ci0tmri] |
oPrn:SayBitmap | Perfecto, muchas gracias.
Saludos
Jorge |
oPrn:SayBitmap with resource ? | I am using the Printer class. I want to put a symbol at the beginning of a line ( checkmark ). The symbol ( and its counterpart ) are compiled in my resources.
I use the following to load the resources in a bitmap ( it works great for other purposes ):
aIBmp := { LoadBitMap( GetResources( ) , "INOK" ), LoadBit... |
oPrn:SayBitmap with resource ? | Tim
Consider this code .. you will have to use FreeImage.dll
[code=fw:wuikj7rt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">IMAGE</span> oImg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"DOG"</s... |
oPrn:SayBitmap with resource ? | Tim,
[quote="TimStone":39tii5s5]I am using the Printer class. I want to put a symbol at the beginning of a line ( checkmark ). The symbol ( and its counterpart ) are compiled in my resources.
I use the following to load the resources in a bitmap ( it works great for other purposes ):
aIBmp := { LoadBitMap( Ge... |
oPrn:SetCopies() bug ? | Hello guys,
I've just noticed that oPrn:SetCopies(nCopies) works ok if the printed document is longer than 1 page, otherwise I always obtain a single copy.
I tried with different printers and machines, with or without PREVIEW (If PREVIEW a 2+ pages document and print them all I obtain n copies, while if I print only 1... |
oPrn:SetCopies() bug ? | I've just tested FWH27 (xH) and found it behaved the same.
I've also found this function in printdc.c, but cannot see why it should work only for multipage documents.
Any idea ?
Thanks,
Davide
[code:2b4g5bgh]#ifdef __HARBOUR__
CLIPPER PRNSETCOPIES( PARAMS ) // ( nCopies ) --> lSuccess
#else
C... |
oPrn:SetCopies() bug ? | Ok, I've found out another printer (Brother) which works correctly, so it seems the problem is in the driver of the "HP LaserJet 5/5M PS" and the "HP LaserJet 4100" (maybe they both use the same driver).
Does that happened to anyone else before ? |
oPrn:SetCopies(n) Problem | When I use oPrn:SetCopies(2) the printer prints
page 1
page 2
page 1
page 2
Is it possible to force the printer to print
page 1
page 1
page 2
page 2
Thanks in advance,
Birol Betoncu |
oPrn:SetCopies(n) Problem | I have modified the Tprinter class.
I have inserted the following lines after setcopies method in line 244 and solved my problem
[code=fw:enespjr4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">METHOD</span> SetCollate<span style="color: #000000;">(</span> lOnOff <sp... |
oPrn:SetCopies(n) Problem | Birol,
Thanks for sharing your solution <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
oPrn:SetSize(nWidthnHeigt) | Mr. Antonio Linares:
Why oPrn:SetSize(nWidth,nHeight) it does not work?
I tried with oPrn:SETSIZE(650,250) but it does not change the size of the page
PRINTER oPrt Preview
oPrn:SetSize(650,250) // I need 6.5cms x 2.5cms
Best regards and many thanks
Armando |
oPrn:SetSize(nWidthnHeigt) | Armando,
Please do it this way:
PrnSetSize( 650, 250 )
PRINTER oPrt Preview
...
ENDPRINT |
oPrn:SetSize(nWidthnHeigt) | Mr. Antonio:
No way, this is my source code
PrnSetSize( 650, 250 )
PRINTER oPrt Preview
DEFINE FONT oFnt1 NAME "ARIAL" SIZE 0,-6 OF oPrt BOLD
DEFINE FONT oFnt2 NAME "ARIAL" SIZE 0,-8 OF oPrt BOLD
DEFINE FONT oFnt3 NAME "ARIAL" SIZE 0,-9 OF oPrt BOLD
oTxtFile = TTxtFile():New(cFile,0)
oTxtFile:GOTOP()
DO WHILE ! oT... |
oPrn:SetSize(nWidthnHeigt) | Armando,
Are you going to print labels ? If yes, then just calculate a new label position from your code |
oPrn:SetSize(nWidthnHeigt) | Mr. Antonio:
Yes, I have to print labels.
The labels are in roll, continuous form, then that is my problem.
The TPrinter class use letter size by default.
Could you help me ?
Best regards |
oPrn:SetSize(nWidthnHeigt) | Armando,
Have you looked at FWH\SAMPLES\LABELS? This may help.
James |
oPrn:SetSize(nWidthnHeigt) | James:
Thanks for your reply.
I have seen the examples but it seems that all are for printing labels in letter size pages and I have to print in a special size and the code oPrn:SETSIZE(nWidth,nHeigt) does not work.
Best regards |
oPrn:SetSize(nWidthnHeigt) | Armando,
I don't know if this will help, but here is a copy of an old message about label printing.
You might also try searching the forum for "label."
James
-------------------------------
6/30/2006 11:36 AM
I use the Dymo Turbo 330 and run it from within a program. Here is the code I use:
FUNCTION ShipLabel
... |
oPrn:SetSize(nWidthnHeigt) | Thanks James, I will
Regards |
oPrn:SetSize(nWidthnHeigt) | Mr. Antonio:
This is a little sample of my problem
[code=fw:2q7xa2ca]<div class="fw" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"> </li><li style="" class="li2">#Include <span style="color: #ff0000;">"FiveWin.ch"</span></li><li style="" class="li1"><span style="color: #008000;">FUNCTION<... |
oPrn:SetSize(nWidthnHeigt) | > oPrt:SetSize(550,150) // This no modify the size, why ?
We don't know it. It should work |
oPrn:SetSize(nWidthnHeigt) | Mr. Antonio:
Did you test my sample , works it fine to you
Could you make an exe file from my sample and send it to me
Best regards and tnks. |
oPrn:Setup() en FWH 16.12 | He compilado el código que ya tenía escrito de la versión anterior de FWH con la nueva versión 16.12 y aparte de GetCurDir() que lo he tenido que modificar los path y con esto se ha resuelto, también me hace mal el oPrn:Setup() ya que me saca la ventana de selección de impresora, me deja seleccionar una diferente a la ... |
oPrn:Setup() en FWH 16.12 | [url:obscs9u0]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=32000[/url:obscs9u0] |
oPrn:Setup() en FWH 16.12 | [code=fw:ojyvgmit]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Printing in portrait and in landscape</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</spa... |
oPrn:Setup() en FWH 16.12 | Muchas gracias por tu respuesta karinha. No tengo ningún problema para cambiar la orientación, horizontal o vertical.
El problema que tengo es que si compilo con la version de FWH 11.07 cuando se ejecuta oPrn:Setup() me presenta Windows la ventana de Seleccionar Impresora con las impresoras instaladas en el PC, selecci... |
oPrn:Setup() en FWH 16.12 | Creo, sea esto:
[code=fw:ewanroy8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> DefaultPrinter<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /><br /> <span style="color: #00C800;">LOCAL</span> nPrn, nRet<br /><b... |
oPrn:cmSay() | Amigos:
Tengo 2 variables= Space(30)
xTit1 :=space(30)
xTit2 :=Space(30)
Al ingresar al programa tomas de una BD
xTit1 := TITULO->TITULO1 // los campos tiene el mismo valor 30 Chr.
xTit2 := TITULO->TITULO2
oPrn:cmSay(cmt,7 , xtit1,OF1, , , , 2)
cmt +=0.5 ... |
oPrn:cmSay() | Ya lo resolví
PadC(rtrim(ltrim(xTit1)),30," ")
Saludos
Ruben Fernandez. |
oRS:QueryResult() AND Fw_arrayToDbf | I'm using oRS:QueryResult() to load data in an array, that after I want to save in a DBF file. Something like this:
aValues := oBD:QueryResult( "SELECT * from clients" )
aux->( FW_ArrayToDBF( aValues ) )
If there is only one record in the table clients, this code does not work. |
oRS:QueryResult() AND Fw_arrayToDbf | [code=fw:lah7dwry]<div class="fw" id="{CB}" style="font-family: monospace;">aValues := oBD:<span style="color: #000000;">Execute</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SELECT * from clients"</span> <span style="color: #000000;">)</span> <br />aux-><span style="color: #000000... |
oRS:QueryResult() AND Fw_arrayToDbf | Thank you <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> |
oReport | To all,
since I use the most current version of FW I get randomly white pages in oReport.
As a workaround I shorted the page height in the new method.
Does someone else notice this behavior.
Best regards,
otto
new - method
::nHeight := ::oDevice:nVertRes() - 60 //OTTO |
oReport meter/ progressbar | Otto,
It looks like the delay is because you are using a filter. Try it without the filter and see how fast it is (just for a test). If that solves the speed issue, then you could build a modified index and use scopes.
James |
oReport meter/ progressbar | Is it possible to have a progressbar or a meter into oReport class.
Thanks in advance
Otto |
oReport meter/ progressbar | Hi Otto,
there is a dialog with message of page creation, you can use this dialog to put a progressbar, but the problem is to know how many pages has the report
to set the progressbar, you need to calculate this previus to send the report maybe an estimate or generate the report without preview and generate again to o... |
oReport meter/ progressbar | You can't know the total pages that will be printed but you know the total lines to be printed.
You can implement progress bar on the basis of number of lines printed in comparison with the total lines to be printed. The point is how do we get a callback to our program whenever a line is printed.
We supply a bSkip b... |
oReport meter/ progressbar | Hello,
Maybe I make an error defining the report- but till the first msgwait from oReport appears 23 sec. pass.
Till now I always loaded the records I wanted to print into a temp dbf and then started the oReport printing the temp-dbf.
There a meter is easy to implement. In this case the msgwait appears quick.
But ... |
oReport meter/ progressbar | I agree with Mr James
Also an out off topic suggestion
Instead of
[quote:1p4m7a6p]iif(umsatz->Anzhg<>0, umsatz->Anzhg,"") PICTURE "999,999,999.99"[/quote:1p4m7a6p]
it may be simpler to write
[code=fw:1p4m7a6p]<div class="fw" id="{CB}" style="font-family: monospace;">umsatz->Anzhg <span style="color: #0000ff;">PICTURE... |
oReport meter/ progressbar | Hello James,
thank you for the suggestion. I changed the code and use now a temporary index instead of the filter.
[code=fw:36xltgg9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">select</span> umsatz<br /> <span style="color: #0000ff;">index</span> <span ... |
oReport meter/ progressbar | Otto,
>I changed the code and use now a temporary index instead of the filter.
Still a temp index will cause a lag since it needs to read the whole DBF. Why not use scopes? You may need to build a new permanant index including the date field at the start of the index. Then set the scope to the beginning and ending da... |
oReport meter/ progressbar | Otto,
After thinking about it, the scopes in my previous message aren't going to work since you need to group by renr. It is late here and I am not thinking clearly. I will get back to you in the morning.
James |
oReport meter/ progressbar | Hello James,
Thank you. I tried with your code and it seems that all works very well.
Now there is no speed problem anymore.
Best regards,
Otto
[code=fw:1zviy12q]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">index</span> <span style="color: #0000ff;">on</sp... |
oReport meter/ progressbar | Otto,
Glad to hear it. But, don't you need to group by the field "renr" also? If so, then it gets more complicated. I came up with an idea, but it will take some testing to figure out the details.
James |
oReport meter/ progressbar | Otto,
for this topic I am happy using ADSRDD, because you can mix SQL with traditional table navigation,
in your case a simple select <colums> from <table> where <condition> order by <order> is the solution
you can try
regards
Marcelo |
oReport meter/ progressbar | Hello james,
the report is grouped by the field - and displayed ok.
Best regards,
Otto
Hello Marcelo,
I will test ADS when I have more time.
Best regards,
Otto |
oReport meter/ progressbar | Otto,
I found a simple sample that I made some years ago...
copy this (sql.prg, sql.rc) into fw sample folder, uncomment the lines to link ace32.lib and rddads.lib in the buildx.bat file and compile it.
to probe select CDX file type, connect to the currect directory .\ when you press the CONETAR button, the square m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.