Options

SAVEASPDF Issue

claytonclayton Member Posts: 3
edited 2011-04-18 in NAV Three Tier
I have a code unit which has the prupose to Save a report in PDF format by using the funciton REPORT.SAVEASPDF. When this codeunit is called from a card menu item, the report is saved successfully. If this code unit is called from a Job Queue, the report is not been saved.

Note: NAS is installed and the Job queue is working for other functionality such as inserting data in tables, send e-mail and saving a report in HTML format by using the function SAVEASHTML.

Any ideas regarding this issue.

thanks

Answers

  • Options
    matteo_montanarimatteo_montanari Member Posts: 189
    clayton wrote:
    I have a code unit which has the prupose to Save a report in PDF format by using the funciton REPORT.SAVEASPDF. When this codeunit is called from a card menu item, the report is saved successfully. If this code unit is called from a Job Queue, the report is not been saved.

    Note: NAS is installed and the Job queue is working for other functionality such as inserting data in tables, send e-mail and saving a report in HTML format by using the function SAVEASHTML.

    Any ideas regarding this issue.

    thanks

    Hi

    Nas is like Classic Client without an interface.
    You cannot create a PDF with a NAS. You can create a PDF with a published Web Service, called by a Nas (if it can be useful).

    Bye

    Matteo
    Reno Sistemi Navision Developer
  • Options
    claytonclayton Member Posts: 3
    Thanks for your reply Matteo
  • Options
    clauslclausl Member Posts: 455
    Maybe also explore the options I outlined in this blog post:http://blogs.msdn.com/nav/archive/2009/10/08/send-email-with-pdf-attachment-in-nav-2009.aspx

    Regards,
    Claus
    Claus Lundstrøm | MVP | Senior Product Manager | Continia.com
    I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
    I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)
  • Options
    parambparamb Member Posts: 85
    Hi All,

    Can some one provide more information on how to get the Job Queue executed in 3 tier.

    I have a codeunit which creates PDF copy of the report when called from the RTC. I would like the same code to be executed using Job Queue but it doesnt work. All I know is that the comand to create the PDF copy of the report works only with RTC.

    The below posting from Matteo says 'You can create a PDF with a published Web Service, called by a Nas (if it can be useful)'. I am looking for how to call the published codeunit from nas to have the PDF copy created.

    Thanks in advance for any help.

    Paramb
Sign In or Register to comment.