FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour little bug in rpreview.prg
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM
little bug in rpreview.prg
Posted: Sun Sep 11, 2022 08:11 PM
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 ::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 :-)
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: little bug in rpreview.prg
Posted: Mon Sep 12, 2022 01:21 PM

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
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: little bug in rpreview.prg
Posted: Mon Sep 12, 2022 01:51 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM
Re: little bug in rpreview.prg
Posted: Mon Sep 12, 2022 05:01 PM

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

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: little bug in rpreview.prg
Posted: Mon Sep 12, 2022 05:09 PM
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.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM
Re: little bug in rpreview.prg
Posted: Mon Sep 12, 2022 05:22 PM

Dear karinha.
I did already explain the solution in my first post.

:D

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: little bug in rpreview.prg
Posted: Mon Sep 12, 2022 06:25 PM
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 ::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

Continue the discussion