API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

Problem with GetPdf() method


I used e-conomic api with webservices.
It's a grate API, but i have some problem with the GetPdf() method,
When i call the CurrentInvoice_GetPdf() method before CurrentInvoice_Book() then the Draft shown on invoice's pdf, i don't want that and so if i call it after CurrentInvoice_Book() then it gives error that current invoice does not exit.
Can anybody please help me how to solve this problem?

created May 29, 2012 by Madhu
0% Accept Rate
Q 6 A 2 C 0

2 Answers


CurrentInvoice_Book() returns an Invoice - and effectively deletes the CurrentInvoice object in the process.

Therefore, you should call that Invoice's _GetPdf() instead - i.e., after retrieving the Invoice via CurrentInvoice_Book().

Best regards,
answered May 29, 2012 by Christian Estrup
Thanks for the reply.
Now the problem gets solved.
answered May 29, 2012 by Madhu
Visma e-conomic A/S