frxRes

edited 10:31AM in FastReport 3.0
Hi,
(C++ Builder 6, FR 3.20)
I look for some tips to use TfrxResources to change my preview language from standard german to english on the fly.

I tried some like this without success:

#include "frxRes.hpp"
#pragma link "frxRes"
TfrxResources *pfrxres;
pfrxres = new TfrxResources();
pfrxres->LoadFromFile("frxEnglish.frc");

frxReport1->ShowReport();

But I think, this can not work.
Does anybody have an idea?

with regards
Joerg ;)

Comments

  • edited 10:31AM
    Hello,
    You don't need to create resource object FR do it, only need use it :

    #include <frxRes.hpp>
    .
    .
    .
    frxResources()->LoadFromFile("..\\frxEnglish.frc"); // path must complete



  • edited 10:31AM
    THX very much!
    it works fine!
    ;) ;)

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.