<< Previous Topic | Next Topic >>Return to Index  

Can't close CR reportviewer

August 20 2002 at 7:39 AM
 

 
I try to call a CR like this code in my swing application :

try
{
ReportBeanProperties b = new ReportBeanProperties();
b.setReportName("http://appserver:80/scrreports/General Business/Employee Profile_de.rpt");
//Sales With OnDemand Sub2_de.rpt");
b.init();
}catch (Exception ee)
{
System.out.println("Exception beim Crystals Report");
ee.printStackTrace();
};

I calls the report perfectly but I cant close the reportviewer by klick the close button ( x ). I use JDK1.4.0. How to use the MyWindowAdapter.class ? Any example available ?
TIA
Dirk

 
 Respond to this message   
AuthorReply

Sorry I forgot

August 20 2002, 10:15 AM 

Crystal Report Viewer 1.4.20

java.vendor = Sun Microsystems Inc.

java.version = 1.4.0

os.arch = x86

os.version = 5.0

 
 Respond to this message   
Pooja M.

re: Can't close CR ReportViewer

August 20 2002, 12:52 PM 

Hello Dirk,

You have to simply add the ReportBeanProperties$MyWindowAdapter.class which comes along with the other class files in the pmk.jar under the pmk/com/report folder . I have its coding embedded in the ReportBeanProperties class .You need not bother about its usage.

What you might want to do is :Along with these 3 classes,add the other two classes (namely:CrystalFrame.class and CrystalReport.class) as they will help you resolve issues related to closing of reportviewer.

Regards,

 



Pooja M.,
http://home.attbi.com/~pooja.mohan

 
 Respond to this message   

# re: Can't close CR ReportViewer

August 21 2002, 2:32 AM 

Hi again,
sorry, but I don't know how to do. I import the classes with "import pmk.com.report.*; like desribed in http://home.attbi.com/~pooja.mohan/files/integrating.html.
And how to include ReportBeanProperties$MyWindowAdapter.class ? It isn't public.
And an other thing is an error like this :
Crystal Report Viewer 1.4.20

java.vendor = Sun Microsystems Inc.

java.version = 1.4.0

os.arch = x86

os.version = 5.0

java.lang.NullPointerException

at sun.java2d.SunGraphics2D.<init>(SunGraphics2D.java:211)

at sun.awt.windows.WComponentPeer.getGraphics(WComponentPeer.java:403)

at java.awt.Component.getGraphics(Component.java:2130)

at sun.awt.RepaintArea.paint(RepaintArea.java:167)

at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)

at java.awt.Component.dispatchEventImpl(Component.java:3586)

at java.awt.Container.dispatchEventImpl(Container.java:1437)

at java.awt.Window.dispatchEventImpl(Window.java:1566)

at java.awt.Component.dispatchEvent(Component.java:3367)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

URL = http://appserver:80/scrreports/General%20Business/Employee%20Profile_de.rpt?viewer=java&vfmt=encp&vgen=956&pversion=3&language=de&promptOnRefresh=1

Parameters = cmd=get_pg&page=1&incomplete_page=1&incomplete_page_count=1&smart_images=1

URL = http://appserver:80/scrreports/General%20Business/Employee%20Profile_de.rpt?viewer=java&vfmt=encp&vgen=956&pversion=3&language=de&promptOnRefresh=1

Parameters = cmd=get_ttl

I don't know if this is very seriously. But when I klick the close button in CR viewer the session is dead but exists in MS-Windows task-list. When I close my whole programm the death CR-viewer will close too.
TIA
Dirk

 
 Respond to this message   
Dirk Niemeier

ReportViewerBean - New Features???

August 20 2002, 12:56 PM 

Hi Pooja,
it's nice, that you provide your Report Viewer Bean(Java Viewer). But is there any further documentation available to understand how it works and how to use ? The Report.java is very small and not all functionality is explaind. Do you have some
more ? Or some examples ? What about the new features in version 2 of pmk.jar ?

Best regards,
Dirk Niemeier

 
 Respond to this message   
Pooja M.

re: Report Viewer Bean - New Features

August 20 2002, 12:58 PM 

All that I have to say about the Report Viewer Bean is available on the webpage itself.Incase,you want to know what all can be done with the Bean,please take a
look at
http://home.attbi.com/~pooja.mohan/files/ListOfProperties.doc

Regards,



Pooja M.,
http://home.attbi.com/~pooja.mohan

 
 Respond to this message   
Pooja M.

re: Report Viewer Bean - New Features

August 20 2002, 1:12 PM 


 
 Respond to this message   
Current Topic - Can't close CR reportviewer
  << Previous Topic | Next Topic >>Return to Index  
Find more forums on Computers and InternetCreate your own forum at Network54
 Copyright © 1999-2009 Network54. All rights reserved.   Terms of Use   Privacy Statement  
Crystal Report Related Queries And Issues