Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Printer Left Margin

Status
Not open for further replies.

briancoats

Programmer
May 1, 2003
61
US
I was printint out of a Rich Text Box useing the .SelPrint MEthod with all text selected. This is wonderful for printing the contents of the box. Life is good. Until my client says, "Hey, if I use my hole punch I am goin to punch out data. I need a 3/4" margin."

Is there a way to programattically change the margin for the printer at runtime?

Brian
 
I figured out a way

In case you need to do this too...

RTB.selstart = 0
rtb.sellength = len(rtb.text)
rtb.selindent = 400 ' OR appropriate number for you
rtb.selHangingIndent = 1 ' causes rest of paragraphs to
' align with indent
rtb.selPrint(Printer.hDC)

MAybe this will save someone else some time

Brian
 
Well you've answered your own question. For additional information on printer margins check out thread222-550660.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top