hello I have a string that is about 300 characters long, and the page can hold about 98 characters wide when I print to the printer.. but it cuts off at 98 instead of wrapping it.. is there a way to wrap it? thanks
Thai
Printable View
hello I have a string that is about 300 characters long, and the page can hold about 98 characters wide when I print to the printer.. but it cuts off at 98 instead of wrapping it.. is there a way to wrap it? thanks
Thai
Hi there it's me again (typo error),
So u said it can hold up 'till 98 chars, create a sub routine w/c checks your string that AFTER 98 char insert the constant vbCR & vbLF this would force the printer to line feed.. I know this works ?
Hope this can help you ...
You'll probably also want to make sure you break your line at an appropriate spot and not in the middle of a word. You can use the InStr function to find the location of a space in your string at a location less than or equal to 98 characters and then insert the vbCRLF at that point.