NetTalk Central

Author Topic: Progress CSV created problem with IE  (Read 3757 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Progress CSV created problem with IE
« on: February 18, 2013, 11:50:35 PM »
IE8/IE9 Firefox/Chrome
using the Web72 example.
If I create a csv file using Chrome or Firefox the csv is created and I can either open or save it.
Using Internet explorer 8 or 9 I either get the attached screen message (1.jpg) stating that IE thinks that I have created an xls file, or  a message that the file cannot be found(2.jpg) ( the file name in the url  is $$$81657.csv) The image is one that I received from one of my clients.

To me this is a major problem since I cannot specify to the clients what browser to use because they are "walk ins" rather than direct clients and unfortunately they haven't had the privilege of viewing Bruce's webinar on NT7.
Is there anything I can do to sort this problem out?

[attachment deleted by admin]
« Last Edit: February 19, 2013, 12:28:13 AM by terryd »
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

springguy

  • Full Member
  • ***
  • Posts: 195
    • View Profile
    • Email
Re: Progress CSV created problem with IE
« Reply #1 on: February 19, 2013, 03:50:21 AM »
I've seen the same thing with IE, and found that when you get the page not found message, notice the url is correct.  If you hit the Enter key, the file will open up.  Not a solution but a work around that for my customers is OK.

Sounds like in your situation, it would not be workable.
Mike Springer

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Progress CSV created problem with IE
« Reply #2 on: February 19, 2013, 04:59:10 AM »
can you change the file extension to txt?

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Progress CSV created problem with IE
« Reply #3 on: February 19, 2013, 08:06:54 PM »
Hi Mike
Yes everything is correct except IE appears not to have created a csv file. Thanks for your comments.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Progress CSV created problem with IE
« Reply #4 on: February 19, 2013, 08:09:40 PM »
Hi Kevin.
I could change the extension to txt butI would assume that the file would be  opened within the browser as text, rather than allowing the user to save the file with a name of their choice.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Progress CSV created problem with IE
« Reply #5 on: February 19, 2013, 09:13:21 PM »
you may be able to do something by setting the Content-Disposition (ref book). The other possibility is to detect the browser and serve the file with an xls extension if IE.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Progress CSV created problem with IE
« Reply #6 on: February 20, 2013, 12:27:29 AM »
Kevin is right - your best bet is to set the Content-Disposition.
The File Download example (40) - ServeDocument procedure has an example of this.

  p_web.HeaderDetails.ContentDisposition = 'attachment; filename="'&p_web.GetValue('name')&'"'

also, you'll notice in that procedure

  p_web.ReplyContentType = p_web._GetContentType(loc:fileName)


Cheers
Bruce