Creating screenshot/image of RVE document?

General TRichView support forum. Please post your questions here
Post Reply
PeterPanino
Posts: 57
Joined: Tue Jul 13, 2010 10:50 pm

Creating screenshot/image of RVE document?

Post by PeterPanino »

Which is the best method of making a screenshot/image of the current RVE document?
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Can you explain with more details?
Do you want to save an image of a document in TRichViewEdit from the application?
PeterPanino
Posts: 57
Joined: Tue Jul 13, 2010 10:50 pm

Post 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).
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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\
Post Reply