测试oaf的一些代码整理,痛苦中,很多不会 { System.out.println("In process Request"); OAApplicationModule am = pageContext.getApplicationModule(webBean); OAViewObject vo = (OAViewObject)am.findViewObject("EmployeeSummaryVO1"); XMLNode xmlNode = (XMLNode) vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS); ByteArrayOutputStream utputStream = new ByteArrayOutputStream(); try { xmlNode.print(outputStream); System.out.println(outputStream.toString()); } catch (IOException e) { // TODO } ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray()); System.out.println(outputStream.toString()); //ServletOutputStream os; //DocumentHelper.exportDocument(pageContext,"HW","REPROT","en","US",inputStream,"PDF",null); DocumentHelper.exportDocument(pageContext,"HW","hw_test_for_employee","en","US",inputStream,"PDF",null); }
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25671596/viewspace-697618/
,如需转载,请注明出处,否则将追究法律责任。