C#webbrowser用javascript保存Excel文件 [英] C# webbrowser save Excel file with javascript

查看:95
本文介绍了C#webbrowser用javascript保存Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





你能告诉我如何在c#desktop应用程序中使用httpwebrequest将html转换为Excel吗?

hi ,

can you tell me how to convert html to Excel using httpwebrequest in c# desktop application?

推荐答案

请参阅: http://excelbuilderjs.com [ ^ ]。



但是请看我对这个问题的评论。我不知道它与 HttpWebRequest 和C#有什么关系。和 WebBrowser 控件(WebBrowserControl?:-))。那么标记ASP.NET怎么样?你可以在服务器端做到这一点,这将更具实际意义。然后,您可以使用Microsoft Open XML。请参阅本文中引用的过去的答案:如何从MS Visual中添加参考添加microsoft excel 15.0对象库Studio 2010 [ ^ ] 。



另请参阅此CodeProject文章:使用Open XML创建基本的Excel工作簿 [ ^ ]。



如果这还不够,请解释一下你真正想要的是什么这次正确地实现,为什么等等。现在,对我来说,你的问题看起来像一团糟。



-SA
Please see: http://excelbuilderjs.com[^].

But please see my comment to the question. I don't see how is it related to HttpWebRequest and C#. And WebBrowser control (WebBrowserControl? :-)). How about tagging "ASP.NET" then? You can do it on server side, which would make more practical sense. Then you can use Microsoft Open XML. Please see my past answers referenced in this one: How to add microsoft excel 15.0 object library from Add Reference in MS Visual Studio 2010[^].

See also this CodeProject article: Creating basic Excel workbook with Open XML[^].

If this is not enough, explain what do you really want to achieve, why, and so on, this time properly. Right now, to me, your question looks like a total mess.

—SA


这篇关于C#webbrowser用javascript保存Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