Hi,
Our team is facing some issues when exporting reports using BO 4.1 via ASMX Web Services. When we export some reports to excel, the columns are merging, see screenshot.
Unfortunately we can not switch to RESTful services (at least not now)
Here is a snippet of the report retrieval code:
boViewSupport = new BusinessObjects.DSWS.ReportEngine.ViewSupport();
boViewSupport.ViewType = BusinessObjects.DSWS.ReportEngine.ViewType.BINARY;
boViewSupport.ViewMode = BusinessObjects.DSWS.ReportEngine.ViewModeType.DOCUMENT;
if (ExportType.ToUpper() == "PDF")
{
boViewSupport.OutputFormat = BusinessObjects.DSWS.ReportEngine.OutputFormatType.PDF;
}
else if (ExportType.ToUpper() == "EXCEL" || ExportType.ToUpper() == "XLS")
{
boViewSupport.OutputFormat = BusinessObjects.DSWS.ReportEngine.OutputFormatType.EXCEL;
}
else
{
boViewSupport.OutputFormat = BusinessObjects.DSWS.ReportEngine.OutputFormatType.PDF;
}
boRetrieveBinaryView = new BusinessObjects.DSWS.ReportEngine.RetrieveBinaryView();
boRetrieveBinaryView.ViewSupport = boViewSupport;
boRetrieveData = new BusinessObjects.DSWS.ReportEngine.RetrieveData();
boRetrieveData.RetrieveView = boRetrieveBinaryView;
Any assistance is greatly appreciated!
Thanks!