Zend Server CE和BIRT与Javabridge的集成

Zend Server CE和BIRT与Javabridge的集成,java,php,eclipse,zend-framework,birt,Java,Php,Eclipse,Zend Framework,Birt,我能够让Zend Server Java桥运行并成功测试它,但是我找不到关于如何让Birt引擎与Zend Server Java桥一起工作的任何信息。有人想出办法让它工作吗 我面临着同样的问题,我可以找到在哪里下载birt api来运行birt报告 php?f=44&t=9452&p=30950&hilit=birt#p30950 如果有人举个例子。。。请告诉我怎么做。。。 谢谢。我找到了一些关于在zend平台上集成birt的信息,您也可以参考此pdf文件 Zend_Birt不是Zend框架的一

我能够让Zend Server Java桥运行并成功测试它,但是我找不到关于如何让Birt引擎与Zend Server Java桥一起工作的任何信息。有人想出办法让它工作吗

我面临着同样的问题,我可以找到在哪里下载birt api来运行birt报告

php?f=44&t=9452&p=30950&hilit=birt#p30950

如果有人举个例子。。。请告诉我怎么做。。。
谢谢。

我找到了一些关于在zend平台上集成birt的信息,您也可以参考此pdf文件


Zend_Birt不是Zend框架的一部分,只是Zend平台的一部分。它不是Zend Server CE afaik的一部分。但是,。因此,通过使用,您可以从PHP与BIRT API进行接口。您正在寻找的
Zend_Birt
API只是一个简单的包装。你可以试着从你的网站上获取一份副本


还有一个是通过。它显然直接连接到BIRT运行时环境。

如果下载3.7运行时,您应该能够生成一个命令 运行报告的行应用程序。附件是一个简单的例子。建造 类确保您拥有运行时中的JAR 在类路径中下载/reportengine/lib目录。一旦建造了你 应该能够以与简单Java应用程序相同的方式调用它。这 示例执行平台启动和关闭,这通常不是 如果要生成大量报告,这是个好主意。更好的 解决方案是将平台启动和报告引擎创建包装在 服务器启动时启动的单例,然后使用引擎 为每个请求创建一个新任务

import java.util.logging.Level;

import org.eclipse.birt.core.framework.Platform;
import org.eclipse.birt.report.engine.api.EXCELRenderOption;
import org.eclipse.birt.report.engine.api.EngineConfig;
import org.eclipse.birt.report.engine.api.EngineConstants;
import org.eclipse.birt.report.engine.api.EngineException;
import org.eclipse.birt.report.engine.api.HTMLRenderOption;
import org.eclipse.birt.report.engine.api.HTMLServerImageHandler;
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;
import org.eclipse.birt.report.engine.api.PDFRenderOption;
import org.eclipse.birt.report.engine.api.RenderOption;
import org.eclipse.birt.report.engine.api.impl.RunAndRenderTask;
import org.eclipse.birt.report.engine.api.script.IReportContext;


public class RunAndRenderTaskTest {

public void runReport() throws EngineException
{

RunAndRenderTask task=null;
IReportEngine engine=null;
EngineConfig config = null;

try{
config = new EngineConfig( );   
//config.setLogConfig("c:/dwn", Level.SEVERE);
//config.setResourcePath("C:/work/workspaces/3.7.1workspaces/BIRT 
Metal/APIs/resources");
Platform.startup( config );

IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject( 
IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
engine = factory.createReportEngine( config );


IReportRunnable design = null;
//Open the report design

design = engine.openReportDesign("Reports/testlibrary.rptdesign");
task = (RunAndRenderTask) engine.createRunAndRenderTask(design);    
IReportContext irc = task.getReportContext();
//task.setParameterValue("Top Count", (new Integer(5)));
//task.validateParameters();


//HTMLRenderOption options = new HTMLRenderOption();    
//options.setImageDirectory("./");
//options.setOutputFileName("output/resample/external.html");
//options.setOutputFormat("html");
//options.setEmbeddable(false);
//options.setEnableMetadata(true);
//options.setEnableInlineStyle(false);
//options.setEnableAgentStyleEngine(true);
//options.setEnableCompactMode(true);

//PDFRenderOption options = new PDFRenderOption();
//options.setOutputFileName("output/resample/hidefooter.pdf");
//options.setSupportedImageFormats("PNG;GIF;JPG;BMP;SWF;SVG");
//options.setOutputFormat("pdf");

//EXCELRenderOption options = new EXCELRenderOption();  
//options.setOutputFormat("xls");
//options.setOutputFileName("output/resample/customers.xls");
//options.setWrappingText(true);

HTMLRenderOption options = new HTMLRenderOption();
//options.setImageHandler(new HTMLServerImageHandler());
options.setSupportedImageFormats("JPG;PNG;BMP;SVG;GIF");
options.setOutputFileName("output/resample/testlibrary.html");
options.setOutputFormat("html");
//options.setOutputFormat("ppt");



task.setRenderOption(options);
task.run();

irc = task.getReportContext();

task.close();
engine.destroy();
}catch( Exception ex){
ex.printStackTrace();
}   
Platform.shutdown( );
System.out.println("Finished");



}   


/**
* @param args
*/
public static void main(String[] args) {
try
{

RunAndRenderTaskTest ex = new RunAndRenderTaskTest( );
ex.runReport();

System.exit(0);

}
catch ( Exception e )
{
e.printStackTrace();
}
}
}

你特别想要什么?给了我很多结果。它们已经成为Zend平台的一部分。它们不是Zend Server CE afaik的一部分。文档说您应该从Zend平台内下载它们。您拥有Zend Server CE,因此可能没有下载链接。您可以尝试从BIRT API获取一个副本,这是一个JavaAPI afaik。因此,通过使用,您可以从PHP与它进行接口。您正在寻找的Zend_Birt API只是一个简单的包装。它不是Zend框架的一部分,而只是Zend平台。您希望我总结上面的评论并提供一个答案供您接受吗?否则,我建议你删除这个问题。