<table style=\"width: 100%; padding: 0; border: none; border-collapse: collapse;\">\n <tr><td style=\"background-color: #B0B0B0; height: 1; padding: 0;\" nowrap></td></tr>\n </table>\n <br style=\"page-break-after: always\">\n
int dialogCreatePrices::numRowInPrintText(int iWidth, QString iText){ QTextDocument doc; doc.setPlainText(iText); doc.setPageSize(QSizeF(iWidth,-1)); int res = ((int)((doc.size().height()-21)/13)) + 1; return res;}