index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: help please ::    show all messagesPost a New Message | Post a Reply
Jun 22 2004, 6:13 AM
 Report Wizard & .NETPost a Reply
 whichman

View this author's profile Send this author a private message Visit author's homepage

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)
    {
         //Put user code to initialize the page here
         String cn;
         AWSReportWizard2_NET.ReportWizard2 wiz =  
               new AWSReportWizard2_NET.ReportWizard2();
      
         //set your connection string
         cn = "Provider=MSDASQL;Driver={SQL Server};Server=(local);Database=NorthWind;User ID=sa;Password=sa;";
      
         //initialize your connection string
         wiz.Init(cn);
      
         //start your page
         startPage("ASP Report Wizard version " +  wiz.Version);
      
         //display your reports
         wiz.DisplayReports();
      
         //clear memory
         wiz = null;
      
         //end your page
         endPage();
    }
      

  • You can download the VS.NET source from here ReportWizard.NET Demo (C#/VB.NET)






-------------------------
Master of the Game
Pages: (1)   [1]

search this forum: