cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Export to PDF when adding documents using SDK

2,917

Dear Experts,

We are using SAP Business One 9.2 PL6 and we are facing the following use:

In the “Administration” – “System Initialization” – “Print Preferences”, under the “General” tab,we select the checkbox “When Adding Marketing Document, Use Attachments Folder as Default Path to Export PDF” and “Attach Exported PDF to Marketing Document”.

We also select the option "Export to PDF" for A/R Invoice under the “Per Document” tab.

In this way, when we manually add an A/R Invoice it is exported to PDF and the file is also attached on the document.

However, when we add A/R Invoice using SDK, we noticed that there is not file attached and no PDF file is created.

How can we maintain the described system functionality using SDK? Could you please advise us.

Thank you in advance.

Kind Regards,

Vasilis Korolis

View Entire Topic
Former Member
0 Likes

When you agree with the document, you can obtain the DocKey of the created document and send it as a parameter to some CrystalReport template to obtain the information and make an ExportToDisk, so I have it with several applications.