Page 1 of 1

RVPrint.OnPrintComponent

Posted: Thu Sep 12, 2024 5:44 pm
by jgkoehn
In version 22.2 of TRichView component RVPrint I am using Delphi12.1:
I am running into TRVBitmap however I can't find RVGraphic or the unit that contains this. (I would rather not upgrade to 22.4 if possible since we normally have to do quite a bit to support each update in our code.)

Code: Select all

procedure TfrmPrintPreview.RVPrintPrintComponent(Sender: TCustomRVPrint;
  PrintMe: TControl; var ComponentImage: TRVBitmap);
A note normally when a component is dropped on the form it pulls in the necessary units. This one is not pulling in the needed unit for TRVBitmap in Delphi12.1

Re: RVPrint.OnPrintComponent

Posted: Thu Sep 12, 2024 6:42 pm
by Sergey Tkachenko
I am sorry for the inconvenience.
For VCL, TRVBitmap is defined in RVClasses unit (and = TBitmap)
For FMX, TRVBitmap is defined in fmxRVClasses unit (as a special class)

Re: RVPrint.OnPrintComponent

Posted: Thu Sep 12, 2024 7:29 pm
by jgkoehn
No worries you are an excellent programmer. I just couldn't solve it. Thank you for explaining