Page 1 of 1

Report Designer and VB 6

Posted: Mon Sep 10, 2007 8:59 am
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

Report Designer and VB 6

Posted: Mon Sep 10, 2007 9:05 am
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

Report Designer and VB 6

Posted: Mon Sep 10, 2007 11:57 am
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.

Report Designer and VB 6

Posted: Tue Sep 11, 2007 2:26 am
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


Report Designer and VB 6

Posted: Fri Sep 14, 2007 3:59 am
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.

Report Designer and VB 6

Posted: Fri Sep 14, 2007 6:09 am
by Stephan1
Thx Edward that would be very great.

Stephan

Report Designer and VB 6

Posted: Mon Sep 17, 2007 10:57 am
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.

Report Designer and VB 6

Posted: Tue Sep 18, 2007 2:22 am
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

Report Designer and VB 6

Posted: Tue Sep 18, 2007 9:48 am
by Edward
Ok, thank you for the information.

Let me know if you need any help.

Thank you.