cancel
Showing results for 
Search instead for 
Did you mean: 

Export to PDF when adding documents using SDK

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

paolo_fornari3
Participant
0 Kudos

Hi, have the same problem.
did you find a solution?

thank you

iNDdM
Participant
0 Kudos

Have you found a solution? I am interested too.

Accepted Solutions (0)

Answers (4)

Answers (4)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

The functionality asked in this discussion (also documented in SAP Note 2271634) is not exposed in DI API.

SAP Business One uses the Customer Influence site https://influence.sap.com/go/SAPBusinessOne for collecting, tracking, and prioritizing of requirements.

Please see and follow the recommendations in SAP Note 1028874, section B to post your requirement in SAP Business One Customer Influence site.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

0 Kudos

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.

HorstDrescher
Explorer
0 Kudos

If you're using crystal reports layouts you can create pdf documents with the sdk.

brendanbell
Explorer
0 Kudos

Hi,

One method would be to look at a product called AutoDocs. http://www.streamlinesoftware.net/

This allows you and users to print invoices / statements, whatever printable document as a pdf. These PDF's can be sent via email and many other choices.

Id recommend you take a look