我正在寻找使用数据源对BIRT API进行编码的方向。我不确定如何配置我的应用程序以访问创建的数据源。如果我可以得到一些帮助,那就太好了。我在这里我已经通过BIRT RCP创建了报告。现在,我希望使用常规的Java应用程序和Web应用程序生成报告。两者都将通过我将要创建的GUI传递日期参数。两者都需要有一个数据源。我在这里看到了一些使用报表设计器的示例,但是我没有使用它。我也没有使用BIRT报表创建器(RCP)GUI生成此文件。
谢谢
import java.util.logging.Level;
import org.eclipse.birt.core.framework.Platform;
import org.eclipse.birt.report.engine.api.EngineConfig;
import org.eclipse.birt.report.engine.api.EngineException;
import org.eclipse.birt.report.engine.api.HTMLRenderOption;
import org.eclipse.birt.report.engine.api.IReportEngine;
import org.eclipse.birt.report.engine.api.IReportEngineFactory;
import org.eclipse.birt.report.engine.api.IReportRunnable;
import org.eclipse.birt.report.engine.api.IRunAndRenderTask;
public class ReportGenerator {
public static void main(String args[]) throws EngineException {