Bugfix - receipt printing on widows fixed.

master
Josef Rokos 2 years ago
parent 8b132c6c51
commit e958c86eb7

@ -61,9 +61,9 @@ void ReceiptGenerator::print()
if (OpenPrinter((LPWSTR)printer.toStdWString().c_str(), &hPrinter, nullptr)) if (OpenPrinter((LPWSTR)printer.toStdWString().c_str(), &hPrinter, nullptr))
{ {
docInfo.pDocName = (LPWSTR)"Uctenka"; docInfo.pDocName = (LPWSTR)(L"Uctenka");
docInfo.pOutputFile = nullptr; docInfo.pOutputFile = nullptr;
docInfo.pDatatype = (LPWSTR)"RAW"; docInfo.pDatatype = (LPWSTR)(L"RAW");
dwJob = StartDocPrinter(hPrinter, 1, (LPBYTE)&docInfo); dwJob = StartDocPrinter(hPrinter, 1, (LPBYTE)&docInfo);
if (dwJob > 0) if (dwJob > 0)

Loading…
Cancel
Save