做不可能的事 [英] Doing The Impossible

查看:97
本文介绍了做不可能的事的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我已经获得了一项编程任务,该任务属于我目前的技能组合中的不可能

类别。我希望那里有人知道

怎么做才能保存我的b-t。


我在一所大学工作。我为我的部门编写了一个基于Windows的数据库应用程序

,用于购买。该大学刚刚发布了基于Web的应用程序,该应用程序使用我的应用程序使用的数据子集来做同样的事情

。我所在部门的人都讨厌它,并且b $ b想要继续使用我的应用程序,但是,大学的申请必须是b $ b用于订购。我的用户要求的是一种方法,即将我的Windows应用程序中所需信息复制并粘贴到Web应用程序中。

我已经与大学的程序员和他们绝对没有机会改变他们的申请来促进这一点。这一切都必须从Windows应用程序完成。


显然,信息可以一次切割和粘贴一个字段,但是他们

想要一个大量的副本,然后转到网页表格并粘贴,粘贴,

粘贴。


有没有办法做到这一点从剪辑板?从文本文件?我可以

以编程方式分配热键来粘贴剪贴板或文本

文件吗?


任何帮助都很大赞。

解决方案

嗨Greg,


我不太清楚你想要什么。我做了一些实验

使用

剪贴板从我的C#程序向另一个程序(PuTTY)发送信息,它运行正常。我在剪贴板上放了一些文字,向PuTTY发送了

a WM_PASTE消息,并恢复了

剪贴板上的任何信息。


但是,这并没有回答你关于大量复制的问题。


我相信它可以做到,但我不知道信息以何种方式

需要检索和粘贴。

快乐编码!

