problems printing on a zebra printer with printer.print 
Author Message
 problems printing on a zebra printer with printer.print

My zebra printer is configured as a serial printer to my win98
computer.
I try to print text on the printer with the command printer.print

When i do this the printer gets a command (light goes on on the
printer) but nothing is being printed.

I know the codes are right ^XA en ^XZ because another person in the
past did it within visual foxpro.

I try now in Visual Basic 6.0. So printer and al the rest did not
change.

They told me that i had to add after the ^XZ  the command
printer.enddoc and then the printer would begin to print.

I tryed again but nothing happens.

What Could i be doing wrong.

I do everything with printer.print "....."
printer.print "^XZ"
printer.print enddoc
at the end but nothing has been print.



Fri, 13 May 2005 23:44:56 GMT  
 problems printing on a zebra printer with printer.print
Christine

It should be

Printer.EndDoc

regards

Ian

** invalid email address, change dk to denmark

Tips & Tricks page http://tips.kingsoft-denmark.com/


Quote:
> My zebra printer is configured as a serial printer to my win98
> computer.
> I try to print text on the printer with the command printer.print

> When i do this the printer gets a command (light goes on on the
> printer) but nothing is being printed.

> I know the codes are right ^XA en ^XZ because another person in the
> past did it within visual foxpro.

> I try now in visual basic 6.0. So printer and al the rest did not
> change.

> They told me that i had to add after the ^XZ  the command
> printer.enddoc and then the printer would begin to print.

> I tryed again but nothing happens.

> What Could i be doing wrong.

> I do everything with printer.print "....."
> printer.print "^XZ"
> printer.print enddoc
> at the end but nothing has been print.



Sat, 14 May 2005 14:47:03 GMT  
 problems printing on a zebra printer with printer.print
Ian,

Sorry,
I already changed to printer.endDoc but the lights  flikker but no  label
(no printing self)

Christine


Quote:
> Christine

> It should be

> Printer.EndDoc

> regards

> Ian

> ** invalid email address, change dk to denmark

> Tips & Tricks page http://tips.kingsoft-denmark.com/



> > My zebra printer is configured as a serial printer to my win98
> > computer.
> > I try to print text on the printer with the command printer.print

> > When i do this the printer gets a command (light goes on on the
> > printer) but nothing is being printed.

> > I know the codes are right ^XA en ^XZ because another person in the
> > past did it within visual foxpro.

> > I try now in visual basic 6.0. So printer and al the rest did not
> > change.

> > They told me that i had to add after the ^XZ  the command
> > printer.enddoc and then the printer would begin to print.

> > I tryed again but nothing happens.

> > What Could i be doing wrong.

> > I do everything with printer.print "....."
> > printer.print "^XZ"
> > printer.print enddoc
> > at the end but nothing has been print.



Sat, 14 May 2005 16:20:00 GMT  
 problems printing on a zebra printer with printer.print
maybe foxpro was translating that ^ character...

instead of

^XA en ^XZ

try this

chr$(27) & "XA"
chr$(27) & "XZ"

no idea if thats the real intention...
just shooting in the dark while draining a beer...

D.


Quote:
> Ian,

> Sorry,
> I already changed to printer.endDoc but the lights  flikker but no  label
> (no printing self)

> Christine



> > Christine

> > It should be

> > Printer.EndDoc

> > regards

> > Ian

> > ** invalid email address, change dk to denmark

> > Tips & Tricks page http://tips.kingsoft-denmark.com/



> > > My zebra printer is configured as a serial printer to my win98
> > > computer.
> > > I try to print text on the printer with the command printer.print

> > > When i do this the printer gets a command (light goes on on the
> > > printer) but nothing is being printed.

> > > I know the codes are right ^XA en ^XZ because another person in the
> > > past did it within visual foxpro.

> > > I try now in visual basic 6.0. So printer and al the rest did not
> > > change.

> > > They told me that i had to add after the ^XZ  the command
> > > printer.enddoc and then the printer would begin to print.

> > > I tryed again but nothing happens.

> > > What Could i be doing wrong.

> > > I do everything with printer.print "....."
> > > printer.print "^XZ"
> > > printer.print enddoc
> > > at the end but nothing has been print.



Sat, 14 May 2005 16:32:06 GMT  
 problems printing on a zebra printer with printer.print
It must be something with : sending an end of .... statement to start
effective printing.

In visual foxpro it works like
set print on
print "^XA"
...
print "^XZ"
set print off
set printer to default.

and then it works.

Trying to find the alternative in VB 6.0
set print on (i am seraching for this)
set print off ( i think printer.enddoc)
set printer to default (still searching)

The printer is set as a generic text printer on com1(no drivers of the zebra
printers for the w98 for faster  speed printing)

the ^xa codes are the correct ones to send the statements to the printer.

Christine


Quote:
> maybe foxpro was translating that ^ character...

> instead of

> ^XA en ^XZ

> try this

> chr$(27) & "XA"
> chr$(27) & "XZ"

> no idea if thats the real intention...
> just shooting in the dark while draining a beer...

> D.



> > Ian,

> > Sorry,
> > I already changed to printer.endDoc but the lights  flikker but no
label
> > (no printing self)

> > Christine



> > > Christine

> > > It should be

> > > Printer.EndDoc

> > > regards

> > > Ian

> > > ** invalid email address, change dk to denmark

> > > Tips & Tricks page http://tips.kingsoft-denmark.com/



