index | search | no replies | posting guidelines | help | login | register |
Index » Products » ASP Report Wizard v2 |
| |||||||
Oct 23 2004, 4:04 AM |
| ||||||
phaider from: Vienna - Austria - Europe | Hello Forum, i am testing aspwebsolution with a web - ide called codecharge. until now, i was not able to insert the code snippets Dim objWiz Set objWiz = Server.CreateObject("AspWebSolution.ReportWizard2") objWiz.Init("... without having a html mismatch on the page My Question: Can i mix any html elements with your code or should the page be clean? - also in case of exporting data as csv or xml. Regards Peter Haider | ||||||
Oct 24 2004, 3:27 PM |
| ||||||
ghost from: Washington, DC | You can add any code (HTML/ASP etc.) anywhere the only thing you have to do is make sure that you initialize your connection string first before adding any HTML code. ie. 1. create an instance of the report wizard 2. set any properties you require 3. Initialize your connection string : objWiz.Init(Your Connection string) 4. add any html code you wish <% Dim objWiz Set objWiz = Server .CreateObject("AspWebSolution.ReportWizard2" ) 'add properties ifc required objWiz.UsePopUpFilters = True 'Make sure you initialize before adding any HTML text 'TODO: Change this to your actual connection tring objWiz.Init( "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=D:\Databases\nwind.mdb;" ) %> <html> <head><title>East Coast Reports</title></head> <body> <h1>East Coast Reports</h1><hr> <% 'put this where you want your reports objWiz.DisplayReports Set objWiz = Nothing %> <p>Copyright Info</p> </body> </html> ------------------------- Ghost | ||||||
Pages: (1) [1] |