Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 2136

Exporting to Excel (.NET) ASMX Web Services BO 4.1 Help!

$
0
0

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.

 

ExcelExport.jpg

 

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!


Viewing all articles
Browse latest Browse all 2136

Trending Articles