Putting bitmap to RTF
-
Welcome, Have you got any example how to put Bitmap (created during working of application) and than put it (embedded) in RichTextBox control. Bitmap is created in the memory (not reading from file). thx
Hi I have tried to do something similar and there seems to be 2 ways: 1. Easy - place bitmap object in clipboard and paste to richtextbox. Problem that u use the clipboard and mite "lose" data that still needs to be there. 2. Hard - Create a RTF file in a word processor with required bitmap, save the file. Now add that to the Rtf of the richtextbox. This could coause many problems though :( 3. Ideal solution - Every stick together and make a proper WordProcessingTextBox with all the features we always wanted :). Like highlighting :) Hope this helps MYrc : A .NET IRC client with C# Plugin Capabilities. See http://sourceforge.net/projects/myrc for more info. :-D
-
Hi I have tried to do something similar and there seems to be 2 ways: 1. Easy - place bitmap object in clipboard and paste to richtextbox. Problem that u use the clipboard and mite "lose" data that still needs to be there. 2. Hard - Create a RTF file in a word processor with required bitmap, save the file. Now add that to the Rtf of the richtextbox. This could coause many problems though :( 3. Ideal solution - Every stick together and make a proper WordProcessingTextBox with all the features we always wanted :). Like highlighting :) Hope this helps MYrc : A .NET IRC client with C# Plugin Capabilities. See http://sourceforge.net/projects/myrc for more info. :-D
leppie wrote: Hi I have tried to do something similar and there seems to be 2 ways: 1. Easy - place bitmap object in clipboard and paste to richtextbox. Problem that u use the clipboard and mite "lose" data that still needs to be there. Hmm I did't think about it... but how to copy bitmap from Form (for example I would like to write some kind of chart and put it into rtf) leppie wrote: 2. Hard - Create a RTF file in a word processor with required bitmap, save the file. Now add that to the Rtf of the richtextbox. This could coause many problems though In my case it couldn't be done. leppie wrote: 3. Ideal solution - Every stick together and make a proper WordProcessingTextBox with all the features we always wanted . Like highlighting That's cool. But unfortunately I don't have time to do it :( (but maybe in future it is good idea :)