Reading webi report variable using .NET SDK
I'm trying to access and read variables in Webi reports programmatically.
Having used .NET in the past and having no experience of Java I have opted for the .NET route.
I have got as far as connecting to a Webi document using BusinessObjects.ReportEngine. I can then list and access the DataProviders which is different queries but can not find how to access the variables.
I'm using XI3.1 and the latest V12 SDK files.
Can anyone help or point me in the right direction please?
Zeeshan Sadiq replied
My Code Is
IDocumentInstance webiDoc = webiReportEngine.OpenDocument(report.ID);
IPrompts prompts = webiDoc.GetPrompts();
foreach(IPrompt prompt in prompts)
// set prompt values here if report have prompts
Using ASP.NET C#
Now i want to view this document using openDocument.aspx? like
string webiURL = "http://" machineName "/OpenDocument/opendoc/opendocument.aspx?iDocID=" + webiID + "&sType=wid&sWindow=Same&token=" + token + "
The issue is how to pass parameters value if reports have prompts ...