cancel
Showing results for 
Search instead for 
Did you mean: 

Errors in SAP Connection with VB.NET

Former Member
0 Kudos

Hello!

I've got two problems for which I couldn't find an answer.

With my application I can save pdf-documents which are in sap.On my computer everything works fine.

But the problem is, on another one it doesn't work and I get two errors.

The first one is: ActiveX components error at line 75.

Thats this line:

FunctionCtrl = CreateObject("SAP.Functions")

That's the code in Form1.Load

I can ignore that error so that the form will load. After clicking the button my apllication get the function to find the document.

dieFunc = FunctionCtrl.Add("YCP_DIS2LOCPC")

And then the next error, the System.NullReferenceException.

My problem is, that I think I have to use references for my application on the other computer because it hasn't got SAPGUI.

But which have I to use?

For connecting the server I use this in Form1.Load

FunctionCtrl = CreateObject("SAP.Functions")

sapConnection = CreateObject("SAP.LogonControl.1")

sapConnection = FunctionCtrl.Connection

sapConnection.applicationserver = "192.1.111.10" 'P90

sapConnection.systemnumber = "00"

sapConnection.Client = "100"

sapConnection.User = "TEST"

sapConnection.password = "1234"

sapConnection.Language = "D"

The declarations:

Dim FunctionCtrl As Object

Dim sapConnection As Object

Dim dieFunc As Object

But what can i do?

I debugg my program in X86. Maybe i need references 😕

Thanks for all ideas!!

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Looks like you are using the Report Designer Component (craxdrt.dll) in your application?

What version of CR?

What version of .NET?

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Former Member
0 Kudos

I have Crystal Report on my computer, but i don't have any .dll files in use.

Hm...so it's not the right forum? Right 😕 ?

CR 13.0.1.220

Visual Studio 2010 .NET 4 Framework

I searched a lot in the internet and think, that I only need a refence like librfc32.dll oder something like that 😕

former_member183750
Active Contributor
0 Kudos

I have Crystal Report on my computer, but i don't have any .dll files in use.

- does not make any sense...

I searched a lot in the internet and think, that I only need a refence like librfc32.dll oder something like that 😕

- Not sure where that info came from..., but it's most certainly incorrect.

depending on the app and SDK, you will need a number of CR references. Perhaps taking a look at the samples;

https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples

and the developer help files will help;

SAP Crystal Reports .NET API Guide http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_api_2010_en.zip

SAP Crystal Reports .NET SDK Developer Guide http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip

- Ludek

Answers (0)