Forum > FPSpreadsheet

[SOLVED] Unsupported Format Error

(1/1)

99Percent:
Hello

I am trying to use this FPSpreadsheet object but whenever I try to write the spreadsheet object eg:

WorkBook.WriteTofFile('myworkbook.ods', True);

I get "Tried to write a spreadsheet using an unsupported format"

I tried several formats and they all give me the same error.

What am I missing?

(Linux x64 Lazarus 0.9.31)

99Percent:
Ok, I looked at the examples and found out you need to add the unit to the uses clause that supports the desired format (eg, xlsbiff5, xlsbiff2, fpsopendocument etc) or simply add fpsallformats

Perhaps it would be good that this is explained in the wiki tutorial here http://wiki.lazarus.freepascal.org/FPSpreadsheet

Navigation

[0] Message Index

Go to full version