Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Getting the labels in correct format</strong></p> <p>The FedEx &amp; UPS APIs provide options to get thermal label specific types. You will beat your head on the keyboard trying to get PDFs to print properly on thermal printers.</p> <p>Some common thermal types EPL/EPL2, ZPL/ZPLII. Most thermal printers will accept documents matching one of these types.</p> <p>For Fedex something like this in your ShipRequest - This is using the FedEx WSDL for shipping.</p> <pre><code>RequestedShipment.LabelSpecification.ImageType = FedExShipService.LabelSpecificationImageType.ZPLII </code></pre> <p>And UPS - Building XML to post to the UPS service.</p> <pre><code>&lt;LabelSpecification&gt; &lt;LabelPrintMethod&gt; EPL2 &lt;/LabelPrintMethod&gt; &lt;/LabelSpecification&gt; </code></pre> <p><strong>Printing the labels</strong></p> <p>You will need to essentially send "raw" data to the printer. I started with this article and adopted it to my solution. FedEx for example returns a byte array which contains the label information - I convert this to a string and then send to the printer.</p> <pre><code>'Convert from Byte Array to String Dim enc As System.Text.ASCIIEncoding = New System.Text.ASCIIEncoding() Dim strConverter As String = enc.GetString(&lt;ByteArrayFromFedEx&gt;) </code></pre> <p><a href="http://www.paulaspinall.com/post/2008/05/31/Sending-data-direct-to-a-printer.aspx" rel="nofollow noreferrer">http://www.paulaspinall.com/post/2008/05/31/Sending-data-direct-to-a-printer.aspx</a></p> <p>There is also another thread on SO about this topic.</p> <p><a href="https://stackoverflow.com/questions/123154/sending-raw-data-to-fedex-label-printer">Sending raw data to FedEx Label printer</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload