Little bug in rpreview when saving pdf file

Little bug in rpreview when saving pdf file

Postby driessen » 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. 24.02 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc77
User avatar
driessen
 
Posts: 1399
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Little bug in rpreview when saving pdf file

Postby Antonio Linares » Wed Jun 17, 2015 1: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41366
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Little bug in rpreview when saving pdf file

Postby nageswaragunupudi » Wed Jun 17, 2015 1: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
User avatar
nageswaragunupudi
 
Posts: 10295
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 61 guests