Solved

How to print .SPL file?

Posted on 2010-09-01
6
1,754 Views
Last Modified: 2013-12-17
I'm working on vb.net 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?
0
Comment
Question by:Vadim Rapp
  • 3
  • 2
6 Comments
 
LVL 16

Expert Comment

by:Stephan
Comment Utility
0
 
LVL 41

Expert Comment

by:graye
Comment Utility
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
http://www.undocprint.org/formats/winspool/spl
0
 
LVL 40

Author Comment

by:Vadim Rapp
Comment Utility
I asked UPS how to handle this format.

question
==========
 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?
==========

answer:
==========
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 www.zebra.com. 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.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 41

Expert Comment

by:graye
Comment Utility
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?
 
0
 
LVL 40

Author Comment

by:Vadim Rapp
Comment Utility
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 vs.net to copy the file to a device.
0
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 0 total points
Comment Utility
The following page has working class to do this:

http://www.codeproject.com/KB/vb/Print_Raw_Data.aspx
How The Raw Data is Printed
By Just Greeky Creek
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now