Hi
I have a richtextbox . its almost the size of an A4 paper. i have print properties for it. when i click page setup to print the content in richtextbox, the margins are given as top=1,bottom=1,right=1,left=1. I need to change these to 0.25,0.25,0.25,0.25 automatically in the program. i dont want to click page setup and change manually. i should set the properties of the margins automatically. how to do this. can some one help me with the code.
thanks
StefanPosted Mar 13, 2009, 12:27 PM
When you set up the print document you can set the margins...
e.Graphics.DrawString(richTextBox1.Text, richTextBox1.Font, Brushes.Black, yourMargin, yourMargin);