473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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

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?


Nov 21 '05 #1
1 2590

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)

"notregister" 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?

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Arthur | last post by:
Hi Everyone, I'm having a real hard time with this. Maybe some smarter people can assist. I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be able to print Postscript, bold,...
4
by: Yash Sharma | last post by:
I am planning to propose an XML vocabulary at a consortium. It is aimed to substitute PostScript as a printing standard. I wish to know if there was any parallel effort similar to this, and also a...
1
by: Michael Kilpatrick | last post by:
I'm writing a command-line PHP script that gets executed by a virtual printer (a redirected port using the Redmon tool). The PHP modifies the Postscript data before forwarding it to the real...
13
by: Susan Beebe | last post by:
I have downloaded the code described in Microsoft article Q154078. I am trying to send raw ZPL (zebra barcode printer) code from Microsoft access. It works just fine if I hard code the actual...
0
by: tSureZureGuza | last post by:
Hi, I need to read a stream and convert this to postscript. I can't use ghostScript since ghostscript needs the file to be specified, I need someting that accepts a stream of pdf data and convert...
1
by: Uwe Schmitt | last post by:
Hi, I am trying to print raw postscript data on windows. win32print should do the work like this: h=win32print.OpenPrinter(name) win32print.StartDocPrinter(h, 1, ("", "", "RAW"))...
1
by: Hector M Banda | last post by:
Hi all, Need advice on how to send output to a tiket printer using VB2005. I cannot figure out how to send scape sequences to change fonts, etc. I am using a generic printer driver but no luck....
1
by: remya1000 | last post by:
how to send a .txt file to a printer. after creating a .txt file i need to send that .txt file to a printer.using vb.net and while sending that file to printer i need to tell, which printer i need...
1
by: Peter Afonin | last post by:
Hello, I'm using Crystal Reports for Visual Studio 2005. I'm trying to print my reports to the postscript file: PrinterSettings ps = new PrinterSettings(); ps.PrinterName = "HP Deskjet 3840...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.