little bug in rpreview.prg

little bug in rpreview.prg

Postby Detlef » Sun Sep 11, 2022 8: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 ::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
Detlef
 
Posts: 207
Joined: Mon Feb 07, 2022 9:54 pm

Re: little bug in rpreview.prg

Postby karinha » Mon Sep 12, 2022 1: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
User avatar
karinha
 
Posts: 7755
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: little bug in rpreview.prg

Postby karinha » Mon Sep 12, 2022 1:51 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7755
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: little bug in rpreview.prg

Postby Detlef » Mon Sep 12, 2022 5: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
User avatar
Detlef
 
Posts: 207
Joined: Mon Feb 07, 2022 9:54 pm

Re: little bug in rpreview.prg

Postby karinha » Mon Sep 12, 2022 5:09 pm

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
karinha
 
Posts: 7755
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: little bug in rpreview.prg

Postby Detlef » Mon Sep 12, 2022 5:22 pm

Dear karinha.
I did already explain the solution in my first post.
:D
User avatar
Detlef
 
Posts: 207
Joined: Mon Feb 07, 2022 9:54 pm

Re: little bug in rpreview.prg

Postby nageswaragunupudi » Mon Sep 12, 2022 6: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 ::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
User avatar
nageswaragunupudi
 
Posts: 10589
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 34 guests