0 Replies - 609 Views - Last Post: 29 June 2019 - 07:09 AM Rate Topic: -----

#1 t3cho   User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 232
  • Joined: 27-May 14

VB6 Crystal report - .NET exe call

Posted 29 June 2019 - 07:09 AM

This is very common case where i have about 2500 dll's.
All of those dll's are made with vb6.

Scenario: Run the main .exe file and call the .dll from it. When running Crystal report view it works as a charm.

Scenario 2: Run the .exe file which is made with .NET through debug mode works as a charm.

Scenario 3: Run the .exe file which is made with .NET through RUNTIME Throw the exception shown bellow.

> Description: The process was terminated due to an unhandled exception.
> Exception Info: exception code c0000005, exception address 0F5E6BD0

Full stack message available on link: https://pastebin.com/ujWSj0La

Tried with two ways.

1. Adding the .dll to .exe as a references

2. Adding it through `CreateObject`

This is one my my work.

  Dim obj As Object
    obj = CreateObject("Partneri.clPartneri")
    Microsoft.VisualBasic.CallByName(obj, "PrikaziFormu", CallType.Method, cConrADO,
                                             cConADO, False, "", cJezik, rTagovi, rPrevodi, rPrava, 0, 0, cUsername)

Please keep in mind: When running this through debug everything works great.

The only workaround which i am using now is going like Create .exe made in vb6. Call that .exe from .net exe and pass a option name as a parameter. On form load it will set up the object which works great.

Additional: When running crystal report print on load throws ( attachment)

Is This A Good Question/Topic? 0
  • +

Page 1 of 1