473,504 Members | 13,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to develop simple download operation

46 New Member
hi guys..i`m newbiesin this field.i would to ask anyone who have an idea how to do a simple download operation where the data in the ms access.or maybe you have a good website that can help me
Nov 13 '07 #1
3 1094
Elavarasi
11 New Member
hi guys..i`m newbiesin this field.i would to ask anyone who have an idea how to do a simple download operation where the data in the ms access.or maybe you have a good website that can help me

U cant directly download ms Access ...
either u convert to textfile or excel file.. then download

try with this


dim Cn,Rs
set Cn=server.createobject("ADODB.connection")
set Rs=server.createobject("ADODB.recordset")
Cn.open "provider=microsoft.jet.oledb.4.0;data source=" & server.mappath("db1.mdb")
Rs.open "select * from table",Cn,1,3

Response.ContentType ="application/octet-stream"
Response.AddHeader "Content-Disposition", "attachment; filename=En_List.txt"

if Rs.eof <> true then
while not Rs.eof
response.write(Rs.fields("f1")& " - " & Rs.fields("f2") & vbcrlf )
Rs.movenext
wend
end if
set rs=nothing
Cn.close
Nov 13 '07 #2
najmi
46 New Member
U cant directly download ms Access ...
either u convert to textfile or excel file.. then download

try with this


dim Cn,Rs
set Cn=server.createobject("ADODB.connection")
set Rs=server.createobject("ADODB.recordset")
Cn.open "provider=microsoft.jet.oledb.4.0;data source=" & server.mappath("db1.mdb")
Rs.open "select * from table",Cn,1,3

Response.ContentType ="application/octet-stream"
Response.AddHeader "Content-Disposition", "attachment; filename=En_List.txt"

if Rs.eof <> true then
while not Rs.eof
response.write(Rs.fields("f1")& " - " & Rs.fields("f2") & vbcrlf )
Rs.movenext
wend
end if
set rs=nothing
Cn.close
thanks a lot my friends..ok the situation like this..i have put a software or application in my ms acess db..so if anyone interested with this particular software or application, they can download this sofware..so,my problem is,how to do this download..i hope you can understand what i`m try to tell you..thank again
Nov 15 '07 #3
jhardman
3,406 Recognized Expert Specialist
thanks a lot my friends..ok the situation like this..i have put a software or application in my ms acess db..so if anyone interested with this particular software or application, they can download this sofware..so,my problem is,how to do this download..i hope you can understand what i`m try to tell you..thank again
Look up the ADO.STREAM object. It was designed for this purpose, but I myself have never used it.

Jared
Nov 18 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
2166
by: Tom Szabo | last post by:
Hi, I am looking for some library that will allow developing web-based applications in PHP. I am looking for something that is as close as possible to a windows like application as possible. ...
10
5652
by: Steve Goldman | last post by:
Hi, I am trying to come up with a way to develop all n-length permutations of a given list of values. The short function below seems to work, but I can't help thinking there's a better way. ...
14
3135
by: Matt | last post by:
Any progammers looking for a killer app to develop? How about a voice enabled forum? One of the most powerful, exciting, and engrossing experiences on the Internet is the Forum. The first great...
8
1357
by: Jim Butler | last post by:
What are the drawbacks if any to this approach of not using the gac for shared components... basically having a central directory located outside of iis, that all web applications have a virtual...
6
10844
by: =?Utf-8?B?Q29kZV9leHBsb3Jlcg==?= | last post by:
I have searched a lot but is unable to find a sample code for developing CAD like application where we can drag circles, square etc. from tollbar connect them with line etc. If anyone of you are...
1
2923
by: Synapse | last post by:
Hello... We were asked to create a simple calculator program in our C++ subject by using loops only. i have a problem in creating a loop in the multiplication and division operation so please can...
0
5228
by: Tifer | last post by:
Hello, I am building my first .Net Application. The first couple of Publish and Installs I did went fine. But after a couple of builds, I get a modal dialogue box error every time upon trying...
3
1304
by: david | last post by:
hello, I have a question, I'm developping a software and I want of course many people use it. I chose c# visual studio 2005 express for development. is it a good choice? I mean, people to use it...
2
1003
suryasreepada
by: suryasreepada | last post by:
I have been searching for tools required develop MSProject 2007 Add-in. But I did not find any tools for this. Please help me by providing any simple samples and What are the tools required to...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7298
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.