記錄一些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);