Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2006

Tip: Looking for answers? Try searching our database.

windows app to retrieve data from asp.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Teresa - 06 Jun 2006 16:05 GMT
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!
Michael Nemtsev - 06 Jun 2006 20:41 GMT
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
Saad Rehmani - 06 Jun 2006 23:42 GMT
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.

Signature

Saad Rehmani / Prodika / Dallas / TX / USA

> I have an ASP.NET Web App that generating some files in realtime and
> it does
[quoted text clipped - 18 lines]
> Any suggestions is welcome.  I really need a solution quick.  Thank
> you!
Teresa - 07 Jun 2006 05:44 GMT
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!

> Teresa,
>
[quoted text clipped - 26 lines]
> > Any suggestions is welcome.  I really need a solution quick.  Thank
> > you!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.