Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
8714 มุมมอง

Hi,

I'm exploring using ghostscript to have pdf files printed directly to the default printer on the server machine which is Windows 2008 server. Below is what I used in my test with ghostscript. My question is where I can use the code, and redirect the pdf output when I press the "print" button in the view.

import win32api 
invoice = "D:\Downloads\Invoices.pdf" 
win32api.ShellExecute(0, 'open', 'C:\Program Files\Ghostgum\gsview\gsprint.exe', invoice, '.', 1)

Thanks.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
How to done direct printing in odoo ? แก้ไขแล้ว
4
พ.ค. 25
22297
0
เม.ย. 25
5
0
มี.ค. 25
949
1
ม.ค. 25
1325
1
พ.ย. 24
1103