Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to write an active x control for VB6 in .net 1

Status
Not open for further replies.

donutman

Programmer
Dec 20, 2002
2,481
US
I need to print a SQL Server report (using the report server) from a vb6 application. Does anyone know of example code for creating a vb6 control in .net that could expose the properties and methods to accomplish the printing?
Karl

[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
 
If it is an ActiveX Control then you could look into using AxImp.

-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!
 
I think AxImp is for doing just the opposite, i.e. taking an existing ActiveX Control and porting it to .NET. I need to write an ActiveX Control in .NET so that it can print a SQL Server report, but I need to use the ActiveX Control in an existing VB6 application. I'm not very fluent in .NET.
Karl

[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
 
Yes, I misunderstood what you were asking. First, you can't create an ActiveX Control in vb.net exactly. You can however create a vb.net control that exposes itself to com. This is for vb.net 2005, but the steps are pretty much the same if I remember correctly if you have 2008 instead.
The possible problem (and the difference) comes in with what is using it as it still requires the .Net Framework to run.

-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!
 
Thanks for the link, but it confirms that I need to bid this project out to someone more fluent in .Net than I.
Karl

[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top