Hello, I would like to know how to use the external functions of the WINSPOOL.drv library
to be able to send a PDF directly to the printer.
I've recently achieved this thanks to a GitHub project called RawPrint, creating a Net Core library to consume in PowerBuilder.
I imagine that this should be able to be implemented directly in PowerBuilder, I don't know if someone from the community could help me.
You may wonder why I want to achieve this, it is because in 64Bit environments the Adobe Acrobat Reader Control does not work to open and print PDF's.
I have replaced with the new WebBrowser control but I have found 2 problems.
The first is that it cannot be printed without opening the dialog box and the second is that there is no event that tells us when the loading of the PDF in the control has finished and in PDFs with many pages we cannot start printing until the pdf is there 100% loaded or a blank page comes out.
I put the two links again:
https://rsrsystem.blogspot.com/2022/06/envio-directo-archivos-impresora-de.html
https://rsrsystem.blogspot.com/2023/05/imprimir-pdfs-con-el-nuevo-webbrowser.html
I have also published the example on CodeXchange, I suppose it will be available in the next few days, it is under review by Appeon.
https://community.appeon.com/index.php/codeexchange/powerbuilder/342-direct-send-files-to-windows-printer-rawprint#488