473,412 Members | 4,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

File Loading

Hi,

I'm wanting to email a file from a fixed location (c:\temp\file.doc).
This sounds easy but I'm having a few problems! I have no problem when
using a HtmlInputFile control but I'm wanting to just pick up the file
programmically without user intervention.

Thanks,
Jack
Nov 19 '05 #1
4 990
Cant

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Jack" <ja****@humlog.com> wrote in message
news:6e**************************@posting.google.c om...
Hi,

I'm wanting to email a file from a fixed location (c:\temp\file.doc).
This sounds easy but I'm having a few problems! I have no problem when
using a HtmlInputFile control but I'm wanting to just pick up the file
programmically without user intervention.

Thanks,
Jack

Nov 19 '05 #2
ja****@humlog.com (Jack) wrote in
news:6e**************************@posting.google.c om:
Hi,

I'm wanting to email a file from a fixed location (c:\temp\file.doc).
This sounds easy but I'm having a few problems! I have no problem when
using a HtmlInputFile control but I'm wanting to just pick up the file
programmically without user intervention.


Take a look at the System.IO classes

How does your mail component expect the file to be passed? As a File
Stream? Or just a filename location?
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #3
let me rephrase. If the file is on the CLIENT PC, you cant

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Jack" <ja****@humlog.com> wrote in message
news:6e**************************@posting.google.c om...
Hi,

I'm wanting to email a file from a fixed location (c:\temp\file.doc).
This sounds easy but I'm having a few problems! I have no problem when
using a HtmlInputFile control but I'm wanting to just pick up the file
programmically without user intervention.

Thanks,
Jack

Nov 19 '05 #4
If the file is on the client PC, you CAN do it but you'll need an ActiveX
control or some other kind of thick client, since HTML/script doesn't have
permission to the client's file system.

If the file is on the server then you'll need to use the basic file
functionality in the System.IO namespace.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Jack" <ja****@humlog.com> wrote in message
news:6e**************************@posting.google.c om...
Hi,

I'm wanting to email a file from a fixed location (c:\temp\file.doc).
This sounds easy but I'm having a few problems! I have no problem when
using a HtmlInputFile control but I'm wanting to just pick up the file
programmically without user intervention.

Thanks,
Jack

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Roy Wang | last post by:
hi, My problem is how to determining when the XML file has loaded using javascript. I loaded an xml file using javascript in a web page. The code below is loading the xml file for IE:...
1
by: Jiho Han | last post by:
I am thinking of embedding my schemas as embedded resources instead of reading it using URI at run-time. I came across some snags while trying to do just that such as, previously unknown to me,...
4
by: Kenneth Keeley | last post by:
Hi, I have a page that uploads files to my server and I wish to display a "Please wait while uploading" page to the user while the file is uploading. I have been able to redirect the user once the...
2
by: Mattbooty | last post by:
Hello, Not sure if anyone else has seen this bug, but I have a form where the entire form is covered with a picturebox. The picturebox has a mouseup event. I also have an open file dialog for...
5
by: kutty | last post by:
Hi All, I am loading data to a child table from a text file. the text files also contains data not referenced by parent key. while loading the data if one row fails to satisfies the constraint...
4
by: thisis | last post by:
Hi All, i'm trying to display the amout in percentage for the loading sub event value, for the <img .../> example: the browser should display something like this:
2
by: Curious | last post by:
There's a problem with what is displayed on a tab in my UI. At first, it's a message, "loading...". Then it should be replaced with the actual file name on the tab. Now the issue is that it...
14
by: Steve K. | last post by:
I have a method that I use to get a System.Drawing.Image from a file without keeping a handle on the file open (so I can delete the file). Here is the code: <code> public static Image...
5
by: DR | last post by:
Why is its substantialy slower to load 50GB of gzipped file (20GB gzipped file) then loading 50GB unzipped data? im using System.IO.Compression.GZipStream and its not maxing out the cpu while...
0
by: ndedhia1 | last post by:
I am having trouble loading a property file and keep getting this error when running my shell script that loads and runs my jar files, etc: no property file loaded, using defaults......
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.