Report Designer and VB 6

Stimulsoft Reports.NET discussion
Post Reply
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

Report Designer and VB 6

Post by Stephan1 »

Is there a way to use the Reportdesigner etc. in VB 6 Applications.

We have a lot of VB6 Applications and would like to build some new Reports in them.

Is there an Example available ?.

Thx

Stephan
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Report Designer and VB 6

Post by Brendan »

I remember a thread a while back where someone was doing something from vb6 via activeX. I don't know if it's of any benefit but this is the post:

http://forum.stimulsoft.com/Default.aspx?g=posts&t=470
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Report Designer and VB 6

Post by Vital »

You can see sample project with similar COM interface to Stimulsoft Reports.Net at www.stimulsoft.com/private/Stimulsoft.Report.Com.zip.

Thank you.
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

Report Designer and VB 6

Post by Stephan1 »

Thx Vital,

but i cant get it work this example. It References an Object which is not included.

Stimulsoft.Report.StiConfig.Services.Add(new Stimulsoft.Report.Navision.Components.StiTextNV());

can i change this to

Stimulsoft.Report.StiConfig.Services.Add(new Stimulsoft.Report.Components.StiText());

Also how can i include this example in my VB6 application ?. The DLL which is created can not be referenced in a vb6 app.

Is there a working example available ? with vb6 code which is using the dll ?

thx

Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Report Designer and VB 6

Post by Edward »

Stephan1 wrote:Thx Vital,

but i cant get it work this example. It References an Object which is not included.

Stimulsoft.Report.StiConfig.Services.Add(new Stimulsoft.Report.Navision.Components.StiTextNV());

can i change this to

Stimulsoft.Report.StiConfig.Services.Add(new Stimulsoft.Report.Components.StiText());
Yes, instead of using StiTextNV you can use StiText. It was done as example on using of your own components.

Also how can i include this example in my VB6 application ?. The DLL which is created can not be referenced in a vb6 app.

Is there a working example available ? with vb6 code which is using the dll ?

thx
Ok, we will prepare such an example.

Thank you.
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

Report Designer and VB 6

Post by Stephan1 »

Thx Edward that would be very great.

Stephan
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Report Designer and VB 6

Post by Edward »

Please download attached project. Add to references Stimulsoft Reports.Net dlls and rebuild the solution.

In Visual Basic please use the following code:

Set clnd = CreateObject("Stimulsoft.Report.Com.ReportCom")
clnd.DesignReport

DesignReport - one from accessible commands, full list of them you can see in the file ReportCom.cs, in "#region Methods for work with Report".

So after running code you will see the designer.

Thank you.
Attachments
21.Stimulsoft.Report.Com.zip
(11.72 KiB) Downloaded 440 times
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

Report Designer and VB 6

Post by Stephan1 »

Thx Edward,

this example works fine.

I also found some very helpfull at the Microsoft Site. The text is in german/english, but very interesting.

Here are the Links:

How to call a .NET assembly in VB6 German
How to call a .NET assembly in VB6 English
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Report Designer and VB 6

Post by Edward »

Ok, thank you for the information.

Let me know if you need any help.

Thank you.
Post Reply