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 21/05/2008, 17h41   #1
Futur Membre du Club
 
Inscription : avril 2003
Messages : 74
Détails du profil
Informations forums :
Inscription : avril 2003
Messages : 74
Points : 18
Points : 18
Par défaut Supprimer les fichiers images générés par BIRT

Bonjour à tous,

Je génère mes rapports au format html. Pour les graphiques j'utilise donc les lignes de codes suivantes qui permettent de stocker le graphique dans une image :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
			//Configure the emitter to handle actions and images
			HTMLEmitterConfig emitterConfig = new HTMLEmitterConfig();
			emitterConfig.setActionHandler( new HTMLActionHandler());
			HTMLServerImageHandler imageHandler = new HTMLServerImageHandler();
			emitterConfig.setImageHandler(imageHandler);
			config.getEmitterConfigs().put("html", emitterConfig);
 
			//Set Render context to handle url and image locataions
			HTMLRenderContext renderContext = new HTMLRenderContext();
			//Set the Base URL for all actions
			renderContext.setBaseURL(contextPath);
			//Tell the Engine to prepend all images with this URL - Note this requires using the HTMLServerImageHandler
			renderContext.setBaseImageURL(contextPath + "/images" );
			//Tell the Engine where to write the images to
			renderContext.setImageDirectory(imageDirectory);
	 		HashMap contextMap = new HashMap();
 
			contextMap.put(EngineConstants.APPCONTEXT_HTML_RENDER_CONTEXT, renderContext);
			task.setAppContext(contextMap );
Lorsque que j'appelle cette fonction de génération de mon rapport il stocke donc des fichiers temporaires dans mon imageDirectory. Ma question est donc la suivante : Comment fait-on pour supprimer ces fichiers temporaires une fois le rapport généré et affiché ?

Merci pour vos réponses !
elbrujo2323 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 17h07.


 
 
 
 
Partenaires

Hébergement Web