Clipboard paste formated text in Word
-
Hi, i managed to paste the text in word document, but the text loses text formatting (bold, italic, center justify). I followed this article: http://www.neodynamic.com/ND/FaqsTipsTricks.aspx?tabid=66&prodid=3&sid=36[^] What should i do ?
-
Hi, i managed to paste the text in word document, but the text loses text formatting (bold, italic, center justify). I followed this article: http://www.neodynamic.com/ND/FaqsTipsTricks.aspx?tabid=66&prodid=3&sid=36[^] What should i do ?
Raw text does not have any formatting - it's just a string of characters. In order to paste data into Word, you can try copying it with formatting information using Clipboard.SetText with a TextDataFormat parameter: http://msdn.microsoft.com/en-us/library/tbfb3z56.aspx[^] - but if you are copying to the clipboard to transfer data, it's generally a poor idea - any app which messed with my clipboard like that woudl be uninstalled post haste. There are generally better ways to transfer data between apps, including into word, depending on exactly what you are trying to achieve.
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.
-
Raw text does not have any formatting - it's just a string of characters. In order to paste data into Word, you can try copying it with formatting information using Clipboard.SetText with a TextDataFormat parameter: http://msdn.microsoft.com/en-us/library/tbfb3z56.aspx[^] - but if you are copying to the clipboard to transfer data, it's generally a poor idea - any app which messed with my clipboard like that woudl be uninstalled post haste. There are generally better ways to transfer data between apps, including into word, depending on exactly what you are trying to achieve.
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.
-
How are you doing it?
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.
-
Raw text does not have any formatting - it's just a string of characters. In order to paste data into Word, you can try copying it with formatting information using Clipboard.SetText with a TextDataFormat parameter: http://msdn.microsoft.com/en-us/library/tbfb3z56.aspx[^] - but if you are copying to the clipboard to transfer data, it's generally a poor idea - any app which messed with my clipboard like that woudl be uninstalled post haste. There are generally better ways to transfer data between apps, including into word, depending on exactly what you are trying to achieve.
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.
-
what you suggest, to create the word document while retaining the formatting? I have one Image componente and one Richtextbox.
I did ask how you are doing it at the moment...
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.
-
I did ask how you are doing it at the moment...
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.