enginee.openReportDesign birt set path of file code example

Example: enginee.openReportDesign birt set path of file

IReportDocument ird = engine.openReportDocument("c:/work/test/TOCTest.rptdocument");
					//get root node
					TOCNode td = ird.findTOC(null);
					List children = td.getChildren( );
					//Loop through Top Level Children
					if ( children != null && children.size( ) > 0 ){
						for ( int i = 0; i < children.size( ); i++ ){
							TOCNode child = ( TOCNode ) children.get( i );
							System.out.println( "Node ID " + child.getNodeID());
							System.out.println( "Node Display String " + child.getDisplayString());
							System.out.println( "Node Bookmark " + child.getBookmark());
						}
					}

Tags:

Misc Example