Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-18-2017, 02:38 PM
macropod's Avatar
macropod macropod is offline Generated spreadsheet in SLK format causes message upon browsing: format / extentsion don't match. Windows 7 64bit Generated spreadsheet in SLK format causes message upon browsing: format / extentsion don't match. Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

To put it simply, SLK files are not Excel files (notwithstanding that Excel can open them) and should have an SLK extension, not an XLS extension. So, if you want "a match between the file contents and file extension", you should change the extensions to SLK.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 08-22-2017, 01:35 AM
PhillJ PhillJ is offline Generated spreadsheet in SLK format causes message upon browsing: format / extentsion don't match. Windows 8 Generated spreadsheet in SLK format causes message upon browsing: format / extentsion don't match. Office 2013
Novice
Generated spreadsheet in SLK format causes message upon browsing: format / extentsion don't match.
 
Join Date: Aug 2017
Posts: 3
PhillJ is on a distinguished road
Default

Thank you for your reply. However, I do NOT name the file, and this really is what I need help with. The file is opened via a browser URL such as follows:
/dev50-cgi/cfxsof?4F66505C2F6B574F713225584D513E585B4F4F506E4 97E79704C55214E38515657564B7B77543C5A723D3E2658686 72B265A7932

... where cfxsof.exe is a CGI program which takes a single encrypted string referring to a file to display in the browser (either an Adobe PDF or an Excel). cfxsof then writes the contents of this file to the output stream and hence this is handled by the browser. The first line of this file has the following:
Content-type: application/vnd.ms-excel

However, the browser creates a temporary filename in its cache typically named cfxsof.xls, or cfxsof, as in the message:


My question is now: how do I influence the name of the temporary file so that it is compatible with the contents that Excel discovers? It seems to me that it is this temporary file name created by the browser which is the crux of the problem.
Thanks in advance.
Reply With Quote
Reply

Tags
browser, sylk



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to find and format with whole word match option Marrick13 Excel Programming 0 03-13-2016 10:04 AM
Generated spreadsheet in SLK format causes message upon browsing: format / extentsion don't match. HOW TO: Create an auto generated number format for saving templates Matkinson89 Word 2 09-03-2015 07:07 PM
Generated spreadsheet in SLK format causes message upon browsing: format / extentsion don't match. Mail merge will not format date field generated by Excel IF statement borntorun75 Mail Merge 3 12-16-2011 06:28 AM
Outlook Message Format Default hobo222 Outlook 2 11-23-2010 08:25 PM
How to set Message Format default TonyBender Outlook 0 10-27-2009 11:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:06 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft