`
soundycui
  • 浏览: 82010 次
  • 性别: Icon_minigender_2
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
void buildParameters() throws SemanticException { ScalarParameterHandle parameterHandle = efactory.newScalarParameter("aaaid"); parameterHandle.setDefaultValue("1"); parameterHandle.setAllowNull(true); parameterHandle.setAllowB ...
java.lang.ClassCastException: org.eclipse.birt.report.model.api.Expression cannot be cast to java.lang.String at org.eclipse.birt.report.model.util.BoundColumnsMgr.dealAction(BoundColumnsMgr.java:604) at org.eclipse.birt.report.model.util.BoundColumnsMgr.dealLabel(BoundColumnsMgr.java:568) at org. ...
ExtendedItemHandle extendedItemHandle = elementFactory.newExtendedItem(null, "Chart"); extendedItemHandle.setHeight( "288pt" ); extendedItemHandle.setWidth( "252pt" ); extendedItemHandle.setProperty( ExtendedItemHandle.DATA_SET_PROP, "Data Set& ...

为报表添加图片

    博客分类:
  • birt
String embededImgName = "mylogo.bmp"; //添加EmbededImage EmbeddedImage image = StructureFactory.createEmbeddedImage(); image.setType(DesignChoiceConstants.IMAGE_TYPE_IMAGE_BMP);//IMAGE_TYPE_IMAGE_JPEG); InputStream is = this.getClass().getClassLoader().getResourceAsStream(" ...
1.创建报表引擎   2.创建设计处理器 reportRunnable = reportEngine.openReportDesign(filePath); designHandle = (ReportDesignHandle) reportRunnable.getDesignHandle( );                   3.导出 IRunAndRenderTask task = reportEngine.createRunAndRenderTask(reportRunnable); a.html      ...
1.创建数据源 数据源别名 "aaa" OdaDataSourceHandle dsHandle = efactory.newOdaDataSource( 数据源别名aaa, "org.eclipse.birt.report.data.oda.jdbc" );          dsHandle.setProperty( "odaDriverClass", "com.mysql.jdbc.Driver" );          dsHandle.setProperty( "odaURL&quo ...

Birt的创建步骤

    博客分类:
  • birt
1.创建designEngine             DesignConfig config = null; try{ config = new DesignConfig( ); IDesignEngineFactory factory = (IDesignEngineFactory) Platform       .createFactoryObject( IDesignEngineFactory.EXTENSION_DESIGN_ENGINE_FACTORY ); IDesignEngine engine = factory.createDesig ...
PluginSettings.instance().getDevice("dv.swt") 异常:can't startup the osgi framework 解决方案:(改为以下几句话) PlatFormConfig pf = new PlatFormConfig(); pf.setProperty("STANDALONE",true); ChartEngine ce = ChartEngine.instance(pf); deviceRender = ce.getRender("dv.swt");
org.eclipse.birt.report.designer.ui.ide, org.eclipse.birt.report.data.oda.jdbc, org.eclipse.birt.report.engine.script.javascript, org.eclipse.birt.report.engine.emitter.html, org.eclipse.birt.core, org.eclipse.birt.report.engine, org.eclipse.birt.chart.device.extension, org.eclipse.birt.chart ...
7.2. PDE/Build links http://wiki.eclipse.org/Equinox/p2/Publisher P2 publisher http://aniefer.blogspot.com/ Blog from PDE Build developer Andrew Niefer http://aniefer.blogspot.com/2009/03/building-p2-rcp-products-in-eclipse.html Andrew Niefer's example for PDE build for RCP applications http:// ...
  SWT 工具包为运行 SWT 的操作系统的原生窗口部件(native widgets)提供了一个健壮接口。但是,原生窗口部件通常都不够用。   Eclipse Nebula 项目致力于用自定义功能部件(包括日历和高级表)来弥补这项缺陷。本教程将演示五个 Nebula 部件,包括 Grid、CDateTime、CompositeTable、PGroup 和 PShelf。      下面是PShelf的一个例子,也有相关颜色设置方案  http://www.ibm.com/developerworks/cn/education/opensource/os-eclipse-nebula/se ...
前段时间看测试人员编写的测试用例,了解到:他们对项目测试所了解的一些方面。主要有以下方面:  1.界面:美观,清晰,规范,适用,色底  2.功能:图形各种呈现方式(及是否可选),内容正确  3.性能:存储上限,响应时间,cpu占用情况  4.数据:中英文,格式,分页,改变类型  5.安全性:警告,日志  6.异常测试:清空、修改数据,远程中断等情况  以上,只是个人的一些一时见解,随笔写下而已,让我了解到一些曾不注意的情况,若有不完善及错误的地方请指出。
新建一个RCP应用程序,它的运行参数为: -Xms40m -Xmx256m 但加入了birt后,它运行老是出错,现改为: -Xmx1025m -XX:PermSize=128M -XX:MaxPermSize=256M -Djavae.net.preferIPv4Stack=true [-XX:+ExplicitGCInvokesConcurrent -XX:+HeapDumpOnOutOfMemoryError] 也可加在后面,暂时不知何用
Platform.addAuthorizationInfo(URL serverUrl, String realm, String authScheme, Map info) 一般参数: serverUrl:Platform.getInstanceLocation().getURL() authScheme:Digest(优先)/Basic 其它可传"" Map<string,String> user = new HashMap<String,String>(2); user.put("name","nmae&q ...
Global site tag (gtag.js) - Google Analytics