Page 1 of 1

print preview in separate window

Posted: Sat Jul 05, 2014 4:41 am
by krctech
I have successfully implemented a TRVPrintPreview on the same form as a TRichView. What I want to do is have a modal dialog (separate from the main form that contains the TRichView) that the user invokes which contains the preview. I've tried (unsuccessfully) to pass the TRichView instance to the modal dialog that contains TRVPrint and TRVPrintPreview components. I do the usual but nothing appears.

Where am I going wrong?

Posted: Sat Jul 05, 2014 8:50 am
by Sergey Tkachenko
See the demos, they have print preview in a separate form.
For Delphi 2009 and newer, demos are in Demos\DelphiUnicode\ folder.
A modal preview form can be found in the demos:
Editors\Editor 1\
Editors\Notes\
Assorted\Printing\Headers\

Posted: Sat Jul 05, 2014 2:46 pm
by krctech
Thanks Sergey. I looked at the demos but somehow missed these.