Hi fake programmer,
Yes, you can definitely display the contents of rtf file in a richtextbox.
But I'm not quite understand how you break the richtexbox contents into pages, but if you can do this, we do have a API named RenderTargetBitmap class, by which you can give a screenshot for the current visual stuff.
Before you print the stuff, you can take screenshots for the visual contents of the richtextbox and pass them to the print page preview. For printing sample, ref: http://ift.tt/1bHxoxy
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.
No comments:
Post a Comment