How to print .SPL file?

Posted on 2010-09-01
Last Modified: 2013-12-17
I'm working on application using UPS shipping API to ship packages. The API returns to the application the image of the generated shipping label in SPL format, as string. How to print it out?
Question by:Vadim Rapp
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 16

Expert Comment

ID: 33583948
LVL 41

Expert Comment

ID: 33586857
Wow... that's a bit strange.  The SPL file is not normally used by user-mode applications.   Instead, its typically generated by the print driver itself and placed into the printer spool.
I guess you could try to just copy the file into the spool directory, to see if that works... but dang, that's a bit strange.
Take a look at the utilities at the bottom of this article.  You should be able to view the spool file with them 
LVL 40

Author Comment

by:Vadim Rapp
ID: 33592298
I asked UPS how to handle this format.

 The documentation says (Shipping Package Web Services Developers Guide, 1.8.1. page 56): "Label print method code that the Labels are to be generated for EPL2 formatted Labels use EPL, for SPL formatted Labels use SPL, for ZPL formatted Labels use ZPLage formats use GIF, for Star Printer format formatted Labels use STARPL."

I'm not familiar with either of these terms,. Where can I read what is EPL2 formatted labels, what is SPL, ZPL, and Star Printer?

Please note that EPL, EPL2 and ZPL are printer programming languages used with the Zebra thermal printers. You can find information about the languages on SPL is for the Samsung thermal printer and you will need to search the internet for information on printing using the format.

SPL, specifically, stands for Samsung Printer Language.

Anyways, whatever is in the file, apparently I need to copy the file to the printer, an equivalent of command copy /b file.spl lpt1. How to do this in visual studio? The link provided in ID:33583948 tells how to print line by line, this is not what's needed in this case.
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

LVL 41

Expert Comment

ID: 33593031
The first thing I'd try is to just place the file into the spool directory.... by hand.   The normal location is %systemroot%\system32\spool If that works, then we can easily write code to automate that task.   Does it also generate an SHD file?
Did you look at that link?
LVL 40

Author Comment

by:Vadim Rapp
ID: 33593188
Placing the file into the directory did not work. Besides, if computer has more than one printer, how would it know which one to print at? and what if I want to print on network printer? I can't imagine there's no "standard" way for to copy the file to a device.
LVL 40

Accepted Solution

Vadim Rapp earned 0 total points
ID: 33593389
The following page has working class to do this:
How The Raw Data is Printed
By Just Greeky Creek

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question