Search found 32 matches

by tothpaul
Mon Mar 17, 2025 11:22 pm
Forum: Support
Topic: Table and print width
Replies: 3
Views: 51934

Re: Table and print width

ok, in fact BestWidth is set to 1, and the text paragraph has the option rvpaoNoWrap
what confuse me, is that TRichViewEdit split the line anyway...so I expected to have the same effect when printing.
by tothpaul
Tue Mar 11, 2025 2:37 pm
Forum: Support
Topic: Table and print width
Replies: 3
Views: 51934

Table and print width

Hello,

on a RichView, the customer create a document with a specif tag. This tag is replaced by a Table width some information (the 3rd column on the pictture)

in the RichvView editor everything seems ok with "GUILLAUME" on a second line so the table do not overflow the document width, but in ...
by tothpaul
Mon Feb 20, 2023 3:22 pm
Forum: Support
Topic: Dragon Naturally Speaking 9.5
Replies: 16
Views: 80840

Re: Dragon Naturally Speaking 9.5

hum...I've removed part of my patch and it works better :)

with just

Code: Select all

procedure TRichViewEdit.EMReplaceSel(var Msg: TMessage); message EM_REPLACESEL;
begin
  InsertText(PChar(Msg.LParam));
end;
by tothpaul
Mon Feb 20, 2023 2:39 pm
Forum: Support
Topic: Dragon Naturally Speaking 9.5
Replies: 16
Views: 80840

Re: Dragon Naturally Speaking 9.5

hum...it seems that LinearToRichView is the source of the pb

my patch was to avoid a second call when the last computed value is known but it doesn't work anymore

[DRAGON] WM_GETTEXTLENGTH 0, 0 : 570
[DRAGON] WM_GETTEXT 571, 1697724 : 570
[DRAGON] WM_GETTEXT 1082, 1697724 : 570
[DRAGON] WM_PAINT ...
by tothpaul
Mon Feb 20, 2023 9:36 am
Forum: Support
Topic: Dragon Naturally Speaking 9.5
Replies: 16
Views: 80840

Re: Dragon Naturally Speaking 9.5

damned ! the flickering is back :/ since I've updated to last version of RV (from an old version)

I have to dig into the methods...

when Dragon Medical One is active I have this messages permanently

procedure TRichViewEdit.WndProc(var Msg: TMessage);
begin
{
[DRAGON] EM_POSFROMCHAR 463, 0 ...
by tothpaul
Fri Nov 25, 2022 12:27 pm
Forum: Support
Topic: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap
Replies: 6
Views: 17430

Re: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap

I don"t use backgrounds...is that correct to add a "FParaStyle := nil" after "FDrawITem := nil" at the end of DrawPage ? because it fix the problem.
by tothpaul
Fri Nov 25, 2022 12:05 pm
Forum: Support
Topic: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap
Replies: 6
Views: 17430

Re: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap

No :)

I have the same bug when saving to a PDF with this code
procedure TRVPrint.SaveAsPDF(const AFileName: string);
begin
var Doc := LLPDFDocument.TPDFDocument.Create(nil);
Doc.PDFACompatible := True;
Doc.FileName := UniqueFileName(AFileName);
Doc.BeginDoc;

VirtualPrinter.Active := True ...
by tothpaul
Fri Nov 25, 2022 11:40 am
Forum: Support
Topic: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap
Replies: 6
Views: 17430

Re: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap

yep I have probably missed something in my patch (taken from an old RV version), when I use the VirtualPrinter everything is right.

Thanks
by tothpaul
Fri Nov 25, 2022 11:18 am
Forum: Support
Topic: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap
Replies: 6
Views: 17430

Re: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap

ok

pi is FParaStyle and pi.ClassName returns TIBCParam !!!

is see that FParaStyle is "valid only in DrawPage"...but it point to something completly out of scope (IBDAC SQL Parameter)

maybe it's one of my patches that does this...but I do not change anything in the para styles

I'll revert my ...
by tothpaul
Fri Nov 25, 2022 10:20 am
Forum: Support
Topic: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap
Replies: 6
Views: 17430

strange bug in TRVHeaderFooterRVData.DrawBackToBitmap

Hello,

I have a strange bug on some PC in a unknown but reproductible situation in TRVHeaderFooterRVData.DrawBackToBitmap

when I print a document, "pi.Background" is null,

you test for instance "(pi <> nil) and (pi.Background.Color..", I have to add "(pi <> nil) and (pi.Background <> nil) and ...
by tothpaul
Fri Oct 14, 2022 3:43 pm
Forum: Support
Topic: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed
Replies: 11
Views: 47262

Re: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed

OK, you're right, I don't have those problems with llPDFDocument
by tothpaul
Fri Oct 14, 2022 9:36 am
Forum: Support
Topic: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed
Replies: 11
Views: 47262

Re: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed

OK, it way easier with VirtualPrinter ^^

but I can show some problems PDF.zip

by default, the footer display "Page 1 /1" with a space before the "/", and if you set PageNoFromNumber to 100 the text override the /

if you change one of the checkbox the page numbers are scaled to fit the orginal ...
by tothpaul
Fri Oct 14, 2022 8:57 am
Forum: Support
Topic: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed
Replies: 11
Views: 47262

Re: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed

ok , in this case I use 4 TRichView, 1 RVStyle and a RVPrint


// Dispatch
RVStyle.TextEngine := rvteWindows;
RVPrint.TitlePage := True;
RVPrint.SetHeader(RVHeader.RVData, TRVHFType.rvhftFirstPage);
RVPrint.SetFooter(RVFooter.RVData, TRVHFType.rvhftFirstPage);
RVPrint.SetHeader(RVHeader2 ...
by tothpaul
Fri Oct 14, 2022 8:43 am
Forum: Support
Topic: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed
Replies: 11
Views: 47262

Re: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed

ok , in this case I use 4 TRichView, 1 RVStyle and a RVPrint


// Dispatch
RVStyle.TextEngine := rvteWindows;
RVPrint.TitlePage := True;
RVPrint.SetHeader(RVHeader.RVData, TRVHFType.rvhftFirstPage);
RVPrint.SetFooter(RVFooter.RVData, TRVHFType.rvhftFirstPage);
RVPrint.SetHeader(RVHeader2 ...
by tothpaul
Thu Oct 13, 2022 4:11 pm
Forum: Support
Topic: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed
Replies: 11
Views: 47262

Re: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed

Arial, has you can see in the code.

but I think it is related also to MetafileCompatibility

I have another pb when this option is not set, if I put underlined text and normal text on the same line, the space between the two items is not visible

AddNL('some text', NormalText, ParaNo)
AddNL ...