Skip to content
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

Running CrystalReportsNinja in Php #2

Open
abnertole opened this issue Aug 31, 2017 · 10 comments
Open

Running CrystalReportsNinja in Php #2

abnertole opened this issue Aug 31, 2017 · 10 comments

Comments

@abnertole
Copy link

Hi,

Thanks for sharing the tool. I have tried it and encountered the error below.

When I run in windows CMD, the crystal report is generated. But when I execute via Php exec(), I am getting the error below. Anything I missed out?

Exception: Unknown Database Connector Error Error in File OPRJ 9496_9704_{1CA7AD4F-AFE6-4FA9-8840-B945674BF453}.rpt: Unknown Database Connector Error Inner Exception: System.Runtime.InteropServices.COMException (0x800002C2): Unknown Database Connector Error Error in File OPRJ 9496_9704_{1CA7AD4F-AFE6-4FA9-8840-B945674BF453}.rpt: Unknown Database Connector Error at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

Thanks.

Abner

@rainforestnet
Copy link
Owner

@abnertole I have never tried to use php to run a .net executable before. I am not sure of that.
I did have a asp.net project that call this and it works.

@fmartiner
Copy link

@abnertole
Set the correct ORACLE_HOME and TNS_ADMIN path in environment variable before launch cmd of CrystalReportsNinja.exe from PHP
Example create a .bat file with:

SET ORACLE_HOME=C:...
SET TNS_ADMIN=C:...
CrystalReportsNinja.exe -F ...

and exec(file.bat)

This solve for me.

@mikecrf121
Copy link

@rainforestnet curious, how did you run this from another .net application?? did your app open a command line and then pass strings to the console, im considering doing something simular ??

@mharned73
Copy link

mharned73 commented Aug 29, 2019 via email

@rainforestnet
Copy link
Owner

@mikecrf121
Copy link

appreciate it thank you! what im trying to do is receive a json object, parse it with a node app and feed it to CRN. very useful library good job!

@mikecrf121
Copy link

@rainforestnet hey quick question, just now running into this issue, is this able to work with generating reports that contain sub reports?

Thanks!

@mharned73
Copy link

mharned73 commented Sep 4, 2019 via email

@aj1432
Copy link

aj1432 commented Feb 19, 2022

hello team Please Explain Step by Step Please
I do not understand Command.

please check attachment, I got error
image

@mikecrf121
Copy link

mikecrf121 commented Feb 25, 2022

@aj1432
What do you mean you don't understand command? Like you can't run CRN at all or you don't understand the parameters? I haven't worked with CRN in years... but this is an amazing amazing program, especially to save money if your facing the same problem my company did at the time. You need to compile it first, what are you using to do that?? If you dont know what im talking about or how to even do that to make code changes if needed then id suggest hiring someone who knows what they are doing, like me haha. Your also trying to run ,from your screen shot the first time with no required param "-F"... If you want I can show you on a one on one with a zoom call? I may charge you to refresh myself though. What are you trying to use crystal report ninja to do? I remember when I did it for the company I was working for a few years ago, we built a custom angular app, with a node backend that executed CRN from the node app and returned the generated crystal reports to AWS S3, and we utilized sqs, sns, lambdas, etc... but anyways we built this app to avoid ridiculous licensing costs associated with generating crystal reports from some program, it was like a per user cost that our company was trying to save money by avoiding the high costs of multiple licenses. I'm also able to build out an app for you if your hiring or interested in contracting me. Can be part time or for a few hours, depending on your needs. Thanks and good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants