#8 fpspreadsheet: error loading ods file without full path

closed-fixed
nobody
None
5
2009-11-13
2009-11-12
Luiz Camara
No

if i try to load a file without the full path, i.e., 'file.ext' an error will occur.
To fix this problem in TsSpreadOpenDocReader.ReadFromFile add ExpandFileName to get the FilePath:

FilePath:=ExtractFilePath(ExpandFileName(AFileName));

Using fpc240rc1, windowsxp, fpspreadsheet from today svn

Discussion

  • Jose Mejuto

    Jose Mejuto - 2009-11-12

    It must be fixed in a different way, current code assumes that the folder where the .ods document is stored fpspreadsheet can write, this will raise problems in Unix, Vista and upper and other OS.

    I think FilePath should point to the OS temporal folder, but I should check the code more carefully.

     
  • Jose Mejuto

    Jose Mejuto - 2009-11-12

    Fixed in revision 1002

     
  • Luiz Camara

    Luiz Camara - 2009-11-13

    Thanks. It's fixed.

     
  • Luiz Camara

    Luiz Camara - 2009-11-13
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks