Announcements
No record found.
Hi,guys I need to print file from DocuValue as pdf. Should i prepare custom report or is there any easier way to do it?
If the cusom report is the only solution, what should it look like?
PS. Now im using PrintJobSettings to PRINT reports as pdf.
What do you have in DocuValue? A PDF file? Or something else?
If you already have the report printed to PDF, what problem do you intend to address by creating a custom report? The report already did its job and created a file, didn't it?
Martin, initially, I may have misspelled my situation.
I got PDF file in DocuValue - it's not report from AX. It's external pdf document imported manualy by user. This are external invoiced from customers (recipients and suppliers).
Now i need to print (not save) this file as pdf.
The usual process in such a case is opening the file in an appropriate application (such as Adobe Reader or a web browser that can handle PDF files) and printing it from there.
It seems that you want something else, but I'm not sure what. Can you describe the requested behaviour, please?
After clicking the button, I want to print a pdf report (done) and attached external pdf invoice to a file. I need to find some solution to make it work from code - no user interaction (except of single click at the beginning).
Now I just use BinData to save that external PDF invoice as file - but i need that pdf to be printed insted of saved ( printed pdf does not have encryption, and that's what i need later).
What do you mean by "and attached external pdf invoice to a file"? You start with an attached file, so what else do you want to do with it?
If you don't show any dialog, how will you know the print destination? Even if you always want to use a printer, you still need to decide which one should be used. You can't assume that there is just one printer in the company.
Maybe I mixed it up a bit ...
I have an invoice registered in AX - this invoice has a report. Additionally, an invoice from the supplier is connected manually by the user. At this point, we have a report from AX and an external scan of the invoice in the form of .pdf.
After clicking the "DoSth" button, I want to generate a pdf report to disk (I already have it handled with printJobSettings) and additionally "print to disk" the attached invoice from the system.
Maybe I have described it better now.
What is "printing to disk"? Just saving the attached file to a file on disk?
Printing to disk = print document using win 10 printer 'Microsoft Print To PDF'.
Manually it's looks like opening that external invoice in browser then print using 'Microsoft Print To PDF' printer, to the destination on disk.
Do I understand correctly that you have a PDF file and you want use a print driver to convert this PDF file to another PDF file?
Yes, thats correct - don;t ask why i need it...
binData = new BinData();
binData.setData(fileCont);
binData.saveFile(savePathPdf);
I need to replace this part of code with some code that print file insted of save file
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 663
André Arnaud de Cal... 439 Super User 2026 Season 1
Syed Haris Shah 337 Super User 2026 Season 1