Skip to content

Error: StartDocPrinterW error: code: 1804, message: The specified datatype is invalid. #325

@prasheel888

Description

@prasheel888

i'm printing buffer as Image As a JPEG type here is my code

const Printer = require("@thiagoelg/node-printer");
Printer.printDirect({
data: buffer,
type: "JPEG",
success: function (jobID) {
console.log("sent to printer with ID: " + jobID);
},

                error: function (err) {
                  console.log(err);
                },
              });
            }
          });

and i didnt installed vscode,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions