The Artima Developer Community
Sponsored Link

Java Answers Forum
print a report with i-net crystalclear ??

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Carina

Posts: 4
Nickname: carina
Registered: Jun, 2002

print a report with i-net crystalclear ?? Posted: Jun 14, 2002 3:36 AM
Reply to this message Reply
Advertisement
Hi,

i want to print a report (designed with seagate Crystal Reports) using the
i-net CrystalClear Java Report Engine.
Does anybody know how to program these engine?

I have already tryed it with the following code
but i always get the error:
java.lang.RuntimeException: This method is not supported anymore.
Please use the method "setReportData" instead.

..........

// create the report viewer
ReportViewerBean viewer = new ReportViewerBean();
viewer.init();
viewer.setHasGroupTree(false); //don't show a group tree

// Set the report file
String strUrlPar = "file:C:Reports/Report.rpt";
eng.setDll("pdsdb2.dll");
eng.setConnection(getDBConnection());
eng.setUser(Anmeldedaten());
eng.setPassword(Anmeldedaten.getPwd());
eng.setReportFile(strUrlPar);
eng.setPrompt(str,0);

viewer.setEngine(eng);

eng.execute();

// start the viewer thread
viewer.start();

// Print the report without any user interaction
viewer.printView(false);

catch (Throwable x) {
new Messagebox(new Frame(), "Fehler@com.heidenhain.gui."
+ "ErgebnisSucheDialog.mouseClicked(MouseEvent): \n" + x);
}

.........
What's wrong?

Topic: accept password in dos using java Previous Topic   Next Topic Topic: problems with Lists in Frames

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use