|
-
Dec 15th, 2000, 08:25 AM
#1
Thread Starter
Addicted Member
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, 04:56 PM
#2
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
-
Dec 16th, 2000, 06:29 PM
#3
Addicted Member
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]
-
Oct 8th, 2001, 03:59 AM
#4
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|