Précédent   Forum des professionnels en informatique > Logiciels > Solutions d'entreprise > Business Intelligence > BIRT
BIRT Forum d'entraide sur BIRT (Business Intelligence and Reporting Tools). Avant de poster --> FAQ BIRT,Tutoriels BIRT
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 20/02/2007, 11h04   #1
Futur Membre du Club
 
Inscription : août 2006
Messages : 33
Détails du profil
Informations forums :
Inscription : août 2006
Messages : 33
Points : 18
Points : 18
Par défaut BIRT chart eclipse

Bonjour je veux afficher une état générer par Birt dans un browser en utilisant eclipse et l’engine de Birt, et cette état contient une composante Chart et ça ne marche pas, j’utilise le code suivant
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
 
private void previewReport(String strPath){
 
		EngineConfig config = new EngineConfig();
		// Create the report engine
		HTMLEmitterConfig hc = new HTMLEmitterConfig();
		HTMLCompleteImageHandler imageHandler = new HTMLCompleteImageHandler();
 
		hc.setImageHandler(imageHandler);
		config.setEmitterConfiguration(HTMLRenderOption.OUTPUT_FORMAT_HTML, hc);
		ReportEngine engine = new ReportEngine(config);
		IReportRunnable design = null;
		try {
			// Open a report design - use design to modify design, retrieve
			// embedded images etc.
			String reportPath = strPath;
			FileInputStream fs = new FileInputStream(reportPath);
			design = engine.openReportDesign(fs);
			IRunAndRenderTask task = engine.createRunAndRenderTask(design);
 
			// Set Render context to handle url and image locataions
			HTMLRenderContext renderContext = new HTMLRenderContext();
			renderContext.setImageDirectory("c:/test/image");	
			HashMap<String, HTMLRenderContext> contextMap = new HashMap<String, HTMLRenderContext>();
			contextMap.put( EngineConstants.APPCONTEXT_HTML_RENDER_CONTEXT, renderContext );			
			task.setAppContext(contextMap);
 
 
			// Set rendering options - such as file or stream output,
			// output format, whether it is embeddable, etc		
			IRenderOption options;
			options = new HTMLRenderOption( );
			ByteArrayOutputStream bos = new ByteArrayOutputStream();
			options.setOutputStream(bos);
			options.setOutputFormat("html");			
 
 
			task.setRenderOption(options);
 
			// run the report and destroy the engine
			task.run();
			task.close();
 
			//set Browser text accordingly
			browser.setText(bos.toString());
 
			engine.destroy();
 
		} catch (Exception e) {
			e.printStackTrace();
 
		}
 
    }
aliomrani1 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/02/2007, 11h20   #2
BiM
Modératrice
 
Avatar de BiM
 
Femme
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
Inscription : janvier 2005
Messages : 7 299
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 26
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

Informations forums :
Inscription : janvier 2005
Messages : 7 299
Points : 8 650
Points : 8 650
Bonjour !

Et ton erreur est ?
__________________
__~{@ BiM - Modératrice "Business Intelligence" @}~
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
___________.~{@ Lapine crétine @}~
BiM est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/02/2007, 11h41   #3
Futur Membre du Club
 
Inscription : août 2006
Messages : 33
Détails du profil
Informations forums :
Inscription : août 2006
Messages : 33
Points : 18
Points : 18
l'erreur c'est que la composante chart ne s'affiche pas
aliomrani1 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/02/2007, 11h45   #4
BiM
Modératrice
 
Avatar de BiM
 
Femme
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
Inscription : janvier 2005
Messages : 7 299
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 26
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

Informations forums :
Inscription : janvier 2005
Messages : 7 299
Points : 8 650
Points : 8 650
A exactement trois sujets plus loin... http://www.developpez.net/forums/sho...d.php?t=276799

Et en cherchant encore un peu... http://www.developpez.net/forums/sho...d.php?t=200474

__________________
__~{@ BiM - Modératrice "Business Intelligence" @}~
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
___________.~{@ Lapine crétine @}~
BiM est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/02/2007, 15h35   #5
Futur Membre du Club
 
Inscription : août 2006
Messages : 33
Détails du profil
Informations forums :
Inscription : août 2006
Messages : 33
Points : 18
Points : 18
j'ai encore des problèmes quelqu'un peux m'aider
aliomrani1 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/02/2007, 15h37   #6
BiM
Modératrice
 
Avatar de BiM
 
Femme
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
Inscription : janvier 2005
Messages : 7 299
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 26
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

Informations forums :
Inscription : janvier 2005
Messages : 7 299
Points : 8 650
Points : 8 650
Si tu donnes quelques précisions oui.
__________________
__~{@ BiM - Modératrice "Business Intelligence" @}~
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
___________.~{@ Lapine crétine @}~
BiM est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 04h32.


 
 
 
 
Partenaires

Hébergement Web