whichman
from: Laurel, MD
| There is a way you can run COM objects with ASP.NET but it is a little complicated. - Download and Copy the AWSReportWizard2.dll file to any folder and
register with command in Start > Run : regsvr32 "C:\<YOUR DLL PATH>\AWSReportWizard2.dll" - Download and Copy the AWSReportWizard2_NET.dll assembly
into the bin directory of you application. Do NOT register it. - Import the
AWSReportWizard2_NET.dll into your project file and set the aspCompat property of your ASP file to True - A sample call in C# will be as follows:
private void Page_Load(Object sender, System.EventArgs e) { String cn; AWSReportWizard2_NET.ReportWizard2 wiz = new AWSReportWizard2_NET.ReportWizard2(); cn = "Provider=MSDASQL;Driver={SQL Server};Server=(local);Database=NorthWind;User ID=sa;Password=sa;"; wiz.Init(cn); startPage("ASP Report Wizard version " + wiz.Version); wiz.DisplayReports(); wiz = null; endPage(); } - You can download the VS.NET source from here ReportWizard.NET Demo (C#/VB.NET)
------------------------- Master of the Game |