简体   繁体   English

通过WCF服务发送Excel电子表格时出现问题

[英]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. 我们有一个这样的应用程序设置:服务器-客户端,客户端是在Silverlight中构建的,服务器os是在纯vb中。 With the client, you can select an Excel spreadsheet which will need to be processed on the server. 使用客户端,您可以选择需要在服务器上处理的Excel电子表格。

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 ","). 我们遇到的问题是,通过Wcf将Excel电子表格作为流发送,然后将流保存在服务器端会导致标点符号在公式中发生变化(“;”更改为“,”)。 Because of that, we cannot open the excel in our code. 因此,我们无法在代码中打开excel。

When we manually open the excel, we have no problem and can see the data as it was on the client. 手动打开excel时,没有问题,可以看到客户端上的数据。

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. 当我在服务器上使用Excel文件时,发现最简单的方法是将它们保存到磁盘。 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. 我不确定是否有任何方法可以指定将dtaa从客户端流传输到服务器时要使用的语言环境。

I was the version of a third party tool that was bugging us. 我是困扰我们的第三方工具的版本。 Getting a newer version solved the issue. 获取较新的版本可以解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将图像从Silverlight发送到WCF服务 - Sending Image from silverlight to WCF service 问题传递IEnumerable <IDictionary> 通过WCF到Silverlight - Problem passing IEnumerable<IDictionary> over WCF to Silverlight 使用DomainService WCF服务将抽象类发送到Silverlight - Sending abstract class with DomainService WCF service to Silverlight Silverlight不将字节数组发送到WCF服务 - Silverlight not sending byte array to WCF service WCF 服务通过 net tcp 托管在 Windows 服务中 - WCF Service Hosted in Windows Service over net tcp 从Silverlight通过WCF发送图像时出现问题 - problem when sending images through wcf from silverlight 通过Citrix Access Gateway发布WCF Ria应用程序时出现问题 - Problem Publishing WCF Ria Application Over Citrix Access Gateway 在将数据分块并将数据发送到WCF服务时,防止在当前页面进行回发 - Prevent postback in current page while chunking and sending data to a WCF service 在 WCF web 服务上序列化和发送 object 图的最简单方法 - Easiest way to serialize and send an object graph over WCF web service 为SilverLight(basicHttpBinding)实现WCF可靠服务的自身设计问题 - Problem Implementing Own Design of a WCF Reliable Service for SilverLight (basicHttpBinding)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM