473,405 Members | 2,334 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,405 software developers and data experts.

printing a macro in vb.net

I am trying to print a macro which is really just a bunch
of pcl code that represents a form of mine to the
printer. I have been able to do this using the
winspool.drv api calls so that I can send the macro byte
by byte to the printer.

The problem is the printer views this as a print job
rather than a macro that should be loaded into printer
memory. So after a minute or two it delets and or spits
out the printjob rather than keeping the macro loaded in
printer memory. In Dos you could just load the macro and
then turn it on and off by sending control sequences to
the printer. Is there a way to do this in windows with
vb.net
Nov 20 '05 #1
1 1164
-----Original Message-----
I am trying to print a macro which is really just a bunch
of pcl code that represents a form of mine to the
printer. I have been able to do this using the
winspool.drv api calls so that I can send the macro byte
by byte to the printer.

The problem is the printer views this as a print job
rather than a macro that should be loaded into printer
memory. So after a minute or two it delets and or spits
out the printjob rather than keeping the macro loaded in
printer memory. In Dos you could just load the macro and
then turn it on and off by sending control sequences to
the printer. Is there a way to do this in windows with
vb.net
.


I've done a little more research I think what I am looking
for is called passthrough it was mentioned for some early
development work... What I can't find is how I would do
that in vb.net

thanks
Nov 20 '05 #2

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

Similar topics

3
by: stan | last post by:
I am working on some documentation in html format and I would really like to display the date the html file, itself was modified. I am writing my documentation in vi and the html server involved is...
6
by: Rex Eastbourne | last post by:
Hi all, I've written the following simple macro called debug(aname, avalue) that prints out the name of an expression and its value: def debug(aname, avalue): print aname, 'is':...
1
by: Steven Stewart | last post by:
I have a user who has been using Excel for a while to keep statistics and print reports. She finds using it cumbersome because of long formulas and a lot of copying and pasting. I have designed...
1
by: Marc | last post by:
Can anyone help me! I'm trying to create an automatic printing process involving an Access database, at present I have 9 different reports set out, what I want is each report to print out using...
10
by: junky_fellow | last post by:
I am trying to print the offset of a particulat member in a structure, but it's not working. I am using the following expression to print the offset. &(struct my_struct *)0->member_name ...
1
by: Mullin Yu | last post by:
i want to know more about the practical case regarding the above case. 1. can i open the object without enabling the macro due to security reason? 2. can i detect Microsoft Office objects having...
4
by: Tom Leylan | last post by:
Are we past the point when we need to print source code? I'm having two problems. The most important one is that opening a .vb file and simply printing it _does_ print the source but code...
0
by: m23 | last post by:
Hi, I have an access 2000 application that is run as an mde from CITRIX. Each user running the application gets their own copy of the mde. access is just used as the front end forms the actual...
4
by: cobolguy | last post by:
I have a report that I run from a Macro. This macro executes when you click the printer icon button on the form. The macro is simple: 1. open report 2. printout 3. close report . All this works fine...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.