Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7796951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:31:48+00:00 2026-06-01T23:31:48+00:00

I have established printer connection with my ipad , Now I want to set

  • 0

I have established printer connection with my ipad , Now I want to set formate of receipt like alignment, horizontal tab, font size logo settings and all the things which is required in my receipt, please any one can help me how can use POS commands in Objective-c for it?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:31:49+00:00Added an answer on June 1, 2026 at 11:31 pm

    Star has a programming manual you can download here: http://www.starmicronics.com/support/Mannualfolder/linemode_cm_en.pdf

    The commands referenced in the Line Mode manual need to be converted into bytes and then sent to the printer. The StarIO iOS SDK package you downloaded has a manual called “README_StarIO_POSPrinter_iOS_SDK.pdf”. ( http://www.starmicronics.com/absolutefm/absolutefm/afmviewfaq.aspx?faqid=175 ) Did you check out pages 9-15? The StarIO framework is explained here.

    Page 13 shows you how to write to the port using a byte array, but make sure you add StarIO.framework and open the communication port first.

    From the manual:

    //Set a byte array to send to the printer
    //command = { A, B, C, D, Feed 3mm, Full Cut}
    unsigned char command = {0x41, 0x42, 0x43, 0x44, 0x1B, 0x7A, 0x00, 0x1B, 0x64, 0x02};
    
    Uint bytesWritten = 0;
    
    @Try
    { 
       While(bytesWritten < (sizeof command)) 
       {
        bytesWritten += [port writePort: command : bytesWritten : sizeof command - bytesWritten];
       }
    }
    @Catch(PortException)
    {
       //There was an error writing to the port
    }
    

    Also described is how to close ports (make sure you close every opened port) and getting printer status.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have established a relation between project.rb and keyword.rb using has_and_belongs_to_many. I now want
Suppose I have established a connection on a socket and got a Posix error
I have some java-app, and i want to establish a connection to some https
I want to update data from my database using java. I have established my
I'm still playing around with xml. Now I have a file that looks like
Possible Duplicate: ios5 new Notification Center issue Many apps have established a paradigm like
I have established a link using Netbeans and Paradox driver and can query the
I have a plug-in vector established using System.AddIn that accepts the body of a
.NET's ProviderBase was established in the 2.0 release of the .NET Framework. Have there
Have I understod the following right? font-family:sans-serif; Above will result in the default sans-serif

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.