Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7458831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T13:30:26+00:00 2026-05-29T13:30:26+00:00

I have a memo object in my report, and a need replace %…% strings.

  • 0

I have a memo object in my report, and a need replace “%…%” strings. For example, in Rave Report:

MemoBuf.ReplaceAll('%my_str%',  "new string", false);

But, don’t exists a method (or property) to replace text, in the FastReport. How I can do this?

I’m using Fast Report 4.9.72 and Delphi 2010.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T13:30:27+00:00Added an answer on May 29, 2026 at 1:30 pm

    Since there is no StringReplace in FastReport available I would do it from the Delphi code. It is possible to import functions somehow but this seems to me better arranged. Please note, that in this first example I suppose that the Memo1 exists (you would get an access violation otherwise).

    procedure TForm1.Button1Click(Sender: TObject);
    var
      Memo: TfrxMemoView;
    begin
      Memo := frxReport1.FindObject('Memo1') as TfrxMemoView;
      Memo.Text := StringReplace(Memo.Text, '%my_str%', 'new string', [rfReplaceAll]);
      frxReport1.ShowReport;
    end;
    

    If you are not sure about component name or type you should use something like this:

    procedure TForm1.Button2Click(Sender: TObject);
    var
      Memo: TfrxMemoView;
      Component: TfrxComponent;
    begin
      Component := frxReport1.FindObject('Memo1');
      if Component is TfrxMemoView then
      begin
        Memo := Component as TfrxMemoView;
        Memo.Text := StringReplace(Memo.Text, '%my_str%', 'new string', [rfReplaceAll]);
        frxReport1.ShowReport;
      end;
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a problem on how to retrieve the items in memo from table
I have a List<Pair<String, String>> into which I want to copy the data from
I'm pretty new to the Objective-C world and I have a long history with
I have a RichBox(memo) that I'd like to add lines to. Currently,I use this
I have noticed that in Delphi 2009, the text in a multi-line memo has
I need to create database tables to store memo. in the To clause user
Well I am stumped. I have a access DB that I need to convert
I have a voice memo component in my app, and I want to allow
I have a form with many controls (treeview , memo ,listbox ,panels etc ).
I have a DBase IV database. Each row has a memo field with a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.