envisiondata / cordova-plugin-starprinter

Cordova/PhoneGap plugin for the Star Bluetooth printer SM-T300I.
Apache License 2.0
3 stars 5 forks source link

Does the plugin print a string of text? #2

Open felipeblan opened 8 years ago

felipeblan commented 8 years ago

The plugin only prints a predesigned receipt?

envisiondata commented 8 years ago

That is correct. This is just to get you started. The receipt that prints is the 3" sample receipt that comes with the SDK from Star Micronics. You will need to customize for your own application. To do this you will need to update the methods in the src folder passing in you receipt data. You can find documentation for the Star SDK here. Star Global Support Site

Star Global Support Site | |

|

Hope this gets you started in the right direction.

  From: Felipe <notifications@github.com>

To: envisiondata/cordova-plugin-starprinter cordova-plugin-starprinter@noreply.github.com Sent: Monday, May 30, 2016 9:25 AM Subject: [envisiondata/cordova-plugin-starprinter] Does the plugin print a string of text? (#2)

The plugin only prints a predesigned receipt?— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

elie-chaaban commented 7 years ago

how can i get this plugin and change in java file and use it? im trying but it s not working

elie-chaaban commented 7 years ago

it s always printing the sample receipt even thou i changed it in PrintSampleReceipt what can i do

envisiondata commented 7 years ago

That is all it does, except print a signature. This plugin is just to get you started so you don't have to build one from scratch. Check out this plugin. I think, but am not sure it is just like mine. InteractiveObject/StarIOPlugin

|

InteractiveObject/StarIOPlugin StarIOPlugin - Star Micronics printer phonegap/cordova plugin | |

|

|

  From: ElieChaaban1 <notifications@github.com>

To: envisiondata/cordova-plugin-starprinter cordova-plugin-starprinter@noreply.github.com Cc: James Vaught envisiondata@yahoo.com; Comment comment@noreply.github.com Sent: Friday, September 22, 2017 9:39 PM Subject: Re: [envisiondata/cordova-plugin-starprinter] Does the plugin print a string of text? (#2)

it s always printing the sample receipt even thou i changed it in PrintSampleReceipt what can i do— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

envisiondata commented 7 years ago

Also here is a search that might help. https://github.com/search?utf8=%E2%9C%93&q=Star+Micronics&type=

  From: ElieChaaban1 <notifications@github.com>

To: envisiondata/cordova-plugin-starprinter cordova-plugin-starprinter@noreply.github.com Cc: James Vaught envisiondata@yahoo.com; Comment comment@noreply.github.com Sent: Friday, September 22, 2017 9:39 PM Subject: Re: [envisiondata/cordova-plugin-starprinter] Does the plugin print a string of text? (#2)

it s always printing the sample receipt even thou i changed it in PrintSampleReceipt what can i do— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

envisiondata commented 7 years ago

If your using Cordova just use the CLI like the instructions say. What kind of error are you getting? Can you install any plugin?

You will have to do some custom development with this plugin. You will have to pass your data and change the iOS and android native code to read that data.

James

On Sep 22, 2017, at 9:23 PM, ElieChaaban1 notifications@github.com wrote:

how can i get this plugin and change in java file and use it? im trying but it s not working

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

elie-chaaban commented 7 years ago

no, eveything worked but one thing more i want to pass paramters to PrintSampleReport in the [ID] parameter an array or anything how can i read them in Java in PrintSampleReport function? can you help me please

elie-chaaban commented 7 years ago

lets say i want to put the header of the receipt from parameter can you help me how i can pass them?

elie-chaaban commented 7 years ago

I did it thanks you rock!