little bug in rpreview.prg

Post Reply
User avatar
Detlef
Posts: 209
Joined: Mon Feb 07, 2022 9:54 pm

little bug in rpreview.prg

Post 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 ;-)
User avatar
karinha
Posts: 7948
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: little bug in rpreview.prg

Post 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.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
Posts: 7948
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: little bug in rpreview.prg

Post by karinha »

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
Detlef
Posts: 209
Joined: Mon Feb 07, 2022 9:54 pm

Re: little bug in rpreview.prg

Post by Detlef »

Sorry, Karina.
Your answer doesn't make sense. :wink:
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
User avatar
karinha
Posts: 7948
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: little bug in rpreview.prg

Post by karinha »

Detlef wrote:Sorry, Karina.
Your answer doesn't make sense. :wink:
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.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
Detlef
Posts: 209
Joined: Mon Feb 07, 2022 9:54 pm

Re: little bug in rpreview.prg

Post by Detlef »

Dear karinha.
I did already explain the solution in my first post.
:D
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: little bug in rpreview.prg

Post 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.
Regards

G. N. Rao.
Hyderabad, India
Post Reply