cancel
Showing results for 
Search instead for 
Did you mean: 

Loading a Dashboard .swf file

Former Member
0 Kudos

Can a dashboard .swf file be loaded into the CrystalReportViewer?

SPierog

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member93238
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

could you clarify the scenario to be used.

i.e

     1)you want to upload the swf file independently of a crystal report ?

or 2) upload a CR that contains a swf file ?

For:

1) it's not possible.

2) yes, unless you're using windows .net

Let me know if you have different scenario.

Moussa

Former Member
0 Kudos

Moussa thanks for your help.

We have Crystal Reports (.rpt files) and Dashboards (.swf files) on our Crystal Server.

Can I request a Dashboard .swf file from the server and display it with the CrystalReportViewer?

thanks

SPierog

former_member93238
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Steve,

for this scenario, you can simply use opendocument with swf files as per the link below:

http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_opendocument_en.pdf

but  CrystalReportViewer won't do

Regards

Moussa

Former Member
0 Kudos

Moussa

We are using Business Objects Edge Server. Is OpenDocument provided?

We did not see it in the CMC Server List.

thanks

SPierog

former_member93238
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Steve,

in 3.1 it's there but not listed in applications.(it's just an url really)

in BI 4 it should be listed in CMC

Regards

Moussa

Former Member
0 Kudos

Moussa

We are using Business Objects Edge 2011.

I tried to follow the instructions in the Edge Server Admin manual:

1. Go to the "Servers" management area of the CMC.

2. Select Manage > New > New Server.

The "Create New Server" screen appears.

3. From the Service Category list, select Core Services.

4. From the Select Service list, select the services that you want the WACS to host, and click Next.

• If you want the WACS to host web applications such as the CMC, BI launch pad or

OpenDocument, select BOE Web Application Service.

There was no BOE Web Application Service to select.

Is there a way in Visual Studio 2010 to get an swf file objects from the server and play it in a flash player?

thanks

SPierog

former_member93238
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Steve,

1)I would recommend to investigate or ask the question in the forum why the web component is missing.

Opendocument is going to make your life very easy and designed for sdk integration.(see doc http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_opendocument_en.pdf)

2)As for your request, please check the code below ,in Java ,should be easy to adapt for .net.Again much better to implement 1)

Please find below a snippet code that shows how to download a swf document from Enterprise using java:  

//Log onto Enterprise and retrieve InfoStore service.     

enterpriseSession = CrystalEnterprise.getSessionMgr().logon(<username>, <password>, <cmsName>, <authenticationType>);   

infoStore = (IInfoStore) enterpriseSession.getService("", "InfoStore");    

//Retrieve objects to export from InfoStore.    

infoObjects = infoStore.query(INFOOBJECT_QUERY);

if (infoObjects.size() > 0)    

  {

   obj = (IInfoObject)infoObjects.get( 0 );    

   IFlash flashPlugin = (IFlash) obj;    

  //Stream content back to Web browser.    

  response.reset();    

  response.setContentType(flashPlugin.getMimeType());    

  response.setHeader("Content-disposition", "attachment;filename=test.swf");    

  byte[] bytes = flashPlugin.getContent();    

ServletOutputStream outputStream = response.getOutputStream();    

outputStream.write(bytes);    

outputStream.close();    

  }    

   else    

{      

   out.println("Report  not found.");    

  }

Former Member
0 Kudos

Moussa

Thanks for providing the java snippet.

I'm not sure where this snippet would go. Does it need to be translated to C# and run in the code behind for a asp.net page? Does it need to run as a script on the aspx page?

There is no IFLASH type in the .NET SDK.

C# has a HttpResponse Class but I'm not sure how to translate the lines

response.reset();  

response.setContentType(flashPlugin.getMimeType());   

response.setHeader("Content-disposition", "attachment;filename=test.swf");

Can you point me to translations for these items?

thanks

SPierog

former_member93238
Product and Topic Expert
Product and Topic Expert
0 Kudos

i did some research and my assumption was not correct flash content doesn't seem to be available in the .net API.

The hope was to do something like in SAP note 1659864 but it's not possible or not straightforard at least.

Finally, I would like to reiterate my recommendation on investifating why the web component is missing BOE service.life will be much easier after that issue is resolved.

Regards

Moussa