Search found 316 matches

by jgkoehn
Tue Jul 29, 2025 8:24 pm
Forum: Support
Topic: Bad RTF table causing RichView to error
Replies: 17
Views: 61306

Re: Bad RTF table causing RichView to error

This does seem to work thank you.

Code: Select all

  reader.RVData.NormalizeDocument(0,True);
  reader.format;
by jgkoehn
Wed Jul 23, 2025 9:45 pm
Forum: Support
Topic: Bad RTF table causing RichView to error
Replies: 17
Views: 61306

Re: Bad RTF table causing RichView to error

One clarification I believed initially this was RTF table related, it is not nothing to do with RTF. I am sorry for that confusion.
by jgkoehn
Wed Jul 23, 2025 9:39 pm
Forum: Support
Topic: Bad RTF table causing RichView to error
Replies: 17
Views: 61306

Re: Bad RTF table causing RichView to error

Thanks Sergey for being willing to help me I understand this is complex:
To produce the error it seems RichView Text must be pasted from one RichView to another but make sure there is a background color in the pasted text.

Here is the call stack:
:770d0144 KERNELBASE.RaiseException + 0x64 ...
by jgkoehn
Wed Jul 23, 2025 4:01 pm
Forum: Support
Topic: Bad RTF table causing RichView to error
Replies: 17
Views: 61306

Re: Bad RTF table causing RichView to error

Sorry Sergey,
It is a bug that as I dug deeper got closer and closer to the problem.
1. RVItemList is the interface info
2. It happens inside pasting to a richview
3. The cause seems to be deep in DrawingBackground of CRVFData
4. But all of this as you said is so hard to follow that it is ...
by jgkoehn
Wed Jul 23, 2025 2:00 am
Forum: Support
Topic: Bad RTF table causing RichView to error
Replies: 17
Views: 61306

Re: Bad RTF table causing RichView to error

Well I found the cause but after multiple time of trying to format, reformat etc. It is just not working.
It is when reader.RVData.NormalizeDocument(0,True); is ran then when it tries to conceat I believe it is the RVItemList messes up.
How can I fix this. It is like the Pasting is still in process ...
by jgkoehn
Thu Jul 17, 2025 8:07 pm
Forum: Support
Topic: Bad RTF table causing RichView to error
Replies: 17
Views: 61306

Re: Bad RTF table causing RichView to error

OOps I missed the timer funciton it goes to before WMAfterPaste
This is to allow the paste function to complete.

// Replace the timer callback with this method:
procedure TfmBookView.OnAfterPasteTimer(Sender: TObject);
begin
FAfterPasteTimer.Enabled := False;
try
// Validate we're still in the ...
by jgkoehn
Thu Jul 17, 2025 8:01 pm
Forum: Support
Topic: Bad RTF table causing RichView to error
Replies: 17
Views: 61306

Re: Bad RTF table causing RichView to error

Here is the function it starts in readerpaste and ends in WMAfterPaste and it all seems to work fine until I click on a different reader....
var
MuteReaderPasteDelegate: Boolean = False;
TextStyleBeforePaste, ParaStyleBeforePaste: Integer;
procedure TfmBookView.readerPaste(Sender ...
by jgkoehn
Thu Jul 17, 2025 12:53 am
Forum: Support
Topic: Bad RTF table causing RichView to error
Replies: 17
Views: 61306

Re: Bad RTF table causing RichView to error

I have found the problem but not sure why it exists:
//SHIFT not pressed (UP)
if GetKeyState(VK_SHIFT) and $ff00 = 0 then begin
try
s := reader.GetItemTag(i);
p := Pos(':', s);
if (p>0) and(p<6) then continue;
reader.SetItemTag(i, ''); <------------if I comment this out I am fine
except
on ...
by jgkoehn
Wed Jul 16, 2025 12:04 am
Forum: Support
Topic: odd formatting issue - not sure of the cause.
Replies: 1
Views: 9913

odd formatting issue - not sure of the cause.

Here is the good format
good-formatting.jpg
good-formatting.jpg (232.61 KiB) Viewed 9913 times
Sometimes it just loads like this. If the topic is reloaded it can then be fine.
bad-formatting.jpg
bad-formatting.jpg (182.82 KiB) Viewed 9913 times
by jgkoehn
Tue Jul 15, 2025 9:46 pm
Forum: Support
Topic: Bad RTF table causing RichView to error
Replies: 17
Views: 61306

Re: Bad RTF table causing RichView to error

It is highly possible I've done something wrong and just have no idea on how to get to the bottom of it.
by jgkoehn
Tue Jul 15, 2025 6:50 pm
Forum: Support
Topic: Bad RTF table causing RichView to error
Replies: 17
Views: 61306

Re: Bad RTF table causing RichView to error

Is this related Sergey?
It is showing up in the Richview interface but not always.
by jgkoehn
Sat Jul 12, 2025 8:53 pm
Forum: Support
Topic: Bad RTF table causing RichView to error
Replies: 17
Views: 61306

Bad RTF table causing RichView to error

Greetings Sergey,

I am getting an error in this code:
First chance exception at $75D50144. Exception class EListError with message 'List index out of bounds (-1). TRVList is empty'.
I know it is bad RTF code on a Table (however, I can't always fix the bad RTF tables. These can be from users. Is ...
by jgkoehn
Wed Jul 09, 2025 8:48 pm
Forum: Support
Topic: HighDPI Windows zoom
Replies: 3
Views: 44003

Re: HighDPI Windows zoom

I think I found it: PixelsPerInch this was used through out with TRStyles and so I need to go throughout and update.
reader2.Style.TextStyles.PixelsPerInch
by jgkoehn
Wed Jul 09, 2025 4:37 pm
Forum: Support
Topic: HighDPI Windows zoom
Replies: 3
Views: 44003

Re: HighDPI Windows zoom

I read some place else that it is natively supported. So I must have something on I don't need???
Ideas on what that could be?
by jgkoehn
Wed Jul 09, 2025 4:23 pm
Forum: Support
Topic: HighDPI Windows zoom
Replies: 3
Views: 44003

HighDPI Windows zoom

I am working on making our application support Zoom in WIndows 125%, 150% etc.
For alot of forms there is a scaled option.
I know I could use RichView.DocumentPixelsPerInch = 144, instead of the normal 96.

Is there a way to adjust this behind the scenes to RichView itself? We are using primarily ...