Hi,
I'm using NAV 2016 and I have a codeunit that communicates with Bullzip and I have noticed a difference in behavior between the execution by a NAS and the execution by the RTC, both services are executed by the same user and running on the same server.
When I execute the code from the RTC with my Bullzip variables declared as "RunOnClient" = No, I'm getting the create file pop-up of bullzip which indicates to me that my ini-file isn't created. When I change my declaration to "RunOnClient" = Yes, my ini-file is created and the pop-up isn't shown.
When I execute the same code from the NAS and declaration is "RunOnClient"=No, my files are correctly generated. Do I change to "RunOnClient"=Yes I'm getting the following error:
Microsoft Dynamics NAV Server attempted to issue a client callback to create a DotNet object: Bullzip.PdfWriter.ComPdfSettings (CodeUnit 50056 PDF Functions). Client callbacks are not supported on Microsoft Dynamics NAV Server.
Does anybody have a solution for this, my current solution would be to create 2 sets of variables and split the execution code between NAS and Client.
Thanks,
Tom
Answers
If you set RUNOnClient = No that means - the process is running on background and does not need any user input.
The Error message clearly says that bullzip is trying to pop up a window which is not supported with NAS.
So the only solution would be -
> A Having two variables for same dotnet data type A & B.
> A is set with RUNonlciient = TRUE and B is set to RUNonClient = FALSE.
> You kind of need to have two functions for A & B based on ISGUIALLOWED (use action).
+ Curious to know what is that you are doing with Bullzip that is not possible with standard NAV?
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
Thanks for your reply.
To my knowledge it's not possible that we merge and attach other pdf documents with standard NAV 2016. And we are upgrading from a NAV 09 database so a lot of code is reused.
Thanks Tom
It's not possible to merge PDF Files without external Software.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page