New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions Bookmark and Share
zhanga4

Generated Barcode image widthX and heightY stays the same though the ratio has been changed

Barcode Value to be encoded:
pagetype=Document,documenttitle=ABC,documenttype=SignatureCard,
documentsubtype=513828,producttypecd=PDA,opendt=2012/03/22,printeddt=2012/03/22,pagetotal=1,pageno=1,locationno=01020,arrangementno=0001868

X to Y = 3

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:barcode="urn://wsc.td.com/barcode/2011/09/09">
<soapenv:Header/>
<soapenv:Body>
<barcode:generateBarcodeRequest xsi:schemaLocation="urn://wsc.td.com/
barcodeindex/2011/09/09 ../generateBarcodeRequest.xsd " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<barcode:barcodes>
<barcode:barcodeValue Id="A2">
<barcode:value>pagetype=Document,documenttitle=ABC,documenttype=
SignatureCard,documentsubtype=513828,producttypecd=PDA,opendt=2012/03/22,
printeddt=201/03/22,pagetotal=1,pageno=1,locationno=01020,arrangementno=0001868
</barcode:value>
</barcode:barcodeValue>
</barcode:barcodes>
<!--Optional:-->
<barcode:options>
<!--1 or more repetitions-->
<barcode:option name="errorCorrectionLevel">5</barcode:option>
<barcode:option name="numRows">25</barcode:option>
<barcode:option name="numColumns">20</barcode:option>
<barcode:option name="widthX">0.03</barcode:option>
<barcode:option name="heightY">0.09</barcode:option>
<barcode:option name="resolutionDPI">100</barcode:option>
</barcode:options>
<barcode:generationUserId>TestUser</barcode:generationUserId>
<barcode:generationTime>2010-10-22T11:26:21-04:00</barcode:generationTime>
<barcode:purgeDate>2010-10-22</barcode:purgeDate>
</barcode:generateBarcodeRequest>
</soapenv:Body>
</soapenv:Envelope>


X to Y = 5

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:barcode="urn://wsc.td.com/barcode/2011/09/09">
<soapenv:Header/>
<soapenv:Body>
<barcode:generateBarcodeRequest xsi:schemaLocation="urn://wsc.td.com/barcodeindex
/2011/09/09 ../generateBarcodeRequest.xsd " xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance">
<barcode:barcodes>
<barcode:barcodeValue Id="A2">
<barcode:value>pagetype=Document,documenttitle=ABC,documenttype=
SignatureCard,documentsubtype=513828,producttypecd=PDA,opendt=2012/03/22,
printeddt=201/03/22,pagetotal=1,pageno=1,locationno=01020,arrangementno=
0001868</barcode:value>
</barcode:barcodeValue>
</barcode:barcodes>
<!--Optional:-->
<barcode:options>
<!--1 or more repetitions-->
<barcode:option name="errorCorrectionLevel">5</barcode:option>
<barcode:option name="numRows">25</barcode:option>
<barcode:option name="numColumns">20</barcode:option>
<barcode:option name="widthX">0.03</barcode:option>
<barcode:option name="heightY">0.15</barcode:option>
<barcode:option name="resolutionDPI">100</barcode:option>
</barcode:options>
<barcode:generationUserId>TestUser</barcode:generationUserId>
<barcode:generationTime>2010-10-22T11:26:21-04:00</barcode:generationTime>
<barcode:purgeDate>2010-10-22</barcode:purgeDate>
</barcode:generateBarcodeRequest>
</soapenv:Body>
</soapenv:Envelope>
whatever value I use for heightY I get the exact barcode
heightY should control the height of the bars in the barcode
Please advise the reason.


04-03-12     2700 day(s) ago    

  Report Abuse

 

Ben

Best Answer

You can set the XToYRatio directly. If you are trying to control the XToYRatio, use:
XtoYRatio

public double XtoYRatio

The X multiple height of individual cells; default=3, usually 2 to 4 times X (make as small as possible, some scanners cannot read less than 3 or 4).

See Also:

setXtoYRatio(double newRatio), getXtoYRatio(),

Posted 2699 day(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.

Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2019 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook