Results 1 to 3 of 3

Thread: Printer...Urgent

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 1999
    Location
    India
    Posts
    73

    Post

    can anyone tell me how can I stop a printer at specified point...basically I want to use custom paper size but the problem is I am using a dot matrix printer object of this printer not allowing me to set the custom size for the paper. Can anyone help me in this.
    Thanx Manish

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Apr 1999
    Location
    India
    Posts
    73

    Post

    HI
    THIS IS NT WHAT I WANT...LET SAY I HAVE A PAGE HVING HEIGHT 6 INCHES... SO WHEEVRE I I SEND A PRINTER.ENDDOC IT SHLD STOP AT THE PAGE LENGTH SPECIFIED I CAN'Y USE THAT OPEN FILE METHOD BCZ THE TEXT WHICH I WANT TO PRINT IN THAT IN DIFF FONT AN DIF I USE THIS METHOD IT WILL PRINT THE DATA IN THE DEFAULT FONT.

  3. #3
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    You could bypass the Printer Object and Print Directly to the Printer Port, eg.
    Code:
    Dim iFile As Integer
    iFile = FreeFile
    Open "LPT1:" For Output As iFile
    Print #iFile, "Line of Printed Text"
    Close iFile

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

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