Recent

Author Topic: [SOLVED] Unsupported Format Error  (Read 8682 times)

99Percent

  • Full Member
  • ***
  • Posts: 160
[SOLVED] Unsupported Format Error
« on: September 08, 2011, 06:12:03 am »
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)
« Last Edit: September 08, 2011, 06:45:47 am by 99Percent »

99Percent

  • Full Member
  • ***
  • Posts: 160
Re: Unsupported Format Error
« Reply #1 on: September 08, 2011, 06:45:25 am »
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

 

TinyPortal © 2005-2018