Steve,


Are you sure you can send those codes in the content of the page? Normally they 
are sent as control characters in some special way.



Are the full docs for the printer available?



Robert



From: Fogelson, Steve [mailto:[email protected]]
Sent: Tuesday, October 11, 2011 12:02 AM
To: [email protected]
Subject: RE: Witango-Talk: Receipt Printer



Hi Beverly,



Tried both. Didn’t help.



Kinda stuck.



Thanks



Steve



  _____

From: Beverly Voth [mailto:[email protected]]
Sent: Sunday, October 09, 2011 10:14 AM
To: [email protected]
Subject: Re: Witango-Talk: Receipt Printer



did you try the dec:

<@char code="29">

or hex:

<@char code="1D">

instead of "GS"?

-- sent from my iPhone4 --

Beverly Voth

--


On Oct 9, 2011, at 10:36 AM, "Fogelson, Steve" <[email protected]> wrote:

Hi Beverly,



I tried the following and it didn’t change anything. I also tried it with 
margin 0px 0px 0px -100px



<style media="print">

<!--

body, p {margin 0px 0px 0px 0px; padding 0px 0px 0px 0px;}

p.page { page-break-before: always }

//-->

</style>



I was also reading the docs (below) for the printer and read that you could set 
the left hand margin by sending a series of codes to the printer. I tried the 
following.

<@char code="GS"><@char code="L">00

I included this in the html and printed it with no luck. I tried it with commas 
between the zeroes. I also wanted to “open the cash drawer” with the following

<@char code="DLE"><@char code="DC4">104



The docs aren’t clear on how to send the codes.



I would much prefer to do this with a style sheet. Not sure why it doesn’t work.



Thanks



Steve



Function: Set left margin

Code: ASCII GS L nL nH

Hex 1D 4C nL nH

Decimal 29 76 nL nH

Range: 0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255

Default: (nL + nH x 256)=0 (nL=0, nH=0)

Description: This command sets the left margin specified to [(nL + nH x 256) x 
(horizontal motion units)].

Remarks: ■ The left margin is not effective in page mode. If the left margin is 
enabled in page mode, the setting is available when the printer returns to 
standard mode.

■ When the setting is beyond the printable area, the left margin is 
automatically set to the maximum value of the printable area.

■ Since the left margin is the same as the leftmost side of the printable area, 
the left side of the printable area is changed according to the left margin 
specified.

■ The setting of this command remains effective until ESC @, printer reset or 
power cycling is executed.





  _____

From: Beverly Voth [mailto:[email protected]]
Sent: Sunday, October 09, 2011 7:34 AM
To: [email protected]
Subject: Re: Witango-Talk: Receipt Printer



the default for body is to have margins (implied). you may have to set them to 
0 (or even negative?):



body, p { margin: 0px; padding: 0px; }



while the 'px' is not required on the '0' I use it for consistency. (allows me 
to debug or change the values more easily).



I don't know if a negative value (margin-left: -50px for example) would allow 
the printing to start to the correct position. you'll have to test on your 
printer. and only the p probably needs it.

-- sent from my iPhone4 --

Beverly Voth

--


On Oct 8, 2011, at 11:54 PM, "Fogelson, Steve" <[email protected]> wrote:

None except



<style media="print">

<!-- p.page { page-break-before: always }

//--></style>

</head>

<body onload="window.print();">





  _____

From: Beverly Voth [mailto:[email protected]]
Sent: Saturday, October 08, 2011 10:50 PM
To: [email protected]
Subject: Re: Witango-Talk: Receipt Printer



steve, what CSS are you using in the HTML?

-- sent from my iPhone4 --

Beverly Voth

--


On Oct 8, 2011, at 10:53 PM, "Fogelson, Steve" <[email protected]> wrote:

I am trying to print receipts to a Bixolon SRP-350II receipt printer. The paper 
is about 3 ½ inches wide. I displayed a html page 350 pixels wide with a 
Witango taf and printed to the printer but the left hand margin was defaulted 
to about 1 inch wide, so part of the display does not print. I don’t want to 
have to have the user go into “Print Preview” and adjust the margins so the 
entire width of the doc will print.



I did some research on JavaScript to see if I could set margins that way. No 
joy!



Any ideas?



Thanks



Steve Fogelson



  _____

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.



  _____

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.

  _____

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.



  _____

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.

  _____

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.



  _____

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.

  _____

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.



----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.

Reply via email to