Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Unable to use csv-emitter-birt-plugin
Unable to use csv-emitter-birt-plugin [message #1258829] Thu, 27 February 2014 20:10 Go to next message
Chun Tat Chu is currently offline Chun Tat ChuFriend
Messages: 11
Registered: August 2012
Junior Member
I am currently using BIRT 4.2.2, to be exact it is 'ver. 4.2.2.v201210101433-8F8j7cFT0z0-TtIsTlT0z-a'. and my Eclipse is version 3.8.2.

I am trying to export CSV in BIRT in my plugin.

I added org.eclipse.birt.report.engine.emitter.csv_1.0.0.201110121016.jar into the dropins directory under my Eclipse installation.

I can add the org.eclipse.birt.report.engine.emitter.csv into my runtime dependency just fine in the manifest but when I declare CSVRenderOption object in my code, I have the following error.


Access restriction: The type CSVRenderOption is not accessible due to restriction on required library /usr/local/eclipse-3.8/dropins/org.eclipse.birt.report.engine.emitter.csv_1.0.0.201110121016.jar

What did I do wrong there? Do I have to download a different version of the CSV emitter from somewhere?

Thanks!
Re: Unable to use csv-emitter-birt-plugin [message #1268684 is a reply to message #1258829] Mon, 10 March 2014 21:34 Go to previous message
Joe C is currently offline Joe CFriend
Messages: 5
Registered: March 2014
Junior Member
Hi, I had problems too and I had to comment the CSVRenderOption like you can see in the code below. The following code is working for me with 4.2.2:
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
		options.setOutputStream(baos);
		options.setOutputFormat("csv");
		//options.setOutputFormat("CSVRenderOption.OUTPUT_FORMAT_CSV");
		options.setDelimiter(";");
		
		task.setRenderOption(options);
		task.setEmitterID("org.eclipse.birt.report.engine.emitter.csv");

		task.getAppContext().put(EngineConstants.APPCONTEXT_CLASSLOADER_KEY,
				Thread.currentThread().getContextClassLoader());
		try {
			task.run();
			task.close();
		} catch (EngineException e) {

			e.printStackTrace();
		}

Previous Topic:BIRT - Web App Help Needed
Next Topic:Dynamic text issue
Goto Forum:
  


Current Time: Sat Apr 27 04:02:43 GMT 2024

Powered by FUDForum. Page generated in 0.03177 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top