Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Custom function - report only runs under the creator's Windows logon

Posted on 2006-11-17
7
Medium Priority
?
225 Views
Last Modified: 2012-06-21
I've created a Crystal 10 report that produces a file which is exported as a text file with fixed length fields from within a third party application for which I don't have the source code.

To date all of the Crystal 10 reports I've created work fine in the application which uses Crystal 9 runtime files.

I used the custom function, below, in this report to pad string fields to the length I require. There is no built-in padding function in Crystal 10.

 Function (stringvar InString, numbervar StrLength)
 // PadExact - make a string field an exact length
 // Input: InString, the string to be trimmed or padded
 // StrLength, the desired length
 // Example: PadExact(City,10)+State
 // Antioch TN // Nashville TN
 // ChattanoogTN
left(trim(InString)+ space(StrLength),StrLength);

I can run the report from within the application on any PC on my network under my own Windows logon, but it returns an error under any other user's  Windows logon.
 
The error message is:
 
“The Report Engine was unable to run the report.
 Please check that all the Report Engine DLLs are
 present on your system”
 
The Report Engine DLLs are all in order on the PC of the user who needs the report.
 
I've tried installing Crystal 10 her PC. The report runs fine withinin Crystal but the error still appears when it's run within the application. The user has 'full control' permissions for the file.
 
Any advice would be appreciated.
0
Comment
Question by:peadar86
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 17969061
Check the permissions for the custom function.

mlmcc
0
 

Author Comment

by:peadar86
ID: 18002498
I couldn't find any way to view or the permissions for the function within Crystal 10.

I resolved the problem by replacing each instance of the the custom padding function in the report with thefunctions it uses i.e. left(trim(InString)+ space(StrLength),StrLength)
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 18012430
You check the permissions on the file system in the OS not through Crystal.

mlmcc
0
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

 

Author Comment

by:peadar86
ID: 18022621
The user has 'full contol' access permissions to the report in the OS.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 18022761
PAQ - No problem

mlmcc
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 18046697
Closed, 250 points refunded.
DarthMod
Community Support Moderator
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question