Recent

Author Topic: Lazreport HTMExport and TextExport  (Read 8411 times)

dan

  • New Member
  • *
  • Posts: 11
Lazreport HTMExport and TextExport
« on: February 08, 2006, 11:58:44 pm »
Lazarus 0.9.12 and Lazreport 0.9.1
If I use
Code: [Select]
frMyReport.ExportTo(TfrHTMExport, 'c:\test.html');
or
Code: [Select]
frMyReport.ExportTo(TfrTextExport, 'c:\test.txt');
I get error message "File not open". Error has occured at line "FCurrentFilter.Create(ExportStream)" of LR_Class unit.

Is "ExportTo" function implemented and functional?

matthijs

  • Hero Member
  • *****
  • Posts: 537
RE: Lazreport HTMExport and TextExport
« Reply #1 on: February 09, 2006, 05:47:34 am »
You have all the sources available, so you could check for yourself. :) For example: <ctrl>klick on TButton and the editor opens the buttons.pp with the cursor on the definition of TButton. Do the same for the LazRep-component and see a new world open before you. :)
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

dan

  • New Member
  • *
  • Posts: 11
RE: Lazreport HTMExport and TextExport
« Reply #2 on: February 09, 2006, 09:31:53 am »
"<ctrl>klick" isn't "new world" for me :-) It's a basic function :-)
So it may be wrong using of ExportTo function. I'm not found any example on internet.
FCurrentFilter.Create(ExportStream) is virtual method overrided by constructor Create(AStream: TStream) at LR_E_HTM unit. But if I put breakpoint to contructor method above mentioned error ("File not open") raised too.

jesusr

  • Sr. Member
  • ****
  • Posts: 484
RE: Lazreport HTMExport and TextExport
« Reply #3 on: February 09, 2006, 07:21:44 pm »
it should be something like:

Code: [Select]

frMyReport.ExportTo(TfrTextExportFilter, 'c:\test.txt');


but I'm afraid this won't work, as it appears that export features are not implemented in FreeReport version which LazReport is based on, need to do more research to be sure.

dan

  • New Member
  • *
  • Posts: 11
Re: RE: Lazreport HTMExport and TextExport
« Reply #4 on: February 10, 2006, 07:27:40 pm »
Quote from: "jesusr"
it should be something like:

Code: [Select]

frMyReport.ExportTo(TfrTextExportFilter, 'c:\test.txt');


but I'm afraid this won't work, as it appears that export features are not implemented in FreeReport version which LazReport is based on, need to do more research to be sure.


TfrTextExportFilter is correct. Thanks!  :)

Anonymous

  • Guest
RE: Re: RE: Lazreport HTMExport and TextExport
« Reply #5 on: March 11, 2006, 10:08:34 pm »
Adding "Lazreport" to Lazarus 0.9.12

I keep getting this error when I try to install "Lazreport"

Code in LR_Class:   XML := TXMLConfig.Create(FName);
Error: Incompatible type for Arg no 1: Got "AnsString", expected "TComponent"

I am just going to 'Components', 'Add package', 'Lazreport,lpk', 'Compile'

I get other warnings, but this is the first error that stops compilation
Thanks for any help

Anonymous

  • Guest
RE: Re: RE: Lazreport HTMExport and TextExport
« Reply #6 on: April 01, 2006, 03:19:32 pm »
get the latest cvs version of lazreport, with a cvs client.

 

TinyPortal © 2005-2018