You need to be logged in to view a user's profile.
  1. marco gaspar
  2. PowerBuilder
  3. Thursday, 31 August 2023 12:17 PM UTC

Good morning!
How to send a file with this content to a USB printer, simulating a paper cut.
Example: I print a receipt at the cashier and I need it to be cut automatically by the printer.
This is the contents of the file:
blank line
blank line
blank line
ESCw

From the DOS prompt it works like this:

PRINT CUTPAPER_PR1400 /D:\\SUP48\PR-1400

Grateful.

Attachments (1)
marco gaspar Accepted Answer Pending Moderation
  1. Thursday, 31 August 2023 13:16 PM UTC
  2. PowerBuilder
  3. # 1

I got it by doing this:
run("PRINT CUTPAPER_PR1400 /D:\\SUP48\PR-1400")

And that?

Grateful.

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 31 August 2023 20:10 PM UTC
That's great news Marco and I am super glad that this worked for you! :-)
  1. Helpful
There are no comments made yet.
marco gaspar Accepted Answer Pending Moderation
  1. Thursday, 31 August 2023 12:43 PM UTC
  2. PowerBuilder
  3. # 2

Forgive me, I couldn't understand.
Can you send me an example, with the data I gave you?

Grateful.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 31 August 2023 12:35 PM UTC
  2. PowerBuilder
  3. # 3

Hi Marco;

  Just call the DOS command from your PB App using the RUN() command.

Regards ... Chris 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.