I'm trying to monitor a directory to ensure that all of the files are there.
The files are being processed by another program, so I need to verify that all 4 files are present before moving on.
Does anyone know a way to do this?
I've tried to install a File System Watcher, but I didn't find a...
I start out the page by setting the TextBoxes's Text equal to some field in a database. I change the Text in that box however that acctual value when it gets posted back to the database does not change from the original.
for example:
TextBox1.Text = "Hello";
Now, I change the text...
I'm trying to setup a program that will perform a function call on every tick of a timer; however, its not working correctly.
I basically just set up a default timer, with an interval of 2000.
Now I have a function within the timer1_tick() method
{
generate()
}
The function is called...
I want to open up a windows application (*.exe file) from a webform.
Does anyone know the code for this?
I've tried:
System.Diagnostics.Process.Start(fileName);
but this doesn't seem to do anything.
Any suggestions?
Thanks,
-Chris B.
Paul,
Thank you so much! That was a big help. Now I'm trying to create the document object:
Word.Document theDocument = WordObj.Documents.Open();
This compiles, but I get a runtime error of the following:
"Object reference is not set to an instance of an object."
I've tried...
Yeah,
The ref part was throwing me at first, but I figured that part out. Now I just don't understand why it asks for type "object."
I've tried to do this:
string FileName = "c:/directory/filename.doc";
WordObj.Documents.Open(ref FileName,...);
But it says it can't...
I'm trying to programmatically edit a Word Document in C#.
I want to open the file, edit the file via Bookmarks, and then save it.
From my research, I've found that you have to go to "Add Reference" and add the MSWord9 reference to the project. This I have done.
The code looks like...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.