Results 1 to 7 of 7

Thread: @#%! Printing!!!

  1. #1

    Thread Starter
    Addicted Member P.S.W.'s Avatar
    Join Date
    Aug 2000
    Posts
    146

    Exclamation Help! Printing from VB

    I have a form that I'm using as a "report" that I want to print out.

    I'm trying to make it so that the my app will print out the form onto a 5" X 8" index card (the form is appropriately sized), and I tried this code:

    Printer.Orientation = vbPRORPortrait
    Printer.Width = 7500
    Printer.Height = 11500
    Load Form1
    Form1.PrintForm
    Unload Form1

    This works beautifully on my printer; it prints to the center of the page, so if I put an index card in the envelope feeder, it prints on it perfectly.

    HOWEVER, I tried this program on another computer (which uses the same brand printer, incidentally), and it printed the form left-justified! It won't print on the index card correctly, because most of it gets cut off (you can only see part of the right edge).

    Anybody know have any ideas on what is happening/what I can do to correct the problem? Any replies appreciated.
    Last edited by P.S.W.; Feb 20th, 2001 at 12:28 AM.

  2. #2
    Guest
    I'm not really surprised, my epson inkjet does unspeakable things to label controls when I try printform!

    I think you should try the printer's .PaintPicture method instead, which gives stable results.
    Alternatively, you could try delving into some API functions (BITBLT).

  3. #3

    Thread Starter
    Addicted Member P.S.W.'s Avatar
    Join Date
    Aug 2000
    Posts
    146

    Question Sounds good, but...

    How can I make a picture of the form?

  4. #4

    Thread Starter
    Addicted Member P.S.W.'s Avatar
    Join Date
    Aug 2000
    Posts
    146

    Question

    Still haven't figured out how to do this...any body?

  5. #5
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    Code:
    Form1.PrintForm
    NXSupport - Your one-stop source for computer help

  6. #6

    Thread Starter
    Addicted Member P.S.W.'s Avatar
    Join Date
    Aug 2000
    Posts
    146
    Err... next time read the first post please. I'm looking for alternatives to the .PrintForm method, i.e. API or some other procedure.

  7. #7
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    sorry

    I've found the thing that wossname was talking about:

    Code:
    Printer.PaintPicture
    but not yet sure how to use it
    NXSupport - Your one-stop source for computer help

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