FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Little bug in rpreview when saving pdf file
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM

Little bug in rpreview when saving pdf file

Posted: Wed Jun 17, 2015 10:26 AM

Hello,

I want to save my report as a pdf file, starting from preview.

But if I give a name like "2015.06.17 this is a test preview", the file is save as "2015.06.pdf" in stead of "2015.06.17 this is a test preview.pdf".

If I use the name "2015-06-17 this is a test preview", everything is working just fine.

The problem only happens if one or more points are used in the name.

Nevertheless one should be able to use point is filenames, shouldn't he?

Thanks a lot in advance.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Little bug in rpreview when saving pdf file

Posted: Wed Jun 17, 2015 01:37 PM

Michel,

As a workaround please use:

"2015.06.17 this is a test preview.x"

The problem comes from FWH function FWFileSetExt( YourFileName, cExtension ) as we are assuming that the last "." is the extension of a filename

How can we know that it is not the file extension ? Thinking about it...

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: Little bug in rpreview when saving pdf file

Posted: Wed Jun 17, 2015 01:41 PM

If you want to use '.' as a part of filename, then append ".pdf" at the end of the name.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion