RAM Commander User Manual

Reporting

Reporting

Previous topic Next topic  

Reporting

Previous topic Next topic  

Problem 1: MS Word reports generation does not work in Client/Server installation

Additional fault isolation:

Try running WordRepGenerator.exe application in RAM Commander installation folder, BIN subfolder from the client PC. If RAMC server has shared folder with RAM Commander installed, and this folder is mapped as network drive (e.g. R:) on client PC, then run R:\RAMC32\BIN\WordRepGenerator.exe. If it does not run, copy it to local drive C: and try running it again. If it runs now and program screen appears - the reason is insufficient security permissions for running .NET applications from intranet locations.

Solution:

Grant FullTrust security level to "local intranet" zone or to R:\RAMC32\BIN folder, on all workstations.

The best way to achieve this is to run the following command (using command prompt or Start->Run menu):

c:\windows\microsoft.net\framework\v2.0.50727\caspol.exe -cg LocalIntranet_Zone FullTrust

Confirmation message will appear - answer Yes.

If you wish to grant FullTrust to the required folder only, issue the following command:

c:\windows\microsoft.net\framework\v2.0.50727\caspol.exe -m -ag 1.2 -url file://R:/RAMC32/BIN/* FullTrust
Confirmation message will appear - answer Yes.

Then try running R:\RAMC32\BIN\WordRepGenerator.exe from the network again - it should work now.

If you wish to insert such command to batch (login script etc.), use additional commands to switch the prompting off and then on:

CasPol.exe -pp off 

c:\windows\microsoft.net\framework\v2.0.50727\caspol.exe -cg LocalIntranet_Zone FullTrust

CasPol.exe -pp off 

 

Problem 2: MS Word reports generation does not work - message about required .NET Framework 2.0 appears.

Solution:

Install Microsoft.NET Framework 2.0 - take the setup package from ALD Installation CD (\RAMC\Tools\dotnetfx20.exe) or from Microsoft web site ( https://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en ).

 

Problem 3: MS Word reports generation does not work, generation window shows message like "Critical failure: Exception generating report: System.Runtime.InteropServices.COMException (...): Bad parameter at Word.Options.set_Pagination..."

Reason: For some reason, Microsoft Word 2007 automation does not work properly if no user name and initials are defined during the MS Office installation.

Solution:

See Microsoft knowledge base article https://support.microsoft.com/kb/948682/en-us :

To resolve this issue, add the user name and the initials in the Word Options dialog box.

To do this, open the MS Word, click the Microsoft Office Button, click Word Options, enter a user name and initials under Personalize your copy of Microsoft Office, and then click OK.

 

Problem 4: Error messages while trying to open the generated MS Word document

Reason: Document to be opened contains macros and MS Word security is set to not allow Macros.

Solution: Enable opening documents with Macros in MS Word, or remove Macro commands from default.dot template used to generate the MS Word document from the software.