ref : How To Send a PCL or PostScript File Directly to a Printer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

ref : article ID 298141

Hi i have implement this part into my program, how do i recieve information
whether the printer has printed out correctly so that i can carry on to my
next phase?

is it all right if there is no indication on my windows when i start this
printing process, because it will be another week before i get my actual
printer. currently i have been testing it without a printer and when i run
the program, it would just end without showing anything, can i presume that
it would not show anyhting because it print directly to the printer bypassing
the driver?
 
how do i convert this to dot net form?

Open FILE_NAME For Binary As #1

' Calculate size of file and amount left over.
NumLoops = LOF(1) \ MaxSize
LeftOver = LOF(1) Mod MaxSize

For i = 1 To NumLoops
sWrittenData = Input(MaxSize, #1)
lReturn = WritePrinter(lhPrinter, ByVal sWrittenData, _
Len(sWrittenData), lpcWritten)
Next

' Grab what is left over.
If LeftOver <> 0 Then
sWrittenData = Input(LeftOver, #1)
lReturn = WritePrinter(lhPrinter, ByVal sWrittenData, _
Len(sWrittenData), lpcWritten)
End If

Close #1
lReturn = EndDocPrinter(lhPrinter)
lReturn = ClosePrinter(lhPrinter)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top