Steve, what version are you using and have you used the "Content-Type HTTP header" to send the command(s)?
Beverly On 12 Oct 2011, at 9:34 AM, Stefan Gonick wrote: > I think that the only solution that gives you complete control over > the printing > process on the web is to generate PDF files on the fly. > > Stefan > > At 10:18 PM 10/11/2011, you wrote: >> The docs are pretty sketchy or I don't quite understand them. They >> are as follows. It does indicate that the settings will stay in >> effect until ESC @, printer reset or power cycling is executed. >> >> I think the first two parts of the command are pretty straight >> forward - GS and L in ASCII, Hex or Decimal. Not sure about the last >> two numbers. I was going to use 0 (zero) and 0 hoping to set the >> margin all the way to the left and then testing. Not sure if commas, >> spaces or no spaces should separate the four components. >> >> Do you think if I created a txt file with the four components and >> then printed the text file, that would work? I am not sure how else >> to send the command to the printer. >> >> Bixolon SRP-350II printer >> >> 2-1 Command Description Items >> Command >> Function: Command function outline >> Code: Command format expressed in ASCII, hexadecimal, and decimal codes >> Range: Argument value (Setting range) for the command >> Default: Initial argument value for the command >> Description: Detailed command function description >> Remarks: Additional information about using the command >> Differences: Variations depending on the printer model >> >> 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. >> Printable area >> Left margin Printing area width >> Differences: None >> >> -----Original Message----- >> From: BEVERLY VOTH [mailto:beverlyv...@gmail.com] >> Sent: Tuesday, October 11, 2011 9:51 AM >> To: Witango-Talk@witango.com >> Subject: Re: Witango-Talk: Receipt Printer >> >> Yes, typically these codes are sent in a "header" (before a page is >> displayed). >> or send the codes and then create the page (two steps). It seems the >> instructions may suggest that it "sticks" under certain conditions. >> >> Beverly >> >> On 11 Oct 2011, at 10:46 AM, Robert Shubert wrote: >> >>> 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:stevefogel...@askics.net] >>> Sent: Tuesday, October 11, 2011 12:02 AM >>> To: Witango-Talk@witango.com >>> Subject: RE: Witango-Talk: Receipt Printer >>> >>> Hi Beverly, >>> >>> Tried both. Didn’t help. >>> >>> Kinda stuck. >>> >>> Thanks >>> >>> Steve >>> >>> From: Beverly Voth [mailto:beverlyv...@gmail.com] >>> Sent: Sunday, October 09, 2011 10:14 AM >>> To: Witango-Talk@witango.com >>> 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" >> <stevefogel...@askics.net> 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:beverlyv...@gmail.com] >>> Sent: Sunday, October 09, 2011 7:34 AM >>> To: Witango-Talk@witango.com >>> 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" >> <stevefogel...@askics.net> wrote: >>> >>> None except >>> >>> <style media="print"> >>> <!-- p.page { page-break-before: always } >>> //--></style> >>> </head> >>> <body onload="window.print();"> >>> >>> >>> From: Beverly Voth [mailto:beverlyv...@gmail.com] >>> Sent: Saturday, October 08, 2011 10:50 PM >>> To: Witango-Talk@witango.com >>> 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" >> <stevefogel...@askics.net> 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 >> lists...@witango.com with "unsubscribe witango-talk" in the body. >>> >>> To unsubscribe from this list, please send an email to >> lists...@witango.com with "unsubscribe witango-talk" in the body. >>> To unsubscribe from this list, please send an email to >> lists...@witango.com with "unsubscribe witango-talk" in the body. >>> >>> To unsubscribe from this list, please send an email to >> lists...@witango.com with "unsubscribe witango-talk" in the body. >>> To unsubscribe from this list, please send an email to >> lists...@witango.com with "unsubscribe witango-talk" in the body. >>> >>> To unsubscribe from this list, please send an email to >> lists...@witango.com with "unsubscribe witango-talk" in the body. >>> To unsubscribe from this list, please send an email to >> lists...@witango.com with "unsubscribe witango-talk" in the body. >>> >>> To unsubscribe from this list, please send an email to >> lists...@witango.com with "unsubscribe witango-talk" in the body. >> >> >> >> ---------------------------------------- >> >> To unsubscribe from this list, please send an email to >> lists...@witango.com with "unsubscribe witango-talk" in the body. >> >> >> >> ---------------------------------------- >> >> To unsubscribe from this list, please send an email to >> lists...@witango.com with "unsubscribe witango-talk" in the body. > > ===================================================== > Database WebWorks: Dynamic web sites through database integration > http://www.DatabaseWebWorks.com > > > > ---------------------------------------- > > To unsubscribe from this list, please send an email to lists...@witango.com > with "unsubscribe witango-talk" in the body. > ---------------------------------------- To unsubscribe from this list, please send an email to lists...@witango.com with "unsubscribe witango-talk" in the body.