how to add header text and footer text while printing a text file
Hi all,
I am sending to printer a text file which has been already loaded using the code as follows:
Code:
QFile txtFileOut
(txtFile
);
QString txtFileToQString
(txtFileIn.
readAll());
if (dlg
->exec
() != QDialog::Accepted) return;
document->print(&printer);
How can I add header text and footer text to each page printed ??
Thank you very mutch for you contribute..
Roby
Re: how to add header text and footer text while printing a text file
Qt doesn't have an API to do header/footer but this lib should help you get the job done: http://www.qt-apps.org/content/show....?content=62383