views:

64

answers:

2

I have to create reports from my application (java, swt). For reports i am using crystal reports, but i have problem, i can't find SWT code that enables me to open (create) and save report. I have found Swing code that enables me to do that, but i cant find SWT code. So can somebody explain me, or give me code, or tutorial that will help me to to that. Tnx.

A: 

You could try embedding the crystal reports swing components inside your swt application using org.eclipse.swt.awt.SWT_AWT. For more information on how that class can be used check out this article.

Yanamon
A: 

We just implemented an SWT viewer in SWT, but this was only possible by writing a custom ActiveX component, that wraps the Crystal Reports ActiveX control.

The ActiveX of crystal in not usable by SWT directly. If you are interested, we could offer some commercial implementation help.

Daniel
....tnx to all who wanted to help....but in the end i give up....and just called swing form SWT form and it worked just fine.... only thing i couldn't adjust some things...all in all it is not to bad .... one more time tnx...
Armin
We just modified our Crystal Reports Roadmap to dropping this ClosedSource piece of crap altogether and replacing it with Jasper. We just ahad a case where different report versions were in SVN, and no way to get a reliable diff. Awful.
Daniel