cancel
Showing results for 
Search instead for 
Did you mean: 

Save as PDF using SDK

Former Member
0 Kudos

Hi experts, I need to know if it is possible to put filename programmatically in the "Save As" of the Export to PDF in SAP Business One. See image below for reference:

I've created an add-on to export the document to PDF, but they want to automate the filename. Is that possible? I'm using the menu

SBO_Application.ActivateMenuItem("7176") <- export to PDF

Accepted Solutions (0)

Answers (1)

Answers (1)

ltassi
Explorer
0 Kudos

I'm also interested in advice about this but seems that

SBO_Application.ActivateMenuItem("7176")

always asks the path of the resulting PDF.

From SAP application that behavior happens only if the menu is pressed under

File > Export > Export PDF

Instead when Export PDF is clicked by the toolbar the path is taken automatically from sap path conf.

Unfortanately it seems that SAP manage the same menuid in different ways instead sdk cannot distinguish the two different cases.