Subject: CreateReportOnRuntimeDS + CreateFieldDefFile
Posted By: rahmani Post Date: 10/28/2004 4:43:08 AM
When I call these 2 methods from "p2smon.dll"
in VB.net , I receive "Object reference not set to an instance of an object" runtime error.

My code is as belloews :

Dim adors As new ADODB.Recordset
Dim adoconn As new ADODB.Connection

adoconn.open("provider = SQLOLEDB;Data Source = localhost;Initial Catalog = MyDB;Initial Security = SSPI;","","",-1)

adors = CreateObject("adodb.recordset")

adors.open("Select * From MessageTable",adoconn,ADODB.CursorTypeEnum.adOpenForwardOnly,ADODB.LockTypeEnum.adLockReadOnly,1)

adors.MoveFirst

CreateFieldDefFile(adors,"C:\1.ttx",true) ' error


Reply By: aravwind Reply Date: 10/28/2004 6:18:02 AM
Whether u r calling the COM components in the .NET application
please clarify


Aravindan.N
Faster and consistent will surely beat the slow and steady
Reply By: rahmani Reply Date: 10/28/2004 9:13:35 AM
I read aravWind reply but I dont understand what did he mean
please explain me more

if anyone has an idea please help me

Reply By: marcostraf Reply Date: 10/28/2004 3:10:29 PM
run the code in the debugger, so you can know which line of code is throwinf the error message (I did not understand arawind neither, faster and consistent does not win when it does not work :-)

Marco
Reply By: rahmani Reply Date: 11/2/2004 7:53:54 AM
on Line CreateFieldDefFile(...) there was an 'object refernce not set to an instance of an object' error .

Can anyone give me a simple sample that those 2 methods work correctly ?

thanks.

Reply By: MartinHickling Reply Date: 11/13/2004 1:53:58 AM
I am getting the same error for the CreateFieldDefFile.
Does anybody have a .net code example to use the p2smon.dll in creating a ttx definition file.

Help much appreciated

Go to topic 22040

Return to index page 717
Return to index page 716
Return to index page 715
Return to index page 714
Return to index page 713
Return to index page 712
Return to index page 711
Return to index page 710
Return to index page 709
Return to index page 708