Setting Left Margin when printing...
-
does anyone know how to set the left margin when printing a textfile? I have a form that prints to an Okidata 320 printer and the margin, by default, is set at 1". how can i set it to .5" on the Left margin only?
protected override void OnPrintPage(PrintPageEventArgs ev) { [other code here] float leftMargin = ev.MarginBounds.Left; [etc...] }
by the way, there is no way to set the margin on the okidata, nor can i move the form any farther to the right to fix this. it has to be done in the code. :) thanks. .gonad. -
does anyone know how to set the left margin when printing a textfile? I have a form that prints to an Okidata 320 printer and the margin, by default, is set at 1". how can i set it to .5" on the Left margin only?
protected override void OnPrintPage(PrintPageEventArgs ev) { [other code here] float leftMargin = ev.MarginBounds.Left; [etc...] }
by the way, there is no way to set the margin on the okidata, nor can i move the form any farther to the right to fix this. it has to be done in the code. :) thanks. .gonad.