Re: Doing The Impossible
From: Greg Smith (gjs_at_umn.edu)
Date: 04/20/04
- Next message: William Stacey [MVP]: "Re: Doing The Impossible"
- Previous message: feel52: "Using socket class program hangs?"
- In reply to: Julie: "Re: Doing The Impossible"
- Next in thread: Chris Torgerson: "Re: Doing The Impossible"
- Reply: Chris Torgerson: "Re: Doing The Impossible"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 20 Apr 2004 11:50:45 -0500
Thank you for your response Julie.
Your first solution looks good but if do anything to by-pass any of their
web processes I will be shot.
Your second solution is EXACTLY what they asked for. It would make them
very happy. The only problem is that it is a bit over my head at this
stage. Can you point me to any examples, code snippets, etc. that would get
me going on this?
Once again, thank you fro your very helpful response.
"Julie" <julie@nospam.com> wrote in message
news:40853F54.63F4DB12@nospam.com...
> Greg Smith wrote:
> >
> > 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.
>
> Couple of ways to do this:
>
> - In your application, use the .NET web controls to create a POST
response
> that mimics the web response. You wouldn't even require that IE was
running,
> it could all be done behind the scenes. Caveats: if the web page POST
format
> changes, you will need to update your app; this method could be
complicated if
> there are cookies, logins, or navigation that is required before the POST
will
> be accepted.
>
> - Instead of considering this one big copy/paste operation, look at it as
a
> series of single copy/paste operations. You could enable your application
to:
> open an instance of IE and navigate to the entry screen (or have the user
> manually do that); then, text-box by text-box, iterate over the controls
in
> your application, copy the text, and paste into the corresponding text-box
of
> the web app. You would need to create a mapping between your text-box
> identifiers and the text-box identifiers used in the web page, I'd
recommend
> using an external configuration file that can be quickly and easily
modified if
> the web page layout changes.
>
> I'd consider the first option as the best solution as it can do the entire
> operation behind the scenes and your users don't have to mess w/ the web
> version at all.
- Next message: William Stacey [MVP]: "Re: Doing The Impossible"
- Previous message: feel52: "Using socket class program hangs?"
- In reply to: Julie: "Re: Doing The Impossible"
- Next in thread: Chris Torgerson: "Re: Doing The Impossible"
- Reply: Chris Torgerson: "Re: Doing The Impossible"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|