BioBytes Messages: 307 Registered: October 2008 Location: France
Senior Member
First congratulations to all staff involved in UPP development. Ultimate is a very good IDE.
Sorry for that rather silly question but I am new to C++ programming and I did not find how to print PDF files directly from my application source code. I succeeded to save my report (QTF) file as a PDF file but now how to send it to the printer ? Do I have to use an external library as podofo ? I would prefer to use native UPP.
Here is a sample of Windows code to open "file". If file = "sample.pdf", this will open the file with Acrobat (if it is installed and it is the by default program to open pdf). For Linux there is also a way to do it.
chickenk Messages: 169 Registered: May 2007 Location: Grenoble, France
Experienced Member
There exists a specific API using DDE on windows to manipulate Acrobat. The executables using this api are called pdfopen, pdfclose and pdfdde. What is cool is that you can open but also select a page or close opened Acrobat file (for example, if you want to modify it, you check if it is opened first and try to close it). I used these executables quite a lot when writing doc with LaTeX and Docbook.
BioBytes Messages: 307 Registered: October 2008 Location: France
Senior Member
Many thanks to all of you for your pertinent advices. I just finished my application and started the testing process on the field. I chose the solution of appealing the shellexecute API as posted by koldo. I will also have a look to the code written by chickenk which is very interesting too but this will require some work from me to understand well the code.