Hello, it's me again
Does exist a Demo or some help topic that explains how to replace text in the TppRichView (or a workaround)?
I'm trying to do a MailMerge engine.
Regards,
Mauro.
Replace text in TppRichView
Hi Mauro, it's me again too
Yes, there's the "Mail Merge" demo towards the middle of http://www.trichview.com/download/demo.html
Should give you some initial ideas.
Michel
Yes, there's the "Mail Merge" demo towards the middle of http://www.trichview.com/download/demo.html
Should give you some initial ideas.
Michel
Hi,
I've already seem these demos.
But I've not found .InsertText nor anything like this in TppRichView (the rich view for ReportBuilder).
I'd know if in fact there's no way to do this directly in TppRichView. If no then I'll use an invisible TRichViewEdit, replace the text using the idea existing in the demo, and at last save the RVF from TRichViewEdit to TppRichView.
Thanks,
Mauro.
I've already seem these demos.
But I've not found .InsertText nor anything like this in TppRichView (the rich view for ReportBuilder).
I'd know if in fact there's no way to do this directly in TppRichView. If no then I'll use an invisible TRichViewEdit, replace the text using the idea existing in the demo, and at last save the RVF from TRichViewEdit to TppRichView.
Thanks,
Mauro.
-
- Site Admin
- Posts: 17564
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
There are many mailmerge demos (you can see them all here: http://www.trichview.com/forums/viewtopic.php?t=8 ), and none of them requires editor or InserText method. All of them work with TRichView (and TRichView object is accessible as ppRichView.RichView)
Hello,
Excuse me by the insistence...
I've read the demos, but haven't understood the engine.
I'm using the following to do the replacement in the RichViewEdit:
Is there any way as simple as this to do the same using RichView?
Excuse me by the insistence...
I've read the demos, but haven't understood the engine.
I'm using the following to do the replacement in the RichViewEdit:
Code: Select all
//Go to begin
Item := 0;
Off := rveTexto.GetOffsBeforeItem(Item);
rveTexto.SetSelectionBounds(Item,Off,Item,Off);
//Replace
while rveTexto.SearchText(Old, [rvseoDown]) do
rveTexto.InsertText(New);
-
- Site Admin
- Posts: 17564
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: