24.2 The detail
               
              As for the title, will insert band as  "Data Master ". then double click on this band to select the principal data source which is frDBDataSet1 in our example.
               
                     
            On the first half  band on the left, insert a rectangle object and double click on.
               

            Here for this example, one put several fields but one can keep a rectangle for only one field in order to apply formats for example (we will see that later).

               
            The first line " Name [ field name ] " is obtained by writting " Name " then with the button " Variables ", we insert the variable [ field name ] (we could directly have write it).
               
            For the second line " Size [ [ Table1."SIZE"]*2.54 ] cm " we write " Size " then with the button " DB Field ", we choose field SIZE of Table1 and to convert this field expressed into inch in cm, we multiply this field by 2.54 the whole between [ ].
               
            One can see the power of FastReport, with only 1 Rectangle object, one put on our state, the 2 wording, 2 fields of data including 1 calculated.
               
            Now, on the right-hand side of the band, set an picture object. To always publish the same picture, it would be enough to double click on this object and load the desired picture. We wish a picture linked with data press on F11 to display the inspector of object.
               

                       
            Inform the Memo property with the variable [image field]. The fact of doing that, turn our picture object into picture object linked with data field..
               
            24.3 - Results
               
              That's, our first state it is finished, it should be recorded with the name " rap1frf ".
            A clic on the previsualisation gives this:
               
                  Click here for view a big picture
                   
            Now, it is necessary to write the necessary code to load and preview or editing your report " rap1.frf " from your application. For that, add to your project the following code (and Hop!) you have a edition with preview and you give the possibility to the end-users to modify this report without having to modify the basic application.
               
               

              TForm1.Button2Click(Sender procedure: TObject); 
              begin
               frReport1.LoadFromFile(' rap1.frf'); 
               FrReport1.ShowReport; 
              end;

              TForm1.ButtonÇlick(Sender procedure: TObject); 
              begin
               frReport1.LoadFromFile(' rap1.frf'); 
               frReport1.DesignReport; 
              end;
               


        Page preceding                           new Page                     Contents