ghost
from: Washington, DC
| Make sure you initialize the report wizard before adding any HTML to the page. Also, make sure you asp page's domain is that of the licensed domain. e.g. if the license if for http://myserver then the report should be running under my server e.g. http://myserver/somefolder/report.asp, http://www.myserver/mypage.asp etc. <% Dim objWiz Dim sConnection Set objWiz = Server.CreateObject("AspWebSolution.ReportWizard2") With objWiz .LicenseKey = "xxxx-xxxx-xxxx-xxxx-xxxx" // Your license key .HiddenTables = "tblissues, tblElectricity, tblnotes, tblvendors" .HiddenFields = "ID" .DatabaseType = "MySQL" End With 'Set an active connection to the Connection object using a DSN-less connection sConnection = "DRIVER={MySQL ODBC 5.1 Driver}; SERVER=localhost; DATABASE=osmm;UID=xxxxx;PASSWORD=xxxxx; OPTION=3" objWiz.init(sConnection) %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/> <meta name="Microsoft Border" content="none, default"/> <link rel = "stylesheet" type = "text/css" href = "../css/reports.css"/> <title>New Ticket</title> </head> <body> <% 'put this where you want your reports objWiz.DisplayReports Set objWiz = Nothing %> </body> </html>
------------------------- Ghost |