Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Retrieve all the pages in the WEbi report when exporting to HTML


We are currently having a webi report, whose content spans more than 100 pages.

We are trying to save the report using the BO SDK as HTML, but when we are saving as HTML we are getting only the first page of the report

				for(int i=0;i<doc.getReports().getCount();i++)
					Report rep = doc.getReports().getItem(i);
//					get a view of the report in HTML format
					HTMLView docHtmlView = null;
					docHtmlView = (HTMLView)rep.getView(OutputFormatType.HTML);
					String sHTMLView = docHtmlView.getContent();
					System.out.println("The string is ::"+sHTMLView);
					FileOutputStream html_fos= null;
					 fileName = "POC" + "_" +i+ userID+ "."+"html";
					html_fos = new FileOutputStream("D:\\BO_POC\\reports\\"+fileName);

The above is the code that we are using to save the report in HTML format.

We are able to save the report in XLS, CSV and PDF successfully.

Can you please point out where we are going wrong in the above code snippet.

Thanks a lot,


Former Member
Not what you were looking for? View more on this topic or Ask a question