Print textbox info to brother QL Label Printer RRS feed

  • Question

  • User855106052 posted

    Hi guys,

    I have a asp.net vb form with some textboxes, labels, etc and i need a button to pass the text (string) of textboxes to a label printed in my brother ql-710w label printer.

    Is a specific coding because is a specific printer is not a normal printer so can't use the normal process to print in letter or A4 size paper. Have to code with brother b-PAC or something... to communicate with printer and print a label.

    Some ideas? I read brother infos but don't understand anything...

    Thank you guys!

    Friday, May 14, 2021 4:06 PM

All replies

  • User1535942433 posted

    Hi indesk,

    As far as I think,you need to install b-pac SDK and driver. Then,you could connect your printer.

    The code is just like this:

    bpac.DocumentClass doc = new DocumentClass();
    if (doc.Open("templateFile.lbx"))
        doc.GetObject("field1").Text = "...";
        doc.GetObject("field2").Text = "...";
        doc.StartPrint("", PrintOptionConstants.bpoDefault);
        doc.PrintOut(1, PrintOptionConstants.bpoDefault);

    More details,you could refer to below article:


    Best regards,

    Yijing Sun

    Monday, May 17, 2021 5:05 AM