Getting an error in RTC report with SAVEASPDF statement

JAJJAJ Member Posts: 52
edited 2012-04-18 in NAV Three Tier
Hi everyone!

I have the environment bellow :

A RTC report that call in the OnPostReport trigger a another RTC report with REPORT.SAVEASPDF(...);

I am getting the error bellow :

The server "...." is either unavailable or your connection has been lost. Do you want to attempt to reconnect?


Anoyone knows how to solve the problem?

Thanks in advance!

Answers

  • kinekine Member Posts: 12,562
    Have you checked the server event log for error messages with more detail about this problem?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • JAJJAJ Member Posts: 52
    kine wrote:
    Have you checked the server event log for error messages with more detail about this problem?


    Thanks Kine!! :thumbsup: , I did not think that. Yes the eventviewer says : System.IO.FileNotFoundException.
  • kinekine Member Posts: 12,562
    Than question is, where you want to save the PDF, is the folder exists on the server? Have the server access into it? :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • JAJJAJ Member Posts: 52
    kine wrote:
    Than question is, where you want to save the PDF, is the folder exists on the server? Have the server access into it? :-)

    Hi Kine, I want to save the file in the server and this part is ok. The problem is related with Microsoft.ReportViewer. :(

    Could not load file or assembly 'Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

    Regards.
  • kinekine Member Posts: 12,562
    Than check that the prerequisites were correctly installed on the server. Try to reinstall the NAV server through using the setup.exe from the root of the DVD and not directly the .msi from the subfolder.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • JAJJAJ Member Posts: 52
    kine wrote:
    Than check that the prerequisites were correctly installed on the server. Try to reinstall the NAV server through using the setup.exe from the root of the DVD and not directly the .msi from the subfolder.

    Thanks a lot Kine, the problem was that I had not installed the Report Viewer in the server.

    Regards.
Sign In or Register to comment.