Morten Wennevik [C#MVP]


您可以使用HTTP与基于Web的应用程序进行通信吗?即请求数据输入页面
然后POST您想要存储的值。每个记录在

a bacth中这样做。


显然这是一个大规模的过度简化但它可能会给你一些

想法。


Stu

" Greg Smith" < gj*@umn.edu>在消息中写道

news:ex ************* @ tk2msftngp13.phx.gbl ...

你好,我已经给了编程任务属于
不可能的我目前的技能组合。我希望那里的人知道如何做到这一点并且可以保存我的b-t。

我在一所大学工作。我为我的部门编写了一个基于Windows的数据库
应用程序,用于购买。大学刚刚发布了基于Web的应用程序,它使用我的应用程序使用的数据子集来做同样的事情。我部门的人讨厌它
并想继续使用我的应用程序,但是,大学申请
必须用于订购。我的用户要求的是一种将我的Windows应用程序中所需信息大量复制并粘贴到Web
应用程序的方法。我已经和大学的程序员交谈了,他们绝对没有机会改变他们的申请来促进这一点。这一切都有
从Windows应用程序完成。

显然,信息可以一次切割和粘贴一个字段,但他们想要一个大量的副本,然后去到网页表格并粘贴,粘贴,粘贴。

有没有办法从夹板上做到这一点?从文本文件?我是否可以通过编程方式分配热键以将内容粘贴到剪贴板或
文本文件中?

非常感谢任何帮助。



嗯....


一方面我不认为应该允许用户指示什么

应该完成


另外,他们真正想要的是共享数据 - 不一定是

复制/粘贴功能

解决方案是寻找另一种方式在2

应用程序之间共享数据 - 绝对不是剪贴板 - 至少在我看来不是


i建议查看 - .Net远程处理 - 让您的桌面应用程序获取

来自开放Web表单的数据


- 多数民众赞成只是初步分析了我所拥有的一点点知识,但是对于我来说,你不能使用复制/粘贴公式

这是用户对如何解决问题的看法主要是一个软件

工程问题


您可能需要为此开发一个网络服务


关键问题将是:


webApp是否使用XML?

是否使用.Net WebForms?

是否使用ASP.Net?

怎么办?它访问并与数据库进行通信?

如何将数据存储在浏览器中? - HTML< Form>元件? php,jsp等?

....


作为最坏情况下复制/粘贴被认为是可行的剪贴板

在.Net中可以共享域名。


希望这有助于至少给你一个开始

Greg Smith < gj*@umn.edu>在消息中写道

news:ex ************* @ tk2msftngp13.phx.gbl ...

你好,我已经给了编程任务属于
不可能的我目前的技能组合。我希望那里的人知道如何做到这一点并且可以保存我的b-t。

我在一所大学工作。我为我的部门编写了一个基于Windows的数据库
应用程序,用于购买。大学刚刚发布了基于Web的应用程序,它使用我的应用程序使用的数据子集来做同样的事情。我部门的人讨厌它
并想继续使用我的应用程序,但是,大学申请
必须用于订购。我的用户要求的是从Windows应用程序到Web
应用程序大量复制和粘贴所需信息的方法。我已经和大学的程序员交谈了,他们绝对没有机会改变他们的申请来促进这一点。这一切都有
从Windows应用程序完成。

显然,信息可以一次切割和粘贴一个字段,但他们想要一个大量的副本,然后去到网页表格并粘贴,粘贴,粘贴。

有没有办法从夹板上做到这一点?从文本文件?我是否可以通过编程方式分配热键以将内容粘贴到剪贴板或
文本文件中?

非常感谢任何帮助。



Hello, I have been given a programming task that falls into the "impossible"
category with my current skill set. I am hoping somebody out there knows
how to do this and can save my b-t.

I work for a large University. I wrote a Windows-based database application
for my department that is used in purchasing. The University has just
released Web-base application that does the same thing using a sub set of
the data that my application uses. The people in my department hate it and
want to keep using my application, however, the University application MUST
BE USED to order. What my users have asked for is a way of doing a mass
copy and paste of the needed information from my Windows app to the Web app.
I have talked to the University''s programmers and there is absolutely no
chance of them changing their application to facilitate this. It all has to
be done from the Windows app.

Obviously information could be cut and pasted a field at a time, but they
would like a massive copy and then go to the web form and paste, paste,
paste.

Is there a way to do this from the clip board? From a text file? Can I
assign a hot-key programmatically to paste things off the clipboard or text
file?

Any help is greatly appreciated.

解决方案

Hi Greg,

It''s not entirely clear to me what you want. I did some experiments
sending information to another program (PuTTY) from my C# program using
the clipboard, and it worked fine. I put some text on the clipboard, sent
a WM_PASTE message to PuTTY and restored whatever information was on the
clipboard to begin with.

However, this does not answer your question about mass copy.

I believe it can be done, but I don''t know in what way the information
needs to be retrieved and pasted.
Happy coding!
Morten Wennevik [C# MVP]


Could you communicate with the web-based application using HTTP? ie request
the data-entry pages and then POST the values you want to store. Do this in
a bacth for each record.

Obviously that''s a massive over-simplification but it might give you some
ideas.

Stu
"Greg Smith" <gj*@umn.edu> wrote in message
news:ex*************@tk2msftngp13.phx.gbl...

Hello, I have been given a programming task that falls into the "impossible" category with my current skill set. I am hoping somebody out there knows
how to do this and can save my b-t.

I work for a large University. I wrote a Windows-based database application for my department that is used in purchasing. The University has just
released Web-base application that does the same thing using a sub set of
the data that my application uses. The people in my department hate it and want to keep using my application, however, the University application MUST BE USED to order. What my users have asked for is a way of doing a mass
copy and paste of the needed information from my Windows app to the Web app. I have talked to the University''s programmers and there is absolutely no
chance of them changing their application to facilitate this. It all has to be done from the Windows app.

Obviously information could be cut and pasted a field at a time, but they
would like a massive copy and then go to the web form and paste, paste,
paste.

Is there a way to do this from the clip board? From a text file? Can I
assign a hot-key programmatically to paste things off the clipboard or text file?

Any help is greatly appreciated.



hmmmm....

on the one hand i don''t think the users should be allowed to dictate what
should be done

on the other, what they really want is shared data - not necessarily
copy/paste functionality

the solution is to look for another way to share the data between the 2
apps - definitely not the clipboard -at least not in my opinion

i would suggest looking at - .Net remoting - to have your desktop app grab
the data from the open Web form

- thats just a preliminary analysis with the little knowledge i have but you
for me, you cannot go with a copy/paste formula
thats a user perspective of how to fix what is primarily a software
engineering problem

you will probably have to develop a web service for this

key questions would be:

does the webApp use XML?
does it use .Net WebForms?
does it use ASP.Net?
how does it access and communicate with the data base?
how is the data stored in the browser? - HTML <Form> element? php, jsp etc?
....

as a worst case scenario where copy/paste is considered viable clipboard
sharing across domains is possible in .Net

hope this helps to at least give you a start
"Greg Smith" <gj*@umn.edu> wrote in message
news:ex*************@tk2msftngp13.phx.gbl...

Hello, I have been given a programming task that falls into the "impossible" category with my current skill set. I am hoping somebody out there knows
how to do this and can save my b-t.

I work for a large University. I wrote a Windows-based database application for my department that is used in purchasing. The University has just
released Web-base application that does the same thing using a sub set of
the data that my application uses. The people in my department hate it and want to keep using my application, however, the University application MUST BE USED to order. What my users have asked for is a way of doing a mass
copy and paste of the needed information from my Windows app to the Web app. I have talked to the University''s programmers and there is absolutely no
chance of them changing their application to facilitate this. It all has to be done from the Windows app.

Obviously information could be cut and pasted a field at a time, but they
would like a massive copy and then go to the web form and paste, paste,
paste.

Is there a way to do this from the clip board? From a text file? Can I
assign a hot-key programmatically to paste things off the clipboard or text file?

Any help is greatly appreciated.



这篇关于做不可能的事的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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