Jhon ABhu

Jhon ABhu

  • NA
  • 57
  • 4.8k

VBScript display data in browser

Jan 23 2021 6:21 AM
Hello Friends...
 
 
I am begginer I need print data in a window or browser using vbscript
 
data stored in variable. I can show popup message with data. but i cant display in browser or new window want to take print.... Pls help
 
 Dim ConnectionString 
ConnectionString = "Driver={SQL Server};Server=MYPC-PC;Database=xxxxxxx;Trusted_Connection=TRUE"

 objConnection.Open ConnectionString
   strQuery = "Select * from xxxxxxxxxxxxxx"
   rs.Open strQuery,objconnection
 
 Do While Not rs.EOF
   val_C_Name=rs.Fields.Item("Client_Name")
  
   
   
   
   header = "xxxxxxxxxxxxxx"
    str = header&vbNewLine&vbNewLine &str&"Name of The client: " val_C_Name    
    rs.MoveNext
   Loop
 MsgBox str
 

Answers (2)