Results 1 to 4 of 4

Thread: pictures

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Posts
    135
    Hi,
    Is there a way to print graphics in dos without an interface. Something like calling a program and at the command line typing the name of the picture file to print.. If there is a program or if this could be written in a dos programming language, eg c, pascal, etc then could u please reply.

    cheers

  2. #2
    Guest
    Code:
    Private Sub Form_Load()
        'If file exists then...
        If Dir$(Command) <> "" Then
            'Open the file
            Open Command For Input As #1
            MyString = Input(LOF(1), 1)
            Close #1
              
            'Print the file
            Printer.Print MyString
        End If
    
        'Exit the program
        Unload Me
    End Sub

  3. #3
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    Hmmm, I think that Jason B wanted to print PICTURES, instead of text files

    Private Sub Form_Load()
    'If file exists then print it
    If Dir$(Command) <> "" Then Printer.PaintPicture LoadPicture(Command), 0, 0
    'Exit the program
    Unload Me
    End Sub


    [Edited by Arcom on 12-16-2000 at 06:33 PM]

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Posts
    135

    Tricky Question using Print

    Hi...
    I'm currently using the method

    open "lpq1:" for output as #1

    print #1, "hello"

    close #1

    instead of using the printer.print "hello" method. The reason for this is that the above method does not perform a page feed at all. Need it to be like this because i have a receipt printer and would therfore keep line feeding which is not what i want. Is there a way to print Pictures using the open "lpq1:" method instead of using the printer.paintPicture loadpicture("logo.jpg") method? Or is there a way to use the printer.print method without it doing a page feed? Please let me know...

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