5 Replies Latest reply: Jan 6, 2009 9:24 PM by David Hilton RSS

Changing the Default path for the Report Viewer's temp directory

Dana Moonshine
Currently Being Moderated

Hi,

we are using the report viewer on thin client machine with no hard-drive.

Is there any way to change the default path of the viewer's temp directory to another path?

(for instance -  map it to a network drive)

 

Thanks,

  • Re: Changing the Default path for the Report Viewer's temp directory
    Currently Being Moderated

    Hi Dana,

     

    If you are talking about the c:\Windows\Team directory where Crystal creates the temporary rpt files before displaying the report then you need to change the system's default Temp directory location so that all the application can reflect to the changes as this configuration is taken by Crystal from the system.

     

    Hope that helps.

     

    Regards,

    AG.

  • Re: Changing the Default path for the Report Viewer's temp directory
    Currently Being Moderated

    Hi Dana.

     

    Since you are using the thin clients, you will need to make changes on the main server. In such scenario kindly make sure that you have administrative permissions on that server to make changes in the Environment Variables os the system

     

    Ranjeet.

    • Re: Changing the Default path for the Report Viewer's temp directory
      Currently Being Moderated

      Hi,

       

      See if this helps,

       

      1. Right click on My Computer and click on Properties. In the resulting dialog click on the Advanced tab

      2. Click on the button near the bottom labeled Environment Variables

      3.You may see both TMP and TEMP listed in the section labeled User variables for (account). That's      the common location; each different login account is assigned its own temporary location.

      4.You may see both TMP and TEMP listed in the section labeled User variables for (account). That's the common location; each different login account is assigned its own temporary location.

       

      Personally, I prefer to have a single location for the entire system. So if TMP and TEMP are present in the top list, I click on each and then click on Delete. However you can simply edit them, as we're about to edit the System copies, if you prefer

       

      5.If you scroll down in the bottom list labeled System Variables you'll find TMP and TEMP again. Click on one, and then press the Edit button:

       

      6.In the Variable value: edit box you can now specify a path to a directory that Windows and many other programs should use for temporary files

       

      Please let us know the updates.

       

      Thanks,

      Prasad Kanchan

  • Re: Changing the Default path for the Report Viewer's temp directory
    David Hilton
    Currently Being Moderated

    The temp file location used with the CrystalReportViewer control for the web can be changed through the registry. This might work in your case too.

    - Open the registry editor by going to Start > Run. Type in regedit.exe

    - Click OK

    - Navigate to HKLM\SOFTWARE\Crystal Decisions\11.5\Report Application Server\Viewer

    - If this key does not exist you will need to create it.

    - Create a new string value called CrystalImageDir. Then, set the value to a new location for the temporary image files.

    - This can be another location on the server, or a UNC file server.

    - If this is a secure environment you'll need to make sure the Network Service or ASPNET account has access to the file server.

Actions