Commit c29f8552 by 刘帅

修改打印图像名称,以区别

parent 457b1067
......@@ -456,7 +456,7 @@ bool FmPrinter::_PrintBodyForShangmiPrinter(OrderObject *pData)
rlt = rlt && m_beginPrint(0) == HS_OK ? true : false;
QString apppath = QCoreApplication::applicationDirPath();
QString helloBmp = apppath+"/Hello.bmp";
QString helloBmp = apppath+"/Hello_Sm.bmp";
m_printBitmapFile(helloBmp.toLocal8Bit().data(),0);
rlt = rlt && m_beginPrint(7) == HS_OK ? true : false;
......@@ -528,7 +528,7 @@ bool FmPrinter::_shangmiPrinter(OrderObject *pData)
QString apppath = QCoreApplication::applicationDirPath();
QString titleBmp = apppath+"/Kitty.bmp";
QString bottomBmp = apppath+"/Look.bmp";
QString qrBmp = apppath+"/qr.bmp";
QString qrBmp = apppath+"/qr_high.bmp";
bool rlt = true;
m_printBitmapFile(titleBmp.toLocal8Bit().data(),0);
......@@ -599,6 +599,7 @@ bool FmPrinter::_fmPrintData(OrderObject* pData)
QString titleBmp=apppath+"/Kitty.bmp";
QString bottomBmp=apppath+"/Look.bmp";
QString helloBmp=apppath+"/Hello.bmp";
QString qrBmp=apppath+"/qr_high.bmp";
m_pPrintHex("\x1B\x61\x1",3); //居中
m_pPrintBitmapFile(titleBmp.toLocal8Bit().data(),0);
......@@ -670,8 +671,11 @@ bool FmPrinter::_fmPrintData(OrderObject* pData)
m_pPrintHex("\x1B\x61\x1",3); //居中
m_pBeginPrint(0);
m_pPrintBitmapFile(bottomBmp.toLocal8Bit().data(),0);
m_pPrintBitmapFile(qrBmp.toLocal8Bit().data(),0);
m_pPrintHex("\x0A",1);
m_pPrintHex("\x0A",1);
m_pBeginPrint(0);
m_pCutPaper(0);
m_pClosePrinter();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment