Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how about the prn can be analyze😁 #260

Open
cathedras opened this issue Jul 2, 2024 · 1 comment
Open

how about the prn can be analyze😁 #260

cathedras opened this issue Jul 2, 2024 · 1 comment

Comments

@cathedras
Copy link

�CT~~CD,CC^CT
^IDp0000000^FS
DGp0000000,00126,006,V0EP01EP03CN03LFEJ03LFEJ038J01EJ038J01EJ038J01EJ038J01EJ03
LFEJ03LFEJ038J01EJ038J01EJ038J01EJ038J01EJ03LFEJ03LFEJ038J01EJ038J01EU0
^XA
^LT0
^MNW
^MTT
^PON
^PMN
^LH0,0
^JMA
^PR6,6
SD15
^JUS
^LRN
^CI27
^PA0,1,1,0
^XZ
^IDp0000000^FS
DGp0000000,00126,006,V0EP01EP03CN03LFEJ03LFEJ038J01EJ038J01EJ038J01EJ038J01EJ03
LFEJ03LFEJ038J01EJ038J01EJ038J01EJ038J01EJ03LFEJ03LFEJ038J01EJ038J01EU0
^XA^LT0^PR4,4~SD00^LH0,0
^MMT
^PW900
^LL600
^LS0
^FO367,189^GFA,73,276,6,:Z64:eJxjYOBjAAH+BhApfwCdtAeL2zPASMb/QPADmWRAJv8AVZBOYppDRzMZMUgANDx7zQ==:CD24
^FO356,341^XGp0000000,1,1 ^FS
^PQ1,0,1,Y
^XZ

this prn at start i have no idea to analyze.can fixed it in develop branch?

@cathedras cathedras changed the title how about the prn can be ananluze😁 how about the prn can be analyze😁 Jul 2, 2024
cathedras added a commit to cathedras/BinaryKits.Zpl that referenced this issue Jul 3, 2024
@masternan
Copy link

just use regex remove content before first ^XA,such as following code

    public static string RemoveContentBeforeFirstXA(string zplString)
    {
        var regex = new Regex(@"^[\s\S]*?(?=\^XA)");
        return regex.Replace(zplString, "").Trim();
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants