The Artima Developer Community
Sponsored Link

Legacy Design Forum
Event Generator Idiom

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Crystal and java

Posted by shnar on February 05, 2002 at 6:54 PM

Doing the same thing here, having to print a Crystal Report from data being fed through Java objects. Our solution, have a special Win32 area in our network (it's a hybrid platform) for the java side, use IBM's Alphawork's Bridge2Java to wrap a COM object written in VB. This COM object has a simple interface, one method called Print that accepts 3 arguments: Printer, ReportFileName, and ReportXML. The ReportXML is loaded into a ADORecordset, then the Crystal COM object is istantiated, the report loaded, and the ReportXML is assigned to the Crystal database tables.

This works, sort of. I've had to fish around and try to figure this out on my own. There's no much documentation for n-tier/disconnected solutions with Crystal so I'm hoping to find someone who's done something similar and compare notes...

-shnar



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us