Page 1 of 1
Creating screenshot/image of RVE document?
Posted: Fri Nov 16, 2012 4:40 pm
by PeterPanino
Which is the best method of making a screenshot/image of the current RVE document?
Posted: Fri Nov 16, 2012 4:51 pm
by Sergey Tkachenko
Can you explain with more details?
Do you want to save an image of a document in TRichViewEdit from the application?
Posted: Sat Nov 17, 2012 2:51 am
by PeterPanino
I just want make a 1:1 bitmap of the RVE document. Then I can save the bitmap or copy it to the clipboard. Ideally it should also capture the part of the document which possibly is hidden with scrollbars (if the document is larger than the RVE control).
Posted: Sat Nov 17, 2012 8:35 am
by Sergey Tkachenko
You can create a copy of the editor window using RichView.PaintTo method. But it draws the exact copy of the window on the screen, including scrollbars.
The preferred method of creating an image from TRichView is using TRVReportHelper component. The example can be found in Demos\*\Assorted\Graphic\ToImage\