Discussion Locked

Visual Basic 6.0 and printer codes?

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am new to programming and VB. I am trying to right a program that will allow me to send printer codes directly to the printer.
When I send my form to print, I actually get the printer codes on the printout instead of the actaul layout I designed.
Help.

2 replies

by csanosi

First, have you checked the printer drivers? Are they set to generic / text or to the correct driver for the printer?
Second, What kind of printer codes are you trying to send? Do you have some sample code?

by rene.bourgoin

The printer codes are for a Monrach bar code printer. The Printer control language is specific to this printer.
{F,1,A,R,E,338,150,"1HANTAG" |
T,1,6,V,119,105,0,512,1,1,B,C,0,2 |
R,5,K |
B,2,12,V,217,119,1,2,71,7,L,2 |
R,5,K |
C,248,128,0,1,1,1,B,L,0,2,"COLOR" |
T,3,3,V,248,54,0,1,1,1,B,L,0,2 |
R,5,K |
C,271,127,0,1,1,1,B,L,0,2,"SIZE" |
T,4,8,V,271,80,0,1,1,1,B,L,0,2 |
R,5,K |
T,5,8,V,316,101,0,1,1,1,B,L,0,2 |
R,5,K |
C,306,102,0,511,1,1,B,L,0,0,"$" |
}
{B,1,N,1|E,0,0,1,1,0,1 |When I print my form, I get the code above as a result instead of the bar code and label info. I need some kind of passthrough feature.

This discussion is closed to new replies.