Crystal Report Viewer:
https://www.google.com/url?q=https%3A%2F%2Fcommunity.appeon.com%2Findex.php%2Fqna%2Fq-a%2Fhow-to-incorporate-crystal-report-viewer&sa=D&sntz=1&usg=AOvVaw1q4yZ4z1dtYMqx1KXi1Dmk
NOTES:
- I even got this working also for 64 bit pb executables and powerserver.
- All of the VS code of my example needs thorough revision and adaptation to your database and needs. It's the ruins I had to build my solution upon.
- It's a PAIN to distribute the ActiveX to clients. You have to build an installer that registers everything correctly.
- Avoid Crystal Reports if you can. You can only have one version of the runtime installed on a client. If any other company uses crystal reports on your customer's pc and they use a different version, your version for your application will stop working and you'll have to recompile and redistribute or come to an agreement with the other company working for your customer on using the same runtime versions.
- I'm passing the DB user and password to a C# function in an unencrypted way. This should be avoided. The user can be passed, but the password shouldn't. The C# solution can simply use any predefined user for viewing crystal reports and you can still filter the report by user, since you DO pass that one.
regards