Search found 17 matches

by DanielM
Mon May 05, 2025 4:53 am
Forum: Support
Topic: Deleting a range
Replies: 12
Views: 42268

Re: Deleting a range

Hi Sergey,

I managed to test your code and from the first tests it works perfectly. I will have to check in more detail the combinations that can occur when calling the function in combination with my code to adapt it to the needs of my application.
Thanks again for the effort and help.
by DanielM
Wed Apr 30, 2025 1:07 pm
Forum: Support
Topic: Deleting a range
Replies: 12
Views: 42268

Re: Deleting a range

Wow, how fast you posted, I'll try the acid towards the end of the weekend. Thanks.
by DanielM
Wed Apr 30, 2025 1:05 pm
Forum: Support
Topic: Deleting a range
Replies: 12
Views: 42268

Re: Deleting a range

Yes, now it detects the two keywords in the text ok, but the problem remained with detecting keywords in tables an remove text in cells.
by DanielM
Wed Apr 30, 2025 9:51 am
Forum: Support
Topic: Deleting a range
Replies: 12
Views: 42268

Re: Deleting a range

Like this demo, remove all item between \if_del\ and \end_del\
3.png
3.png (48.13 KiB) Viewed 30603 times
by DanielM
Wed Apr 30, 2025 9:13 am
Forum: Support
Topic: Deleting a range
Replies: 12
Views: 42268

Re: Deleting a range

Theoretically it should delete everything between the two keywords, true, it could be on other rows, but never in different tables.
by DanielM
Wed Apr 30, 2025 8:09 am
Forum: Support
Topic: Deleting a range
Replies: 12
Views: 42268

Re: Deleting a range

var ItemNoI, ItemNoF, OffsI, OffsF: Integer;
tle1, tle2: TCustomRichViewEdit;

rve.SearchText('Inicia bloco', [rvseoDown, rvseoWholeWord]);
tle1 := rve.TopLevelEditor;
tle1.GetSelectionBounds(ItemNoI, OffsI, dummy, dummy, True); // storing the position before selection in ItemNoI, OffsI
rve ...
by DanielM
Thu Apr 24, 2025 1:39 pm
Forum: ScaleRichView
Topic: Read ParaNo from cells
Replies: 7
Views: 47151

Re: Read ParaNo from cells

Yes, I also thought that because of the items there are problems, but I thought that on Add... it basically increments items.

Method 1 works ok.
Method 2 works, but it moves the table completely into the page, part of it is removed without being in the editing area.

Thank you very much for your ...
by DanielM
Wed Apr 23, 2025 2:26 pm
Forum: ScaleRichView
Topic: Read ParaNo from cells
Replies: 7
Views: 47151

Re: Read ParaNo from cells

My Project.

Regard.
by DanielM
Wed Apr 23, 2025 12:22 pm
Forum: ScaleRichView
Topic: Read ParaNo from cells
Replies: 7
Views: 47151

Re: Read ParaNo from cells

Yes, I tried and it doesn't work, add a space after each item added to the cell in the source cell (the first row/corresponding column) is the source.
I tried with .AddItemAsIs, but it gives an error when I try to close the program, it's clear to me that something is wrong with how I did it
Can I ...
by DanielM
Wed Apr 23, 2025 4:50 am
Forum: ScaleRichView
Topic: Read ParaNo from cells
Replies: 7
Views: 47151

Re: Read ParaNo from cells

I found how I can read ParaNo, but now I have another problem, it adds a new line after each Item, how can I copy the cell as defined on the first row (0)?

procedure CopyCell(r, c: Integer) ;
var
i: Integer;
begin
for i := 0 to table.Cells[0, c].ItemCount - 1 do
begin
table.Cells[r, c].AddNL ...
by DanielM
Tue Apr 22, 2025 6:19 pm
Forum: ScaleRichView
Topic: Read ParaNo from cells
Replies: 7
Views: 47151

Read ParaNo from cells

Hi,

I want to read data from a cell and transfer it to another cell along with Style and ParaNo. How to read ParaNo from source cell ?

for i := 0 to table.Cells[0, c].ItemCount - 1 do
begin
table.Cells[r, c].AddNL(table.Cells[0, c].GetItemText(i), table.Cells[0, c].GetItemStyle(i), [b]???[/b ...
by DanielM
Fri Apr 18, 2025 5:24 pm
Forum: ScaleRichView
Topic: Edit Header/Footer without Focus
Replies: 2
Views: 15785

Re: Edit Header/Footer without Focus

Do you have any demo that can help me understand how to search and replace header data?
by DanielM
Fri Apr 18, 2025 4:26 pm
Forum: ScaleRichView
Topic: Edit Header/Footer without Focus
Replies: 2
Views: 15785

Edit Header/Footer without Focus

Hi,

I want to make a DLL with TSRichViewEdit that will not be visual, I load RVF files, process the text, then I want to process (find & replace) the data in the Header and Footer. How could I process the data in the Header and Footer without entering the editing "StartEditing(srvrveHeader ...
by DanielM
Tue Apr 01, 2025 5:05 pm
Forum: Examples, Demos
Topic: [Demo] Making PDF with table of contents using LLPDFLib
Replies: 10
Views: 292544

Re: [Demo] Making PDF with table of contents using LLPDFLib

Actually I would like to be able to export from TScaleRichView to PDF, RTF, Docx and definitely RVF. I would also like to be able to convert from RVF, RTF and Docx without having visual components, I saw that you posted a demo that converts RTF to PDF with non-visual components.
by DanielM
Tue Apr 01, 2025 5:01 am
Forum: Examples, Demos
Topic: [Demo] Making PDF with table of contents using LLPDFLib
Replies: 10
Views: 292544

Re: [Demo] Making PDF with table of contents using LLPDFLib

Hi,

Yes, pls, if you can put some demo will be nice.

Tnx.