frescobaldi / qpageview

page-based viewer widget for Qt5/PyQt5
https://qpageview.org/
GNU General Public License v3.0
20 stars 9 forks source link

Printing Option not Working #9

Closed NgJinXiang14 closed 3 years ago

NgJinXiang14 commented 3 years ago

image I already try most printing option but all of them are not working, it keep print without option applied, did I do something wrong? Can anyone help me?

wbsoft commented 3 years ago

Which object is in self.conn ? You call printFile but if that is Handle than you should give the filename as first argument.

NgJinXiang14 commented 3 years ago

Which object is in self.conn ? You call printFile but if that is Handle than you should give the filename as first argument.

self.conn = cups.Connection() the problem is I can print, it just the option is not working, like that print range

here's my code https://github.com/NgJinXiang14/PrintBoothSystem/blob/main/Main%20System.py sry for the mess up coding tho, I just start PyQt5 and Python last week

EDIT : image It works now, thanks, but the 'page-ranges' is still not working tho, It will not run it if I include it

EDIT 2: image I have solve it, thanks for the trouble, this can be closed now.