Administrator

Administrator

  • Tech Writer
  • 2.2k
  • 1.5m

Printing forms

Mar 12 2003 5:12 AM
Hi! It seems that no one has noticed the "spacing between chars" problem. DrawString uses different spacing between chars from system when drawing string so you can not simply use DrawString to draw contents of TextBox. Test any application provided at C# Corner which prints forms directly to printer and you will see that if you fill text box with Ds ("DDDD..."), you will get layout where drawn string exceed expected boundaries (width of text box). Try this in "Filling out your 1040EZ Tax Form in .NET" at http://www.c-sharpcorner.com/Code/2003/Jan/TaxForm.asp Just fill any textbox with Ds and click on preview... I invested a lot of my time to fix this, but I am running out of ideas... Does anyone have clue? Thank you! Dejan

Answers (1)