Solved print preview widget
-
@rest said in print preview widget:
That is NOT a valid path
setOutputFileName("Desktop//aaaa.pdf");Please use a valid full path and only single /
like
C:/Users/SOMEUSERNAME/Desktop/test.pdf -
printer->setOutputFileName("C:/Users/admin/Desktop/test.pdf");
i tried and nothing :( -
and you do have write access there ?
and the path IS real. meaning u didnt make up the admin name. -
@mrjj and then i used this and still does not work
printer->setOutputFileName("C:/Users/Public/Public Documents/test.pdf"); -
@rest
and it does show stuff in preview ?
but the file is NOT created? -
exactly, it shows but it's not saved
-
@rest
and u press print inside preview ?
to make it actually print and not just preview ? -
@mrjj solved, i had make the print preview and printer object in the constructor of the window
-
@rest
oh, so moving them helped? -
@mrjj yes, thanks