Results 1 to 3 of 3

Thread: Resizing a form for printing

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Utah
    Posts
    2

    Unhappy

    I have a form with a picture box containing lines and rotated text. I can print the lines using regular printer.print code but the text does not show. That's one issue I need to resolve.

    My work-around is to print the entire form using "printform" after making several controls on the form invisible. Doing so will show the rotated text and the lines together, even though it is not to scale. However, each time I do, the result is less than satisfactory because the form only fills half my printed sheet. I want it larger. I have tried to resize the picture box and the form but then it is off the screen and I can't place the lines and text appropriately. I have left a similar message on the AOL boards but no takers. Is there a way to adjust the size of the form and picture box to a designated dimension when printed? Any help will be greatly appreciated.
    Jim S

  2. #2
    Lively Member
    Join Date
    Jun 2000
    Posts
    82
    Could you capture the form in a picture box and use paintpicture to print it?
    Either that, or in your print routine, set the printer.scalemode to vbTwipps, get the printer.scalewidth and printer.scaleheight and resize the form to those.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Utah
    Posts
    2
    Thanks for the advice. I'll give your suggestions a try. However, I now find that when I create
    an executable, the form will not print anything except many blank sheets. Is there something I need to do (code wise) for a user to print a form other than using print screen. When I am in VB environment, the form at least prints with the printform command, but apparently the executable will not. What's the problem?
    Jim S

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