Zero Tolerance
05-27-2004, 09:14 AM
All,
I've not coded alot of VB apps...and the ones that I have done have never needed the function that I am having problems with.
Anyway...I have coded a form that takes a users input with various textboxes and option buttons and prints them to the local printer.
I have everything working properly except one text box's output to the printed page. This textbox is a multiline textbox that the user can use to input "notes" about the rest of the selections on the form. Basically a multiline textbox that is being used as a "notepad". The notes can be one sentance or 20 paragraphs.
My problem is that if the user doesn MANUALLY return to a new line b4 the end of the boxview...in essence letting wordwrap take control of the return, it (the printer) will only print to the edge of the printed page and drops everything else.
Like I stated, if the user MANUALLY returns b4 the end of that line in the text box...the printer will print everything and not loose anything....however the textbox is smaller than the width dimensions of the page....so there is alot of wasted space on the page.
My question is...when you manually return does that create a seperate string or is it still considered one string? I guess I need someone to tell me or give me some code to format the printer output. Perhaps reading of the string for "x" amount of characters and words, then autoreturn so nothing is dropped.
Thanks!
I've not coded alot of VB apps...and the ones that I have done have never needed the function that I am having problems with.
Anyway...I have coded a form that takes a users input with various textboxes and option buttons and prints them to the local printer.
I have everything working properly except one text box's output to the printed page. This textbox is a multiline textbox that the user can use to input "notes" about the rest of the selections on the form. Basically a multiline textbox that is being used as a "notepad". The notes can be one sentance or 20 paragraphs.
My problem is that if the user doesn MANUALLY return to a new line b4 the end of the boxview...in essence letting wordwrap take control of the return, it (the printer) will only print to the edge of the printed page and drops everything else.
Like I stated, if the user MANUALLY returns b4 the end of that line in the text box...the printer will print everything and not loose anything....however the textbox is smaller than the width dimensions of the page....so there is alot of wasted space on the page.
My question is...when you manually return does that create a seperate string or is it still considered one string? I guess I need someone to tell me or give me some code to format the printer output. Perhaps reading of the string for "x" amount of characters and words, then autoreturn so nothing is dropped.
Thanks!