PDA

Click to See Complete Forum and Search --> : pictures


Jason B
Dec 15th, 2000, 07:25 AM
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

Dec 15th, 2000, 03:56 PM
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

Arcom
Dec 16th, 2000, 05:29 PM
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]

Jason B
Oct 8th, 2001, 03:59 AM
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...