[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[birt-news] BIRT_HOME location
|
- From: "Prateek Sharma" <prateek3.14@xxxxxxxxx>
- Date: Tue, 7 Oct 2008 11:34:20 +0530
- Delivered-to: birt-news@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=23O0a9IkE6gwcP0MxRsUrJNE15npk++vXqJrdGAR6vE=; b=w51Zb7xbIQm1an9qFvM/90gayIYWeUq1fYfo/IxWT03KJO4L/aSgo3ZfDyq5XTj4m5 dNhEe+dJ3xLlcJ4EFH1cGXUl/m60He6LzWq8mySRNgORCgqtP7QV3ZO37gZTydne3SN5 n2wlSWjTIGwYqRSnxdiHbakSaTGeVXjIX4B3w=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=cRzZai7tQxw7zsoYZV3zEfwYax7vLQ17sdtuDGJQJnmII5QJqHHToN/ocNzX++W0K+ lEjYCpfR+/twyY69VJHPRyjCtH3Lbfl1MCaulrYnz6R1YIW26KS56a+drgkTrVZ2gqdU HVwYTAjjXxONaGy1jWnIkRQlHqqxuRH8DrVSQ=
Hi all,
I want to create a BIRT reportEngine programmatically from a java
program in eclipse. (more specifically, its an eclipse plugin).
All the BIRT plugins are properly loaded etc, and i can launch the
birt report designer by running the app.
What is the value of BIRT_HOME in this case? I am not using the birt
runtime directly, rather i am using the birt plugins themselves.
Here is the code i am using to start up birt:
IReportEngine engine=null;
EngineConfig config = new EngineConfig;
config.setBIRTHome("../ReportEngineProject");
try{
Platform.startup( config );
IReportEngineFactory factory = (IReportEngineFactory)
Platform.createFactoryObject(
IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTO RY);
engine = factory.createReportEngine( config );
} catch ( Exception ex){
ex.printStackTrace();
}
</code>
Basically what i want to do is to open a design template from within
the program and emit it.
Thanks a lot!