Results 1 to 3 of 3

Thread: [RESOLVED] printing into spaces on pre-printed form

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Location
    Texas
    Posts
    15

    Resolved [RESOLVED] printing into spaces on pre-printed form

    The title says what I am trying to do. The dot matrix printer does not load the printed form to exactly the same spot each time, so I have to have both a horizontal and a vertical adjustment before starting to print. In VB3 I printed a diagonal scale on the document, stopped, and adjusted the print location based on the points on the scale that hit a reference point on the document. But I can't get VB4 to print that scale and stop. When I use "enddoc" the page is ejected after the scale is printed. Any suggestions on how to print character(s) on the document then stop and allow the position of the subsequent printing to be adjusted based on where that character appears on the document? Or some other way to be sure I hit the right spaces with my printing?

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: printing into spaces on pre-printed form

    There's no way to send print to the printer until EOJ so the best you can do is to adjust and then reload the already printed on sheet or waste another sheet.

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: printing into spaces on pre-printed form

    can you put marks on the printer then align the paper to the marks each time?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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