Page 1 of 1
little bug in rpreview.prg
Posted: Sun Sep 11, 2022 8:11 pm
by Detlef
I spend some time to find out why my pdf file never should have been created even when I could see the file open by Acrobat Reader.

I found out that in source\classes\rpreview.prg, line 1789
return ::oDevice:GenHaruPdf( cFile )this return value is a logical value.
Whereas in line 1883
if ! File( cFile ))cFile is supposed to be a string value.
The file '.t.' will never be found

Re: little bug in rpreview.prg
Posted: Mon Sep 12, 2022 1:21 pm
by karinha
Sorry, but your question doesn't make sense. Are you using HARUPDF? Can you show a small practical example for testing?
Lo siento, pero tu pregunta no tiene sentido. ¿Está utilizando HARUPDF? ¿Puedes mostrar un pequeño ejemplo práctico para probar?
what version of Fivewin?
¿Qué versión de Fivewin?
Regards, saludos.
Re: little bug in rpreview.prg
Posted: Mon Sep 12, 2022 1:51 pm
by karinha
Re: little bug in rpreview.prg
Posted: Mon Sep 12, 2022 5:01 pm
by Detlef
Sorry, Karina.
Your answer doesn't make sense.
I did not post a question.
I described a logical error in the FW Modul source\classes\rpreview.prg.
Look at the lines 1789 and 1883 in the prg file and you will understand that there is an error.
I solved the problem for me.
But may by other programmers will appear the same fault.
Regards
Detlef
Re: little bug in rpreview.prg
Posted: Mon Sep 12, 2022 5:09 pm
by karinha
Detlef wrote:Sorry, Karina.
Your answer doesn't make sense.
I did not post a question.
I described a logical error in the FW Modul source\classes\rpreview.prg.
Look at the lines 1789 and 1883 in the prg file and you will understand that there is an error.
I solved the problem for me.
But may by other programmers will appear the same fault.
Regards
Detlef
So please post the solution.
Así que por favor publique la solución.
We collaborate with each other here.
Aquí colaboramos entre nosotros.
Regards, saludos.
Re: little bug in rpreview.prg
Posted: Mon Sep 12, 2022 5:22 pm
by Detlef
Dear karinha.
I did already explain the solution in my first post.

Re: little bug in rpreview.prg
Posted: Mon Sep 12, 2022 6:25 pm
by nageswaragunupudi
Detlef wrote:I spend some time to find out why my pdf file never should have been created even when I could see the file open by Acrobat Reader.

I found out that in source\classes\rpreview.prg, line 1789
return ::oDevice:GenHaruPdf( cFile )this return value is a logical value.
Whereas in line 1883
if ! File( cFile ))cFile is supposed to be a string value.
The file '.t.' will never be found

Thanks for pointing it out.