Need a way to send a command control string to printer.

I am trying to print a USPS intelligent barcode (IBC) on a postcard size bill. The post card is approxiamtely 70 characters in width and 2-up. The command string that needs to be sent to the printer to print the IBC is 27 characters in length. The remaining data (data that actually needs to be barcoded) is 33 characters making the strin a total of 60 characters. My problem and questions is "How do I define a print field that will hold all 60 characters and allow me control over the area/position where the barcode is printed?". The IBC print position must conform to USPS Template Standards. Could someone please help me with this?

Hi,
Java card does not support string and char types. if you want to send string/chars for example 'Hello World' to the card and store them then you need to convert them into hex format and then send the converted hex string to the card.
The command APDU will be then,
CLA  --- Your class byte, can be 80
INS  --- Your Ins byte, can be 01
P1   --- Parameter P1 can be 00
P2   --- Parameter P2 can be 00
LC   --- Length of Hello World hex string (0B)
Data --- Hellow World Hex String (48656c6c6f20576f726c64)
Le -- 00

Similar Messages

  • Is there a way to send external commands to a program running via JWS?

    Basically, I want a COM object to be able to send a command to my java program launched as a JWS app to minimize/hide windows or quit the program. Is there an API or any way to go about doing this?

    >
    Thanks, that does what I am looking for. >You're welcome.
    >
    However, if I launch the same jar with a different jnlp, i.e. a jnlp that specifies a different list of properties, those properties do not get set when launching the second jnlp >Huh? Do you mean properties or arguments? The arguments of the app. might get replaced. But as far as I understand, properties are unaffected. But in any case..
    >
    ..if the jar implements the SingleInstance. is there a way to fix that?>..I think this is a separate problem, for a new thread.
    On that new thread, it might be helpful to describe the problem if you can provide an URL to a demo, or better still, a downloadable build file, like the SingleInstanceService example offers*.
    One thing to consider is to not implement the SIS, but instead to have each Java app. instance try to connect to a prearranged socket as a client. If it fails, it claims a ServerSocket on that port, ready for any other instances to connect as clients. The first instance then handles all information coming from the COM object and passes it on to the relevant application instance.
    A complicating factor in that approach is to ensure that the first instance (with the socket management) does not shut down while other instances are on-screen and will potentially still need access to it.
    Of course for that scenario, each Java app. will have a socket for connecting to the manager, but the server app. will need a multi-threaded socket to accept the client(s) and a separate socket for the COM object.
    * <http://www.physci.org/jws/singleapp.zip>

  • Any way to send CTRL commands to external visualization software?

    I recently purchased G-Force for iTunes on Windows (www.soundspectrum.com), and found out after I purchased it that iTunes doesn't send CTRL commands to visualizations, so essentially I can't do any cool stuff with this software I just bought. Is there any way around this?

    The only thing soundspectrum says about it is: "Note: iTunes for Windows doesn’t pass CTRL keystrokes or mouse clicks to plugins, so G-Force control is limited." Can't find anything on Google, which is why I'm here.

  • Sending a document by  KM "send to" command using lotus notes

    Dear Colleagues,
    We have a Lotus Notes server xyz.wdf.sap.corp and we have some inotes email addresses configured on this server which run with URL xyz.wdf.sap.corp:<Port>/webmailredirect.nsf and we want to configure KM in such a way that "send to" command sends the email notification to the users who have lotus notes email addresses on this server. I created channels etc as mentioned in help.sap.com but it still doesnt send email. I always get an error "mail cannot be sent".
    Can anyone please tell me how can one configure lotus notes email server to send emails.
    Thanks,
    Manish

    Hi Vibhu,
    How are you? Yes I tried from inotes directly it goes fine but not from "send to". I get exception as pasted below.
    If possible can you please give me a call + 49 6227 7 61011 or let me know your number I will call you.
    Thanks,
    Manish
    .5#C000AC1008570016000000160027C45E0003E4CE72250A70#1096000259557#com.sapportals.wcm.WcmException#irj#com.sapportals.wcm.WcmException.WcmException(90)#System#0#####Client_Thread_13##0#0#Error##Plain###EmailChannel: SMTP error while connecting to server for INTERNETCould not connect to SMTP host: p70448.wdf.sap.corp, port: 25;
      nested exception is:
         java.net.ConnectException: Connection timed out javax.mail.MessagingException: Could not connect to SMTP host: p70448.wdf.sap.corp, port: 25;
      nested exception is:
         java.net.ConnectException: Connection timed out
         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:867)
         at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:156)
         at javax.mail.Service.connect(Service.java:234)
         at javax.mail.Service.connect(Service.java:135)
         at com.sapportals.wcm.util.channels.wcm.EmailChannel.sendSmtp(EmailChannel.java:240)
         at com.sapportals.wcm.util.channels.wcm.EmailChannel.sendTo(EmailChannel.java:498)
         at com.sapportals.wcm.control.collaboration.ResourceSendToControl.onSend(ResourceSendToControl.java:627)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sapportals.wdf.stack.Control.dispatchHtmlbEvent(Control.java:378)
         at com.sapportals.wdf.WdfEventDispatcher.dispatch(WdfEventDispatcher.java:175)
         at com.sapportals.wdf.BaseDynPage.onWdfEvent(BaseDynPage.java:131)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)
         at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:101)
         at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:64)
         at com.sapportals.htmlb.page.PageProcessorServlet.doPost(PageProcessorServlet.java:25)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sapportals.wcm.app.servlet.WcmHtmlbBaseServlet.service(WcmHtmlbBaseServlet.java:81)

  • Send a Command to many servers at sametime

    Hello.
    Could someone please tell me that there is a simple way to send a command to many servers at onetime without using Invoke-command  powershell cmdlet???

    Hi,
    You can use the free utility by Microsoft -
    PsExec.
    PsExec is a light-weight telnet-replacement that lets you execute processes on other systems, complete with full interactivity for console applications, without having to manually install client software. PsExec's most powerful uses include launching interactive
    command-prompts on remote systems and remote-enabling tools like IpConfig that otherwise do not have the ability to show information about remote systems.
    Checkout the below thread on similar discussion,
    Running a command on multiple Windows servers
    Regards,
    Gopi
    JiJi
    Technologies

  • Send staple command to printer when printing pdf's?

    Is there a way to send a command to a printer to staple the pages of a report?  In this case, I loop thru a number of Access reports and create pdf's.  I then put these pdf's into groups and send the groups to the printer.  I'd like to staple
    the groups after printing. 
    The printer is a Xerox 4110.
    Thanks.

    Hi emcustom,
    I think you should contact the manufacturer for what command to send to the printer to staple the pages. For how to send commands to the printers, posting in VBA forum is better.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is there a way to send multiple pdf's in one email from iBooks?  I have several that I've saved that I need to send to one person. If it can't be done directly, is there a work around?

    Is there a way to send multiple PDF documents from iBooks in one email?  I have several that need to be sent to one person and can't figure out how to send more than one at a time. If you can't, is there a workaround?

    Warehouse that PDF on your own server, then link to it from your book.
    Ken

  • I ordered a new phone and shipped it to a friend in Dubai, UAE. without knowing i have to activate it by making 5minutes calls, please i need a way to activate it without sending it back to the US..any help? this has been very frustrating for me this past

    I ordered a new phone and shipped it to a friend in Dubai, UAE. without knowing i have to activate it by making 5minutes calls, please i need a way to activate it without sending it back to the US..any help? this has been very frustrating for me this past few days

    scottxx,
    That was very nice of you to provide your friend with a new phone! I am sorry to say that the device will not be able to activate while in Dubai. For a device to activate it must connect to the VZW network to become active. I apologize for any inconvenience.
    LindseyT_VZW

  • How to send a command from a vc++.exe to LABVIEW.exe in order to control the button on the LABVIEW.exe

    Hello, everyone. Using VC++, I have gotten the handle of a *.exe(built by Labview), but I cannot get the button handle. I want to get the button handle and post the message to control the button. How can I do that? When I use the SPY++, the *.exe(built by Labview) have not any child windows which is very different from the *.exe(built by VC++). In SPY++, what is the LVDChild class? How can I send the message to control the button on *.exe(built by Labview)???
    That is  to send a command from a vc++.exe to LABVIEW.exe in order to control the button on the LABVIEW.exe. How can I get it ?
    Thank you!

    hummingbird wrote:
    Thank you! But I dont kown how to use vi server to raise a value signalling event. Can we put vi server into the vc program? Can you give me some more information or some examples, hehe!
    hummingbird
    Checkout the LabVIEW ActiveX server interface in the User Manual in Chapter 20, Windows Connectivity and the VI Server Reference in Chapter 17, Programmatically Controlling VIs.
    There is a sample for Visual Basic under examples/comm/VBtoLV.frm, which should be quite simple to translate to Visual C as long as you can figure out the basics of ActiveX programming in VC (I have never done anything with ActiveX in VC). For those basics I would recommend some text book or MSDN.
    Rolf Kalbermatter 
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Best way to send printer control codes?

    What's the best way to send printer control codes in Netware 3.12? Should I
    use a batch file that's run each time a particular queue is selected, or is
    there something I should be doing with a pconsole option? I'm trying to get
    rid of extra linefeeds and enable compressed printing. DOS environment, by
    the way.
    The printer in question is an Ithaca Pcos Series 50 ( #52 pn-06-0629), which
    isn't one of the standard ones listed in Pconsole etc. It may emulate a
    standard IBM though.
    Thanks-
    --Mike-- Chain Reaction Bicycles
    www.ChainReactionBicycles.com

    > What's the best way to send printer control codes in Netware 3.12? Should
    > I use a batch file that's run each time a particular queue is selected, or
    > is there something I should be doing with a pconsole option? I'm trying to
    > get rid of extra linefeeds and enable compressed printing. DOS
    > environment, by the way.
    Never mind, I'm in a habit of answering my own posts these days. Just create
    a job configuration in printcon that uses a device with the appropriate
    device modes.
    Is it just me, or is Netware queue-based printing a bit on the obtuse side?
    Seems like it could have been made a whole lot easier (more linear?) to set
    up.
    --Mike-- Chain Reaction Bicycles
    www.ChainReactionBicycles.com

  • Is there any way to send an event invitation to multiple people, but hide invitees' email addresses from recipients? I need to keep their details private...

    Hi,
    I'm creating a series of events in Lightning, and sending invitations to all my adult class students. Legally, and ethically, I have to keep their personal details private. This includes their email addresses. I can't find a way to send invitations to a dozen people, without them seeing everyone's email addresses. I need something like a bcc option really. Is there a way please? Google calendar seems to be able to do it, but I don't want to use that, I far prefer TB/Lightning - largely because I can then send invitations from my business address instead of Gmail.
    Thanks very much,
    Melanie

    The following is intended as general guidance about changing the to: designation in Thunderbird. I must admit I'm not sure how it works with calendar event invitations. I need to check. Of course, amongst colleagues and in the workplace generally, it's not required to hide addresses, and as that's pretty much the only context I have used automatically generated invitation emails, I hadn't found any need to use bcc:.
    Thunderbird has bcc. Click on to: to change it.
    Tip: change it when you add the first address, then each address you subsequently add will be set to bcc: automatically.
    If you're using a Mailing List, bcc: will apply to each address in the list too.
    And try F9 to see a Contacts Sidebar in the Compose window. This has explicit "Add to..." buttons.

  • TA38622 is there any way to send sms by a connected iPhone to computer ? if so does it need any special application and program ? with witch port ? thank you.

    is there any way to send sms by a connected iPhone to computer ? if so does it need any special application and program ? with witch port ? thank you.

    Hi, Santosh..., and welcome to the Community,
    I would recommend testing the SMS reply forwarding to your mobile number.  Depending upon the results and if this works for you, you could then contact Skype Customer Service to cancel and request a refund.
    In other words, SMS will be received via your mobile number, not via your Skype Number.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • How to send this command to RS232 Port

    I want to use LV to control a label printer to print what I need. Following info is from printer user manual.
    From RS232 port:
    If Codex has been used with the controller then the simple serial protocol will need to be enabled by sending ESC Z SWITCH ON <CR> (without spaces). Codex automatically disables the simple protocol for security reasons, so it is a good idea to start all sessions with this command.
    ESC Z S W I T C H O N <CR>
    à From BASIC the first line would be CHR$(27)+”ZSWITCHON”+CHR$(13)
    Send the following ASCII data to the RS232 port:
    ESC J 0 C H R I S T M A S <CR>
    ESC J 1 A N D   S E A S O N S <CR>
    ESC J 2 G R E E T I N G S <CR>
    ESC J 3 T O   M Y   H E L P E R S <CR>
    ESC J 4 0 9 8 7 6 5 4 3 2 1 2 1 <CR>
    à From BASIC the first line would be CHR$(27)+”J0CHRISTMAS”+CHR$(13). Etc.
    In VB I can use this command to control the printer. But In LV how can I do?
    I'd appreciate it if anybody give me a simple sample.

    A string control or constant in LabVIEW can be set for normal, hex, or '\' code display by just right clicking on the control constant. CHR$(27) is the the ESC character and the hex equivalent of 27 is 1B. The CR is hex  0D. So, a simple way to do this would be to have a hex display constants for the ESC and CR character and a normal display for the the command. Use the concantanate string function to build one string.
    Message Edited by Dennis Knutson on 10-10-2007 09:57 PM
    Attachments:
    String Display Options.PNG ‏5 KB

  • Button that opens website or sends http commands

    I have a cocoa-applescript application that contains a window called "Window," a WebView called "Browser" and a Button called "go."
    All I would like to be able to do is push the button and it opens a website in the WebView. This seems simple but I cannot figure it out.
    Also if possible, since another button will be just giving commands to something over the internet, is there a way to send the http command without displaying the website?
    Just as some further Info, I am trying to make something to control my IP Webcam. Most of the commands it needs are in the form of "http://(ip address):(Port)/(the command).cgi"

    Didn't my WebView example help?
    Assuming you have an IB outlet connection from your webview to your script's instance for it (for example, myWebView), and an IB action connection from your button to your script's button handler, the code in your button handler would be something like:set theURL to current application's class "NSURL"'s URLWithString_("http://www.apple.com") -- or whatever
    myWebView's mainFrame's loadRequest_(current application's class "NSURLRequest"'s requestWithURL_(theURL))
    If all you want to do is send the command without any webview, you can use the curl shell utility.

  • Problem sending shell command

    I have a file from a software vendor that I need to send to all my clients that will remove all the vendor's files. It is a .command file and says it is a TerminalShellScript. I used ARD to copy the file to the clients' Shared folder. I then used the Send UNIX command to send the following
    sh script /Users/Shared/FileName.command
    I get an error back that ARD cannot execute the binary file. What am I doing wrong?
    Also, once the file runs on the client, I believe it will ask for the admin password. Is there a way to prompt the computer to do this or am I going to need to take control of each computer to do this?
    Thanks!

    Have you tried copying the contents of your .command file into the big text box in the Send UNIX Command window? I would recommend you run it as the "root" user if the script is doing anything that needs additional privileges (you can't send a password to a "sudo" call in a "Send UNIX Command" job, so just use "root" and it won't prompt for a password).

Maybe you are looking for

  • InDesign CS5.5 crashes as soon as I open document

    Hi All So when I open this particular document it crashes InDesign CS5.5 insantly. Could it just be the size of the file? I've never had it happen and I had the client send this file over twice now. I rather just find out what the heck it is. Below i

  • How to transfer photos from my PC to ipad air

    how to transfer photos from windows pc to ipad air?

  • Regarding Protection for Queries

    Hi All, We have created queries in SD module and we want to present it to clint for initial view. Now we want to restrict the client from modifying the Query Definition. I dont have clear idea of authorizations. How can I restrit the user from access

  • DPM 2012 R2 journal wrap error

    Hi, i try to backup my active directory Using DPM 2012 R2.Below error has occurred. A journal wrap error has occurred on the change journal, and therefore DPM is unable to track any more changes or may have missed some changes for the data source C:\

  • Field can vary in length from 1 to 4 characters

    Good day to all, I have a field that can vary in length from 1 to 4 characters. So, if there is 1 Character I have to concatenate "A000000" &X (X represents field lenght) if the field is 2 characters long I have to concatednate "A00000"&XX (XX repres