Accessing the variable ReportOptions.Description.Text

JQLJQL
edited August 2012 in FastReport 4.0
I've done a search but don't seem to be able to locate a topic for what I want to do, which is:

Read (silently) a folder containing a number of reports
Extract the "ReportOptions.Description.Text" information for each report and place it in a ListBox

So my question is: How do I read the variable "ReportOptions.Description.Text" (in Delphi)

Many thanks in advance

John

Comments

  • gpigpi
    edited 12:43PM
    function GetInfoFR(const FileName: String): String;
    var
    Xml: TfsXMLDocument;
    Root: TfsXMLItem;
    Ext: String;
    begin
      Result := '';
      Ext := Copy(FileName, Length(FileName) - 2, 3);
      if CompareText(Ext, 'fr3') = 0 then
      begin
        Xml := TfsXMLDocument.Create;
        try 
          Xml.LoadFromFile(FileName);
          Root := Xml.Root;
          Result := Root.Prop['ReportOptions.Description.Text'];
        finally
          Xml.Free;
        end;
      end;
    end;
    
  • JQLJQL
    edited 12:43PM
    Thank you very much for the code.

    John

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.