cancel
Showing results for 
Search instead for 
Did you mean: 

How to schedule a PDF report using BI4.2 .NET Enterprise SDK

Former Member
0 Kudos

Hi, I am trying to migrate XI3.1 report scheduling C# code to BI4.2 SP2.  Unable to find any .NET samples or documentation showing how to do this, I contacted SAP support who pointed me to a copy of the information held here:  Schedule Webi Report Sample


Unfortunately, I don't believe the code in this link is applicable to BI4.2 and I can find no way to instantiate a WebiFormatOption object as shown.


Two questions:


1) Is it still possible to schedule a PDF report using the BI4.2 .NET Enterprise SDK

2) If so, does anyone have example code which shows the BI 4.2 equivalent of casting an InfoObject to a Report and setting the appropriate WebiFormatOption.


Thanks,


Steve Coffey

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member207665
Active Participant
0 Kudos

Hi Steve,

I have attached the code to schedule Webi Reports which does not have any prompts.

With 4.x you cannot schedule a Webi report with prompts using Web Service SDK.

Migration Guide for your reference:

As conveyed by Dell you would need to move on to RESTFUL Webservice SDK which is specially designed to work with Webi Documents.

Regards,

Vinit

DellSC
Active Contributor
0 Kudos

There are a couple of things you need to know before you start this upgrade.

1.  The 4.x .NET SDK is officially supported in Visual Studio 2010 or newer only.

2.  You can only target one of the full .NET frameworks - the "Client" frameworks will not support the SDK.

3.  If you target .NET 4.0 or newer, there is a new property for any referenced assemblies from the SDK.  It's called "Embed Interop Types" and it's default is true.  You must manually set it to false for each SDK assembly that your project references.

4.  The ReportEngine SDK is no longer available for .NET.  You might have used this to do things like programmatically getting the parameter definitions for your reports. 

Anyways, you're best bet is going to be to use the new RESTful Web Services SDK to schedule your reports.  The beauty of the RESTful SDK is that there is no runtime/design-time install.  Instead, you just do an HTTP get or post to get or send XML back and forth to do what you need to do.  Then all your application needs to do is parse the XML to get the info you need.

You can get more information about the RESTful Web Services SDK here:  .

You can find the help files for the RESTful Web Services SDK in the Developer Information section here:  http://help.sap.com/bobip.

-Dell