windows app to retrieve data from asp.net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an ASP.NET Web App that generating some files in realtime and it does
a bunch of other processing stuff. The user then will launch a desktop
Windows App to print the files that were generated from the ASP.NET Web App.
According to my research I have to either use activex or there is not way to
automatically download some files from the Web App to the user local machine.
(I'm told Activex is out of the question.)

I then decided to pull the files from the server. I've used the WebClient
and there is a DownloadFile method which allows me to download files from the
server to the local machine programmatically without user interaction.
However, the file name is dynamic and generated in realtime.

Is there a way that I can at least transfer or pass a string or variable
from the ASP.NET to the Windows App or vice versa?

Any suggestions is welcome. I really need a solution quick. Thank you!
 
Hello Teresa,

Why not to use WebServices or System.Web.Mail for this?

T> I have an ASP.NET Web App that generating some files in realtime and
T> it does
T> a bunch of other processing stuff. The user then will launch a
T> desktop
T> Windows App to print the files that were generated from the ASP.NET
T> Web App.
T> According to my research I have to either use activex or there is not
T> way to
T> automatically download some files from the Web App to the user local
T> machine.
T> (I'm told Activex is out of the question.)
T> I then decided to pull the files from the server. I've used the
T> WebClient and there is a DownloadFile method which allows me to
T> download files from the server to the local machine programmatically
T> without user interaction. However, the file name is dynamic and
T> generated in realtime.
T>
T> Is there a way that I can at least transfer or pass a string or
T> variable from the ASP.NET to the Windows App or vice versa?
T>
T> Any suggestions is welcome. I really need a solution quick. Thank
T> you!
T>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Teresa,

You probably want to wrap your files contents with code that exists at a
static location (a web service would work nicely).

You could then access that service and have it figure out which file to feed
you based on input parameters you provide to it.
 
Thank you both for the suggestions.

I have a work around and that's when I launch the desktop application from
the web application, I used the a href tag such as below.
<a href="mylocalappname:paramlist">linktext</a>

I then checked the param list when the desktop app is launched. The param
list is basically the path and filenames I need to download the files from
the server to the local machine. And I use the webclient to download the
files.

Thank you for your help!
 
Back
Top