calling stimul from vb6

Stimulsoft Reports.NET discussion
Post Reply
em1353
Posts: 1
Joined: Sat Mar 06, 2010 2:34 am

calling stimul from vb6

Post by em1353 »

how to call stimul from vb6 application????
johnham
Posts: 98
Joined: Fri Sep 19, 2008 2:27 pm
Location: Richland, WA, USA

calling stimul from vb6

Post by johnham »

You would first need to register the .NET components as COM objects (if they exported as such). However if not you just pop into your favorite .NET language and make a library that exports a class with a few functions as COM.

In C# you place the code below at the top for your class. You then register this class as COM component using REGASM (a utility like regsvr32 only for .NET DLL's). Then you should be able to see it and use it in VB6.

Code: Select all

    [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsDual)]
    [ComVisible(true)]
Hope this helps a little. I don't know if Stimulsoft has already marked their stuff as COM visible but I like wrapping it up anyway to provide simple entry points like "Design", "Print", "Preview", "Export". It makes it easier for the developers that I work with to call it.

Thanks,
John Hamilton
Hamilton & Company, LLC
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

calling stimul from vb6

Post by Jan »

Hello,

Please check attached file. Its example of com wrapper for Stimulsoft Reports.Net.

Thank you.
Attachments
361.Stimulsoft.Report.Com.zip
(8.66 KiB) Downloaded 340 times
Post Reply