lp error : no default destination available
I am trying to print a webpage by calling the print() function of class WebView. The steps were :
Code:
setup1.exec();
browser.print(printer); // browser is a QWebView object
1. When the QPrintDialog shows up, the name of the printer is not there which is understandable as there is no printer attached. The output file's name is also shown. But when I click on Print, the message is
Quote:
"lp: Error - no default destination available."
Re: lp error : no default destination available
Printing procedure must be very common on Qt applications. Its imperative to my application. If any one can just provide the steps or c++ code for simple printing. What I did (as posted above) gave the error : "lp: Error - no default destination available."
Re: lp error : no default destination available
If there's no printer attached, how do you expect it to work?
Re: lp error : no default destination available
Into the output file "print.pdf"
Re: lp error : no default destination available
Did you check to option to save to a file?
If the goal is to print to a pdf file, then do not use the print dialog. Set the output format directly in the printer.