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(lh Printer, ByVal sWrittenData, _
Len(sWrittenDat a), lpcWritten)
Next
' Grab what is left over.
If LeftOver <> 0 Then
sWrittenData = Input(LeftOver, #1)
lReturn = WritePrinter(lh Printer, ByVal sWrittenData, _
Len(sWrittenDat a), lpcWritten)
End If
Close #1
lReturn = EndDocPrinter(l hPrinter)
lReturn = ClosePrinter(lh Printer)
"notregiste r" wrote:
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?