Search found 22 matches

by DanielM
Sun Feb 08, 2026 6:44 am
Forum: ScaleRichView
Topic: set BottomMargin with Footer Height
Replies: 8
Views: 13023

Re: set BottomMargin with Footer Height

Hi,

I think I found a solution to the Header/Footer variable pop-up, but on the first page the text in the main overlaps the one in the footer. Somehow the text on the first page does not adjust to the height, the rest of the pages are rendered correctly. If after injecting the footer I set a value ...
by DanielM
Fri Feb 06, 2026 1:21 pm
Forum: ScaleRichView
Topic: set BottomMargin with Footer Height
Replies: 8
Views: 13023

Re: set BottomMargin with Footer Height

Hi,

Hi,

It is difficult to make a simple example code, I should give you the whole project and another one with which the project is called, parses its parameters and triggers the generation of documents, I have no problem giving it all, but your time is limited and I can't abuse it.

I am trying ...
by DanielM
Tue Feb 03, 2026 7:53 am
Forum: ScaleRichView
Topic: set BottomMargin with Footer Height
Replies: 8
Views: 13023

Re: set BottomMargin with Footer Height

Hi,

No, it is not larger than 1/3.
The problem only occurs on the first page (only the first page) which also has a Header. When more lines are added to the Footer, the text in the document overlaps the text in the Footer, but only on the first page, on the rest of the pages the text in the ...
by DanielM
Sat Jan 31, 2026 2:07 pm
Forum: ScaleRichView
Topic: set BottomMargin with Footer Height
Replies: 8
Views: 13023

Re: set BottomMargin with Footer Height

I use ScaleRichView as the non-visual component, if I manually set PageProperty.BottomMargin:= X Value, it displays correctly that X is set to a correct value, I approximate because I don't know what the Footer height is (work ok if I have 3..4 rows).

You said I have to use the formula: visible ...
by DanielM
Sat Jan 31, 2026 8:29 am
Forum: ScaleRichView
Topic: set BottomMargin with Footer Height
Replies: 8
Views: 13023

set BottomMargin with Footer Height

srve.PageProperty.BottomMargin :=

Hi,

How can I set srve.PageProperty.BottomMargin with footer height?

procedure ApplyFooter(Vars: array of rVarS);
cousin
i, j: Integer;
Tables: TRVTableItemInfo;
CenteredParaNo, TabbedParaNo, NormalTextNo, NormalTextNo2: Integer;
// BoldTextNo, NormalParaNo ...
by DanielM
Mon May 05, 2025 4:53 am
Forum: Support
Topic: Deleting a range
Replies: 12
Views: 152084

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: 152084

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: 152084

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: 152084

Re: Deleting a range

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

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: 152084

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: 589427

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: 589427

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: 589427

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: 589427

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 ...