Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ReportNet SDK

Status
Not open for further replies.

spicysudhi

Programmer
Nov 10, 2003
575
FR
hi,

I am trying to connect to the CRN service. I have tried VB, ASP programs, and both getting error. my sample lines from the VB source is below

Dim CRN As New CognosReportNetService
CRN.endPointUrl = "Call CRN.Query("~", Nothing, Nothing, Nothing)

I registered the CRN.dll and added that to the project. In the line call CRN.Query(........ I am getting error "Object variable or With block variable not set". The same error comes in the ASP file also. Do I have to setup anything else? I am following the documentation. Even the samples in the SDK also resulting in the same error (i tested cmTester under sdk/vb folder).

Reportnet service is running and I am able to connect to in the web.


Note: above in the "CRN.endPointUrl = ..." line there is no semicolon (;) in the end, but its coming somehow.

regards,
Sudhi
 
You need to go to the References menu item in VB and add the CRN reference. This just happened to me the other day and this is how I resolved it.
 
no flex, if i dont add that in reference, "Dim CRN As New CognosReportNetService" statement itself will throw an error.

i have added the object reference.

regards,
sudhi
 
Hi

I am trying to run D:\Program Files\Cognos\crn\sdk\vb\cmQuery\cmQuery.exe

1. I registered the crn.dll, got the confirmation message as successfull
2. Recompiled the VB project and re-created the exe file
3. Installed Microsoft SOAP toolkit

When run the exe and enter the URL and click Query Content Manager, I get message
"An error occured. Object Variable or With Block variable not set"

I opened the VB project and executed line by line. Its giving error at line, (function checkSecurity)
Set bca = oCrn.Query(queryPoint, Nothing, Nothing, Nothing)

The value of the variable queryPoint is "~"

can anyone please suggest me what to do.

ReportNet version 1.1, using Series 7 for security. Visual Basic 6 installed on Windows 2000.

thanks and regards,
sudhi
 
Hi guys,

Did you get solution to this issue. I am facing the same problem.
 
You need to install the SOAP toolkit 2.0.

3.0 may work, but I doubt it.
 
You need to install the SOAP toolkit 2.0 SP2.

Uninstall your current SOAP toolkit first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top