Retrieving Version information form report

I am completely new to Fast Reports using Version4 standard and Delphi XE5 in windows 7 Pro.

I am trying to develop a version control system for our reports.

I entered numbers into the report options fields

I tested the following code:

procedure TfrmPatServices.Button1Click(Sender: TObject);
var LVersion :string;
begin
inherited;
dmodReports1.PrepareServiceReportQueries;
frxReport1.LoadFromFile('C:\Work\HHCReports\PatientServiceMC.fr3');
with frxReport1.ReportOptions do
LVersion := VersionBuild + '.' + VersionMajor + '.' + VersionMinor + '.' + VersionRelease;
ShowMessage(LVersion);
frxReport1.ShowReport;
end;
The message only shows the periods I would have expected 1.1.1.1 not ...

Any help is appreciated

Rob Hoyer

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 3:57PM
    unless you have set those values previously you are retrieving empty strings

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.