Results 1 to 3 of 3

Thread: printing/wrapping text

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Posts
    168

    Post

    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

  2. #2
    Addicted Member curlywink's Avatar
    Join Date
    Mar 2000
    Location
    Manila, Philippines
    Posts
    141

    Post

    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 ...

  3. #3
    Addicted Member jcouture100's Avatar
    Join Date
    Aug 1999
    Posts
    141

    Post

    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.
    JC

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width