Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Redirect to csv
Message
From
04/11/2008 14:40:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Title:
Redirect to csv
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01359614
Message ID:
01359614
Views:
59
I'm generating a CSV file from data that will be opened from within excel. I want to avoid the field names at the top. I'm generating the file then using response.redirect to that file. This brings up your typical open, save and cancel dialog. This works great if you open immediately. The file shows no field headers.

But if you click the save from the dialog, it forces an xls extension. If you try to open within excel it will only have one column per row with all the commas showing..

This is a tool for users. I know there are ways that this can be fixed by a knowledgable user. Simply over-writing the xls with csv when saving fixes the problem. But this is too much to ask for our typical users.

Is there a way around this problem.
I want the save button to show .csv for the extension not .xls.
Reply
Map
View

Click here to load this message in the networking platform