We will be developing our sample web solution with Visual Studio .NET 2003 (VS.NET 2003). VS.NET2003 uses .NET Framework 1.1 and that means that we need to use both cognosdotnet.dll andcognosdotnetassembly.dll in our web solution. If we were using .NET Framework 2.0 then we could usecognosdotnet_2_0.dll and cognosdotnetassembly_2_0.dll.
The full source code has been provided for you and this step would be to cover the steps in order togenerate the solution’s project structure.
Let’s get started by building the sample file and folder structure for your solution:
Create a new C# web application in VS.NET 2003 and name it “
Expand the project and right-click on References. Go ahead and add both the cognosdotnet.dlland cognosdotnetassembly.dll to your solution.
You will also have to ensure that
has been added to your solution.
Select the project name “
” and right-click.
Add a folder and name it “includes”.
Add a C# Class file and name it “CognosSDK.cs”.
Add a C# Class file and name it “ExHandler.cs”.
Add a new .ASPX page and name it “Default.aspx”.
Right-click on this file and select “Set as Start Page”.
Add a new .ASPX page and name it “Reports.aspx”.
Add a new .ASPX page and name it “PromptPage.aspx”.
Add a new .ASPX page and name it “RunReport.aspx”.
Add a new .ASPX page and name it “Output.aspx”.
Add a new .HTML page and name it “PleaseWait.htm”.
Select the “includes” folder and right-click.
Add a new .js file and name it “CognosSDKHelper.js”.
You can do an internet search for a clipart that represents an hour glass and save thefile in the “includes” folder as “executing.gif”.
You have now successfully created the main skeletal structure for your ASP.NET C#solution.
Creating your SDK object -- CognosSDK.cs__________________
class file is used primarily for interacting with your Cognos Content Store. You willbe adding methods that will enable you to: Authenticate and connect to the Cognos service; request andreturn Cognos Content Store objects; request and set report parameter values; and execute a report.