FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error on Rpreview/PRV2PDF.PRG
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Error on Rpreview/PRV2PDF.PRG
Posted: Thu Sep 19, 2019 03:44 PM
When I print my document I use a function to converte the time

// Time To Seconds
FUNCTION TTOS( cTime )
default cTime:= time()
RETURN ( VAL( SUBSTR( cTime, 1, 2 )) * 3600 + ;
VAL( SUBSTR( cTime, 4, 2 )) * 60 + ;
VAL( SUBSTR( cTime, 7, 2 )) ;
)

it run ok when I go to Rpreview and I can show the document as you can see here



If I try to create a Pdf it make error

Code (fw): Select all Collapse
 
 Error description: Error BASE/1110  Parametro errato: SUBSTR
   Args:
     [   1] = T   19-09-2019 17:33:34.246
     [   2] = N   1
     [   3] = N   2

Stack Calls
===========
   Called from:  => SUBSTR( 0 )
   Called from: source\ut\ut_timeCa.prg => TTOS( 340 )
   Called from: .\source\function\PRV2PDF.PRG => FWPDF:CLOSE( 232 )
   Called from: .\source\function\PRV2PDF.PRG => FWSAVEPREVIEWTOPDF( 62 )
   Called from: .\source\classes\RPREVIEW.PRG => TPREVIEW:SAVEAS( 1783 )
   Called from: .\source\classes\RPREVIEW.PRG => (b)TPREVIEW:TPREVIEW( 50 )
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 244
Joined: Fri Oct 28, 2005 06:29 PM
Re: Error on Rpreview/PRV2PDF.PRG
Posted: Thu Sep 19, 2019 06:02 PM

En tu error.log el parametro no tiene formato de hora sino date time, dice 19-09-2019 17:33:34.246

Alejandro Cebolido

Buenos Aires, Argentina
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Error on Rpreview/PRV2PDF.PRG
Posted: Thu Sep 19, 2019 07:48 PM

Silvio, The TTos function already exists in Fwh, do you know?

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Error on Rpreview/PRV2PDF.PRG
Posted: Fri Sep 20, 2019 01:36 PM

sorry it is an oldest app fw16 ( fw19.5) I 'm converting..I not remember what I made more of ten year ago

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion