star-micronics / react-native-star-io10

react-native-star-io10 is a library for supporting application development for Star Micronics devices.
Other
83 stars 54 forks source link

what is alert native .actionPrintText is not available for tsp100iiibi #55

Closed AbdullahIqbal closed 2 years ago

AbdullahIqbal commented 2 years ago

HI if some tag is not available for some model what is the alternative for that Like .actionPrintText is not available for tsp100iiibi

bandit-ibayashi commented 2 years ago

Hi, @AbdullahIqbal

Due to differences in printer capabilities, not all PrinterBuilder methods are available on every device. In particular, TSP100III series does not have built-in font data, so it is limited to printing graphically, and it does not support the actionPrintText() method.

If you want to print receipt data on the TSP100IIIIBI, an alternative would be to create the receipt as an image and print it using actionPrintImage method.

It is discussed in Issue #10 how to create receipt images in React Native.

Thanks.

AbdullahIqbal commented 1 year ago

HI Thanks for the guide. so what is the way to set the height of the image in actionPrintImage https://star-m.jp/products/s_print/sdk/react-native-star-io10/manual/en/api-reference/star-xpand-command/printer-builder/action-print-image.html#star-xpand-command-printer-builder-action-print-image

On Wed, Apr 13, 2022 at 5:09 AM bandit-ibayashi @.***> wrote:

Hi, @AbdullahIqbal https://github.com/AbdullahIqbal

Due to differences in printer capabilities, not all PrinterBuilder methods are available on every device. In particular, TSP100III series does not have built-in font data, so it is limited to printing graphically, and it does not support the actionPrintText() method.

If you want to print receipt data on the TSP100IIIIBI, an alternative would be to create the receipt as an image and print it using actionPrintImage https://star-m.jp/products/s_print/sdk/react-native-star-io10/manual/en/api-reference/star-xpand-command/printer-builder/action-print-image.html#star-xpand-command-printer-builder-action-print-image method.

It is discussed in Issue #10 https://github.com/star-micronics/react-native-star-io10/issues/10 how to create receipt images in React Native.

Thanks.

— Reply to this email directly, view it on GitHub https://github.com/star-micronics/react-native-star-io10/issues/55#issuecomment-1097409769, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGV7VZ2CUHN2GVDQCCZRKTLVEYGDPANCNFSM5TIL7VBQ . You are receiving this because you were mentioned.Message ID: @.***>