Read localization data from resource from stream

edited May 2017 in FastReport VCL 5
I compiled FR language files (*.frc) into a .res file and linked it into my .exe.
In order to read the localization data, I create a file and import that file again, which is a bit clumsy:
var
vFRlangFile: string;
RS: TResourceStream;

  RS := TResourceStream.Create(HInstance, 'GERMAN', RT_RCDATA);
  try
    vFRlangFile := [temppath] + 'FR_German.frc';
     RS.SaveToFile(vFRlangFile);
     frxResources.LoadFromFile([temppath] + 'FR_German.frc')
  finally
     RS.Free;
  end;

As frxResources also offers a .LoadFromStream method, I'd rater skip creating a file and import directly from stream.
Unfortunatetly, TResourceStream is not compatible with .LoadFromStream method.

Does anybody know how to proceed?

Brgds.
Steffen

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.