Print pdf files silently
- How-to
-
Subbiya Vasumoorthy
- PowerBuilder
- Wednesday, 12 February 2025 06:38 PM UTC
Hi Appeon,
We are on powerBuillder 2022 R3 Build 3397. We have an requirement to print multiple pdf files one by one and there should no user interruption, we are planning to use web browser control to load the pdf file and print it from there using wb_1.navigate("pdf_file") and wb_1.print() methods. But the wb_1.print() method opens a print dialogue each time, is there any way to supress this dialogue box and print silently.
We are using chrome and edge browser.
Also, we tried using the below print method but the entire application hangs.
objectname.Print ( printjobnumber, x, y {, width, height } )
We placed a webbrowser control and command button on a window, created an event print_test and inside the event the following code is written
int li_rtn
li_rtn = printopen('WebBrowser', false)
print(li_rtn, x, y)
PrintPage(li_rtn)
printclose(li_rtn)
and in the command button, we are calling the wb_1.event print_test( ) after loading pdf file each time.
Requesting you to provide a way to print pdf file silently.
Thankyou.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.