Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using dll in Crystal Report

Status
Not open for further replies.

AurobindoSaha

Programmer
Mar 11, 2004
57
US
I have some 3rd party dlls that uses complex calculation to return data.

Can I use Crystal Report XI to design report that will use these dlls (as functions/formula) to get back data.

Please note that the dlls are not my datasource of the reports. I want to use this dlls as functions, where I will pass some values and get back some value - the returned value will displayed in report.

Can I achieve this using Crystal Report XI R2? The reports will be published using Crystal Enterprise or Infoview.

Thanks in advance for any suggession.

Thanks
Aurobindo
 
Yes, this can be done.

If the .dlls are already written for this, all you have to do is register them on your workstation, and the functions will be available.

If the .dll is something you are developing yourself, there are a few rules, one of which is that the vb project name must start with "cr".

George Peck covers this topic masterfully and at the same time briefly in a chapter in his books "Crystal Reports __ - The Complete Reference". Replace the __ underscores with your version of crystal. The book itself is going to be $35-$4o but is well worth it.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"What version of URGENT!!! are you using?
 
Thanks you dgillz. I have that book in my office library. I will check this and let you know the outcome.

Thanks for your sugession.

Aurobindo
 
Hi dgillz

I went through one of the books in our library.

The overall idea the book shares is -

1. Using Visual Basic or VC++, Create new ActiveX Dll project and make dll

2. In Crystal Report report new connection use "COM Connectivity" In Program Id enter COMM Data Provider as ProjectName.ClassName for example, Xtreme.DataProvider.

Let me try this with existing dlls I have and will get back to you.

Thanks
Aurobindo

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top