cancel
Showing results for 
Search instead for 
Did you mean: 

Capture Webi export command for custom call

01-30-2020 11:15 PM
885 views 4 comments
0 Likes
SAP Managed Tags
Subscribe

We are trying to make the export function work from the Web Intelligence viewer in our products browser control. We are using Microsoft's WebView browser control, and it has an issue when exporting a file to PDF. I can capture the failed event, and I have the following URIs,
1.

https://OURSERVER/BOE/OpenDocument/1907091710/AnalyticalReporting/webiDHTML/DownloadPDForXLS/we00000...
2.

https://OURSERVER/BOE/OpenDocument/1907091710/AnalyticalReporting/webiDHTML/viewer/downloadPDForXLS....

Is there anyway i can make another call out to anything and just have this PDF downloaded to the computer within my C# application? I have tried using a WebClient object to download the file at the first URI but i just get the following

<html>
<head>
<script type="text/javascript">
parent.location = "/BOE/OpenDocument/1907091710/OpenDocument/opendoc/openDocument.faces";
</script>
</head>
</html>

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

DellSC
Active Contributor
0 Likes

Where are you getting the URIs from?

Which version of BOBJ are you running? There may be a way to schedule the document to "Run Now" in PDF format and then download the resulting PDF from the system to a FileStream to get it.

-Dell

Former Member
0 Likes

The WebView control fails with a UnviewableContentIdentifiedEvent after I click the export button in the Web Intelligence viewer then select PDF and click OK, and when I look at the event properties of that event, it has a URI (number 1 above) and a referer (number 2 listed above)


We are on SAP BI 4.2 sp06, and that sounds just like what I need, if possible.

Former Member
0 Likes

Though if you scheduled a report to run now, it wouldn't have the potential unsaved changes the user may have made before clicking export, or the export settings that the user has chosen, right? Is there anyway to get the actual report that was ran when the user clicks export? If not, I may go another direction.