简体   繁体   中英

Problem sending Excel spreadsheet over wcf service

We have an application set up like this: server - client where the client is built in Silverlight and the server os in plain vb. With the client, you can select an Excel spreadsheet which will need to be processed on the server.

The problem we are experiencing is that in sending the Excel spreadsheet as a stream over Wcf and then saving the stream on the server side causes punctuation to change in formula's (the ";" change to ","). Because of that, we cannot open the excel in our code.

When we manually open the excel, we have no problem and can see the data as it was on the client.

Has anyone experienced this behavior as well?

When I've worked with Excel files on a server before I found the easiest way is to save them to disk. It's not ideal but it works.

My guess is that it could be because of the locale setting on client and server. Are both the systems using the same regional settings? If not you could try using the same locale for both server and client. I am not sure if there is any way to specify the locale to use while streaming dtaa from client to the server.

I was the version of a third party tool that was bugging us. Getting a newer version solved the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM