Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
exporting data to local PC via ASP
Old 01-08-2005, 06:29 PM exporting data to local PC via ASP
Junior Talker

Posts: 4
Trades: 0
I have written an extensive commercial site using Ultradev 4 with ASP and a remote MySQL database. This has worked fine for many months, and I now need to improve the local access to customer order data. Specifically, I need to add a button or link to a chosen customer order which will download data from Customer file, order header file and order detail lines to a floppy disk. I hear you gasp, but thats what I need. The web-site management PC is totally divorced from our internal network for security reasons.

This is a plea for a which-way-to go ? I dont care what the format is, as I am capable of reading anything from the floppy with low-level if necessary. For example, I tried printing the customer order sheet via a printer set to text-only, write to file, and indeed got the data, but it was un-formatted and un-structured. There is probably a better way. Any help please ?
gbhall is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-17-2005, 11:00 PM
Bullschmidt's Avatar
Average Talker

Posts: 24
Location: USA
Trades: 0
Perhaps add the ability for the user to download a CSV file which can easily be opened in Excel.

Puzzle 5 Not much different from other solutions by Manohar Kamath posted 1/12/99
http://www.asp101.com/puzzles/puzzle5_s7.asp

Puzzle 5 "Write delimited data to browser window" by Kirk Lockhart posted on 12/21/98
Write the data in plain text to the browser window, and the user can save the results as a plain text file and then import the data into Excel or whatever application they want.
http://www.asp101.com/puzzles/puzzle5_s1.asp
__________________
J. Paul Schmidt

Please login or register to view this content. Registration is FREE
- Freelance Web and Database Developer

Please login or register to view this content. Registration is FREE
- Classic ASP Design Tips
Bullschmidt is offline
Reply With Quote
View Public Profile Visit Bullschmidt's homepage!
 
Old 01-22-2005, 04:03 PM
Junior Talker

Posts: 4
Trades: 0
Thanks for the help - I appreciate it. I actually solved the puzzle by inserting a form into the sequence followed by the user placing an order, which sends an email to me, with the data structured within it. The email when received is saved to floppy disc, and can be easily read low-level to yield the data. Works fine, giving the same result locally as the approach you suggest.

There is a further benefit that the complete order is available via two routes, so if lost via one route the other still exists. Yes, our ISP HAS lost our MySQL data once already, and the restore did not of course include the latest orders.

Last edited by gbhall; 01-22-2005 at 04:06 PM..
gbhall is offline
Reply With Quote
View Public Profile
 
Old 01-23-2005, 10:00 PM
Dave Goodman's Avatar
Novice Talker

Posts: 6
Location: Toronto, Canada
Trades: 0
I've implemented a number of downloadable reports for clients - the direct .CSV link , or even better tab dleimted is the most painless way to directly access data.

gbhall - I don't like a system that 1. relies on e-mail and 2. makes extra work for you to process it after received.

And I find clients really like having the data in excel - it's what most are comfortable with.
Dave Goodman is offline
Reply With Quote
View Public Profile Visit Dave Goodman's homepage!
 
Old 01-27-2005, 05:18 PM
Junior Talker

Posts: 4
Trades: 0
Dave Goodman
note my original post specifies we need to post-process the data anyway because we dont want the web connection and our local network able to interact in any way whatever. Thats our choice, and the method you suggest would not improve on my current solution, I'm afraid. In any case, you do not reveal how you produce a direct cvs link ??
gbhall is offline
Reply With Quote
View Public Profile
 
Old 02-08-2005, 06:42 PM very good solution - can be im;proved even more
Junior Talker

Posts: 4
Trades: 0
Quote:
Originally Posted by Bullschmidt
Perhaps add the ability for the user to download a CSV file which can easily be opened in Excel.

Puzzle 5 Not much different from other solutions by Manohar Kamath posted 1/12/99
http://www.asp101.com/puzzles/puzzle5_s7.asp

Puzzle 5 "Write delimited data to browser window" by Kirk Lockhart posted on 12/21/98
Write the data in plain text to the browser window, and the user can save the results as a plain text file and then import the data into Excel or whatever application they want.
http://www.asp101.com/puzzles/puzzle5_s1.asp
The solution above has been found to work very well indeed, and represents 98% of what is wanted. I found I could define the name I wanted for the down load file, but could NOT find a way of defining a path - specifically A: before the filename. I find that the download always defaults to 'my documents' (with the desired name) and if I add A: it changes the filename to some random characters. Adding A%38 (htm encoding special character colon) returns the same filename without anything preceding it, still in 'my documents' default. Anyone know a way of adding the 2% improvement of my desired path to the floppy?

David
gbhall is offline
Reply With Quote
View Public Profile
 
Old 02-09-2005, 09:13 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
In the Save As dialog, choose the A Drive from the drop down list and hit save.

You won't do it with server side scripting - it's a purely client side thing, the browser decides where to save it...
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Reply     « Reply to exporting data to local PC via ASP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24440 seconds with 12 queries