如何将Windows应用程序制作为Web应用程序 [英] How to make a windows application as web application

查看:114
本文介绍了如何将Windows应用程序制作为Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经开发了一个单词Addin,它可以连接到DB,并且可以将结果添加到Word文档中.

但是问题是,我想将其部署在Web服务器上,以便每个人都可以访问它,因此它现在应该像一个网页.

我知道可以通过下载将其安装到PC.用户应从Web服务器访问它,并执行Outlook Web Access之类的功能.

有什么办法吗?

请帮帮我.谢谢.

问候
srinivas

Hi Guys,

I''ve developed a word Addin which is connecting to DB and can add results to word document.

But the question is, i want to deploy it on the Web server so that everybody can access it, so it should be like a web page now.

I know it can be installed to PC by downloading... We don''t want that. A user should access it from web server and do his functions like Outlook web access.

Is there any way for this?

Please help me out. Thanks.

Regards
srinivas

推荐答案

您已经开发了一个Word Addin,它可以连接到DB并可以将结果添加到Word文档中.由于Word是桌面应用程序,并且您的加载项需要Word,因此除非您考虑将其重做作为Sharepoint的一部分,否则听起来好像很不走运.在合理的时间内,可以将数据库中的某些内容插入到SharePoint内部的Word文档中.还有其他选择,但是Sharepoint可能是您最好的选择,因为您的代码将依赖Microsoft的库来执行文档操作.

在Google上搜索 [
You''ve developed a Word Addin which is connecting to DB and can add results to word document. As Word is a desktop application, and your addin requires Word it sound like you''re out of luck unless you consider redoing it as a Sharepoint part. Inserting something from a database into a word document inside SharePoint is doable inside a reasonable timeframe. There are other options, but Sharepoint is probably your best alternative as you''re code will depend on libraries from Microsoft to perform the document manipulation.

This search on google[^], can probably help to clear things up a bit.

Good luck!
Espen Harlinn


虚拟化是关键.虚拟化您的应用程序后,用户只需在门户网站上对其进行访问即可使用该应用程序.该应用程序安装在安装了门户的服务器上,因此用户不需要在系统中安装该应用程序.他们只需要访问门户并单击应用程序的图标,即可使用它.对于我们来说,我们正在使用 Citrix [
Virtualization is the key. Having your application virtualized, users are able to use the application just by accessing it on the portal. The application is installed on the server where the portal is installed so users dont need the application installed in their systems. They just need to access the portal and click the icon of the application for them to use it. For us, we are using Citrix[^] for our desktop applications. There are tons of virtualization solutions in the market but perhaps you need to be familiar about the concept first.


虚拟化和将代码重新编写为Web应用程序都意味着需要重新编写大多数虚拟化解决方案.代码. Web应用程序的模型与桌面应用程序的模型有很大不同.原因是HTTP协议的无状态性质.

我希望您将UI与应用程序的其余部分很好地隔离开来:通用和特定于域的功能;在这种情况下,您的任务要容易得多.如果您从现有的WPF应用程序开始,我不建议您进行虚拟化.使用ASP.NET可能会更成功.许多UI构造看起来非常相似(即使含义完全不同).您可以从这里开始:
http://www.asp.net/ [
Both Virtualization and re-working your code into Web application means re-writing most of the code. The model of a Web application is very different from a desktop application. The reason for it is the stateless nature of HTTP protocol.

I hope you used good isolation of the UI from the rest of your application: universal and domain-specific functionality; in this case you task is much easier. If you start with existing WPF application, I would not recommend Virtualization. You probably can be more successful with ASP.NET. Many of the UI constructs would look pretty much similar (even though bearing completely different meaning). You can start from here: http://www.asp.net/[^].


—SA


这篇关于如何将Windows应用程序制作为Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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