Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
developer
active.documents
automation
binary.file_format
clipboard.dde
com.add_ins
hosting.controls
internet_other
office.sdks
officedev
officedev.other
outlook.forms
outlook.vba
smarttags
vba
web.components
  
 
date: Thu, 26 Jun 2008 21:03:06 -0700 (PDT),    group: microsoft.public.office.developer.web.components        back       


How To Bind Excel Worksheet As AxSpreadsheet Data Source?   
Hello, how can I bind the Excel Worksheet As AxSpreadsheet Data Source?
date: Thu, 26 Jun 2008 21:03:06 -0700 (PDT)   author:   unknown

Re: How To Bind Excel Worksheet As AxSpreadsheet Data Source?   
The two cannot mix, what are you trying to do functionally?

-- 

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
------------------------------------------------------- 


 wrote in message 
news:81a2cc8f-dabc-4b71-9781-dcd72db312b5@w1g2000prd.googlegroups.com...
> Hello, how can I bind the Excel Worksheet As AxSpreadsheet Data Source?
date: Fri, 27 Jun 2008 21:24:30 -0400   author:   Alvin Bruney [ASP.NET MVP] vapor dan using hot male spam filter

RE: How To Bind Excel Worksheet As AxSpreadsheet Data Source?   
if you develop with  asp,you can extract the data from worksheet  and content 
the data in a table,then use spreadsheet's htmlURL attribute get the data.
first,in the data.asp,write code as 
conn="Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Database Password=;Extended 
properties=Excel 8.0;Data Source="&server.mappath(worksheetPath)
set rs=server.createobject("adodb.recordset")
rs.open "select * from tablename",conn,0,1
response.write("<table>")
while not rs.eof
 response.write("<tr><td>"&rs(field1)&"</td>><td>"&rs(field2)&"</td></tr>")
 rs.movenext
wend
response.write("</table>")
then in the output.htm,use HtmlURL to get the data .
spreadsheet1.htmlURL="data.asp"
date: Sat, 28 Jun 2008 18:33:00 -0700   author:   jtz

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us