Re: Doing The Impossible

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Greg Smith (gjs_at_umn.edu)
Date: 04/20/04


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.



Relevant Pages

  • Re: Doing The Impossible
    ... Your first solution looks good but if do anything to by-pass any of their ... thank you fro your very helpful response. ... >> copy and paste of the needed information from my Windows app to the Web ... > identifiers and the text-box identifiers used in the web page, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: single instance
    ... I got a problem with an app which i developed in MFC, ... If you look at how the Microsoft code creates the mutex you will see that it ... If you would like the code for the first solution, take a look at the ATL ... library -specifically CDacl, CSid, CSecurityDesc and CSecurityAttributes. ...
    (microsoft.public.vc.mfc)
  • Failsafe way to get pointer to Document?
    ... OnNewDocument showing that it runs before the document pointers are ... My first solution was to initialise a document pointer in the app from ... CFApp* pApp = AfxGetApp; ...
    (microsoft.public.vc.mfc)
  • Re: single instance
    ... I got a problem with an app which i developed in MFC, ... If you look at how the Microsoft code creates the mutex you will see that it ... If you would like the code for the first solution, take a look at the ATL ... library -specifically CDacl, CSid, CSecurityDesc and CSecurityAttributes. ...
    (microsoft.public.vc.mfc)
  • Re: Slow response on windows server 2003 running multiple web site.
    ... Thank you for your response. ... but only one of my app is asp.net app, the other is just plain html pages. ... > repeatedly incurred on the subsequent request. ... > IIS 5.1 on XP Pro does not proactively idle timeout nor do any sort of ...
    (microsoft.public.inetserver.iis)