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

TSP100IIIW Wifi prints little blank page #60

Open
molchanovskiy opened this issue May 15, 2020 · 0 comments
Open

TSP100IIIW Wifi prints little blank page #60

molchanovskiy opened this issue May 15, 2020 · 0 comments

Comments

@molchanovskiy
Copy link

I had tried all configurations and no luck. Can anyone help me?
Printer connects successfully and after printing status is success.
` const emulation = "StarGraphic"

async function print(uri) {

    setStatus(`${printer.modelName}, is Printing...`)

    let text = "Test print...\nTest mealeo print...\nTest print...\nTest print...\nTest print...\nTest print...\nEND PRINTING"
    let imageURI = '../assets/images/sign_in/facebook_icon_blue.png'
    var commandsArray = [];

    commandsArray.push({ appendBitmapText: text, fontSize: 18, alignment: "Center" });
    commandsArray.push({ appendBitmap: imageURI, diffusion: true, width: 576, bothScale: true, alignment: "Center" })
    commandsArray.push({ appendLogo: 1, logoSize: 'DoubleWidthDoubleHeight' })
    commandsArray.push({ appendEmphasis: "SALE\n" })
    commandsArray.push({ enableEmphasis: true })
    commandsArray.push({ appendAbsolutePosition: 40, data: "Text with absolute position" })
    commandsArray.push({ appendRawBytes: [0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x2e] })
    // commandsArray.push({ appendBitmap: uri, width: 300})
    commandsArray.push({ appendCutPaper: StarPRNT.CutPaperAction.PartialCutWithFeed });

    try {
        var printResult = await StarPRNT.print(emulation, commandsArray, printer.portName);
        console.log("RESULT:", printResult); // Success!
        setStatus(`${printer.modelName}, Result: ${printResult}, printing complete!`)
    } catch (e) {
        console.log("ERRROR:", e);
        setStatus(`${printer.modelName}, error while printing! ${e}`)
    }
}

`

@molchanovskiy molchanovskiy changed the title TSP143III prints little blank page TSP100IIIW Wifi prints little blank page Jun 29, 2020
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

1 participant