记录一些crystal关于runtime的须要的 change connection info 的操做
整体流程
PS: 执行流程不能出现前后错误。java
String dbusername = ; String dbpassword = ; //先换table信息 JRCChangeDatabaseConnection.launchApplication(rcd,"",dbusername,dbpassword,null); //再填充执行信息 Fields<IField> feilds = rcd.getDataDefController().getParameterFieldController().getPromptParameterFields(null); for(IField field: feilds){ if("paramname".equals(field.getName())){ rcd.getDataDefController().getParameterFieldController().setCurrentValue("", field.getName(), crsOperationProperty.getSqlDataInstanceId()); } } } byteArrayInputStream = CRDocumentHelper.export(rcd, OutputFormat.PDF);