richTextBox print & print preview
-
here is my problem. i have a RichTexBox with a document in it. after some modifications it needs to be printed. however in the printed version no white spaces must be left from the end of a paragraph to the end of the line. i have tried to adjust the size of the RichTextBox to the size of the paper used by the printer (usualy A4) and set left and right indentation of text (making a copy of the rtf before this in order to print it unindented, otherwise it will just double the indentation) accordingly to printer settings indentation values. however print preview and printed version text differs from the one shown on screen. the text is printed as formated text with justified align and different fonts and sizes, using a control derived from RichTextBox witch has such printing support described here now if anyone has any ideas as to how i can atleast hadle this problem ..