> > > > My zebra printer is configured as a serial printer to my win98
> > > > computer.
> > > > I try to print text on the printer with the command printer.print

> > > > When i do this the printer gets a command (light goes on on the
> > > > printer) but nothing is being printed.

> > > > I know the codes are right ^XA en ^XZ because another person in the
> > > > past did it within visual foxpro.

> > > > I try now in visual basic 6.0. So printer and al the rest did not
> > > > change.

> > > > They told me that i had to add after the ^XZ  the command
> > > > printer.enddoc and then the printer would begin to print.

> > > > I tryed again but nothing happens.

> > > > What Could i be doing wrong.

> > > > I do everything with printer.print "....."
> > > > printer.print "^XZ"
> > > > printer.print enddoc
> > > > at the end but nothing has been print.



Sat, 14 May 2005 17:32:54 GMT  
 problems printing on a zebra printer with printer.print
Here's another shot in the dark,, (no beer though ;))
Have you tried

Printer.Print "....." & vbCrLf

Quote:

>maybe foxpro was translating that ^ character...

>instead of

>^XA en ^XZ

>try this

>chr$(27) & "XA"
>chr$(27) & "XZ"

>no idea if thats the real intention...
>just shooting in the dark while draining a beer...

>D.



>> Ian,

>> Sorry,
>> I already changed to printer.endDoc but the lights  flikker but no  label
>> (no printing self)

>> Christine



>> > Christine

>> > It should be

>> > Printer.EndDoc

>> > regards

>> > Ian

>> > ** invalid email address, change dk to denmark

>> > Tips & Tricks page http://tips.kingsoft-denmark.com/



>> > > My zebra printer is configured as a serial printer to my win98
>> > > computer.
>> > > I try to print text on the printer with the command printer.print

>> > > When i do this the printer gets a command (light goes on on the
>> > > printer) but nothing is being printed.

>> > > I know the codes are right ^XA en ^XZ because another person in the
>> > > past did it within visual foxpro.

>> > > I try now in visual basic 6.0. So printer and al the rest did not
>> > > change.

>> > > They told me that i had to add after the ^XZ  the command
>> > > printer.enddoc and then the printer would begin to print.

>> > > I tryed again but nothing happens.

>> > > What Could i be doing wrong.

>> > > I do everything with printer.print "....."
>> > > printer.print "^XZ"
>> > > printer.print enddoc
>> > > at the end but nothing has been print.

Have a good day...

Don



Sat, 14 May 2005 22:43:35 GMT  
 problems printing on a zebra printer with printer.print
Hi
Could be ^X = ctrl-X wich is chr$(23) so U would do

print chr$(23) & "A"
....
print chr$(23) & "Z"

/Henning



Quote:
> It must be something with : sending an end of .... statement to start
> effective printing.

> In visual foxpro it works like
> set print on
> print "^XA"
> ...
> print "^XZ"
> set print off
> set printer to default.

> and then it works.

> Trying to find the alternative in VB 6.0
> set print on (i am seraching for this)
> set print off ( i think printer.enddoc)
> set printer to default (still searching)

> The printer is set as a generic text printer on com1(no drivers of the
zebra
> printers for the w98 for faster  speed printing)

> the ^xa codes are the correct ones to send the statements to the printer.

> Christine



> > maybe foxpro was translating that ^ character...

> > instead of

> > ^XA en ^XZ

> > try this

> > chr$(27) & "XA"
> > chr$(27) & "XZ"

> > no idea if thats the real intention...
> > just shooting in the dark while draining a beer...

> > D.



> > > Ian,

> > > Sorry,
> > > I already changed to printer.endDoc but the lights  flikker but no
> label
> > > (no printing self)

> > > Christine



> > > > Christine

> > > > It should be

> > > > Printer.EndDoc

> > > > regards

> > > > Ian

> > > > ** invalid email address, change dk to denmark

> > > > Tips & Tricks page http://tips.kingsoft-denmark.com/



> > > > > My zebra printer is configured as a serial printer to my win98
> > > > > computer.
> > > > > I try to print text on the printer with the command printer.print

> > > > > When i do this the printer gets a command (light goes on on the
> > > > > printer) but nothing is being printed.

> > > > > I know the codes are right ^XA en ^XZ because another person in
the
> > > > > past did it within visual foxpro.

> > > > > I try now in visual basic 6.0. So printer and al the rest did not
> > > > > change.

> > > > > They told me that i had to add after the ^XZ  the command
> > > > > printer.enddoc and then the printer would begin to print.

> > > > > I tryed again but nothing happens.

> > > > > What Could i be doing wrong.

> > > > > I do everything with printer.print "....."
> > > > > printer.print "^XZ"
> > > > > printer.print enddoc
> > > > > at the end but nothing has been print.



Sun, 15 May 2005 01:33:31 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Printing ZPL Files to Zebra printer on Network

2. Printing ZPL Files to Zebra printer on Network

3. Printing ZPL Files to Zebra printer on Network

4. Printing ZPL Files to Zebra printer on Network

5. Printing ZPL Files to Zebra printer on Network

6. Printing to Zebra printers

7. Problems with Printer.Line and Printer.Print methods

8. Problem printing to printer wich is not the default printer

9. Problem in VB6.0 + Crystal Reports 8 + Zebra Printer + Windows 98SE

10. Q: Printing report on non-default printer w/o user selecting printer

11. Macro that selects printer and prints doc also changes default printer

12. Printer.Print and printer control codes?

 

 
Powered by phpBB® Forum Software