-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Parameter Passing to the one crystal report rpt file #45
Comments
Odd that you would be getting a log on error on the second execution but not the first. Make sure the option to save data within the crystal report is unchecked. It may help with troubleshooting if you post your entire script including how you are performing the loop. |
I am also getting same issue. 1.If parameter value is same as parameter value in .rpt file, then pdf is generating successfully. Error in File filename 15888_14948_{EEA9A5DC-1293-4441-A9B9-6D37AC82DF6E}.rpt: |
Hello mhertzmeld If you have any idea for above scenario ,Please Let me know. If any other csharp library file for that case ,pls let me know. Thanks |
You should only need one crystal report file, your template. You will loop through your list of branches and execute ninja for each branch, specifying the branch in the parameter. Also, if you are using the 64bit version of Ninja you need to make sure that you are using the 64bit version of the ODBC driver, or if you are using the 32bit version of ninja you need to make sure you are using the 32bit version of the ODBC driver. |
Hi, @mhertzfeld can we have skype call regarding this if you don't mind? |
I will not have time for a call until next week. I will try to help you here for now. I've never worked with an Oracle DB before. I typically work on SQL Server and DB2. But the DB you are using shouldn't really matter to Crystal or Ninja. However the way you are trying to connect to the DB may matter. On the first execution where ninja is running ok, do you think ninja is connecting to the database and pulling data from the DB or do you think it may be using data that has been saved in the rpt file? It doesn't make sense to me that on the first execution you would be able to connect to the database and pull data ok but on the second execution you would be having problems connecting to the database. Especially if the script is essentially the same except for the branch number being different. Disable the "Save data in report" option and run it for a branch 1 where it was executing ok. Do you get an error now? Are you able to try using an ODBC DSN instead of a JDBC? Here are some issues related to Oracle and JDBC. Also, once you get this working you may want to look at my fork of Ninja. It has some additional features and bug fixes that aren't in the original version of Ninja. The newest branch I am working on will make it easier to run Ninja using PowerShell (see the powershell portion of the readme). |
I want to pass dynamic parameter to one crystal report rpt file . For example I have 250 branches and i want to pass parameter with looping from command line. The crystal report file is used with the dynamic parameter field .When i export the rpt file from crystal Ninja with parameter which is map with rpt's file parameter file parameter .If parameter is same , the report of pdf format is successfully generated .When I passed the second parameter with looping ,the follwing error is occured.
The text was updated successfully, but these errors were encountered: