I was working on a project for a client who runs a scheduled backup daily. He needs to stop the SQL service, which I have done successfully, but I need to find a way to access a tape drive to see that the tape is actually inserted. I do not know of any way to do this with ntbackup.
I have tried to find this on the web but came up fruitless.
This is a windows form in C#, using .NET Framework 2.0.
The tape drive does not come up in the DriveInfo.GetDrives().
Does anybody know how I can verify that the tape is inserted in C#
for (int i = pbStatus.Minimum; i <= pbStatus.Maximum; i++)
// HERE THE PROGRESSBAR DOESNT MOVE
foreach (FileInfo f in files)
ftp.Upload(txtLoggedInSource.Text + "\\" + f.Name);
label1.Text = "All files are upload successfully";
Can someone please help me why it doesn't work with upload
Me and my partner are doing our final year project in Addis Ababa University.
The problem here is eventhough we are using one of the latest voice modems we can not have a live communication up on connecting calls. We have a demo C# code which can record calls (that worked).I donot think it is the code's problem but I wish if you guys out there help me use my voice modem for live connection.
Try this code. I actually found an article from C-Sharp Corner on how to open up a word file in C#. You just have a look on that article, I added to the code a little to meet ur requirement.
//Create Word Application class.
Word.ApplicationClass app = new Word.ApplicationClass();
//file which you need to convert to text file
object fileName = @"Sample.doc";
//to set the source file readonly.
object readOnly = true;
object missing = Type.Missing;
//to make the document visible.
object visible = true;
app.Visible = true;
app.Documents.Open(ref fileName,ref missing,ref readOnly,ref missing,
ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,
ref missing,ref visible,ref missing,ref missing,ref missing,ref missing);
//select the whole text in Word file
//get the selected text, the whole word file content.
string text = app.Selection.Text;
//create StreamWriter Object.
System.IO.StreamWriter writer = new System.IO.StreamWriter("YourTextFile.txt");
//split the text in to lines.
string lines = text.Split(Environment.NewLine.ToCharArray());
//Iterate over each lines and write to file.
foreach(string s in lines)
//write a line to file.
i am using crystal reports for my application.it is working fine in development machine ,after creating setup project and installation in any machine that time error is coming like error in file c:\doc\..\temp\temp_e68 _...._.rpt invalid table number.
it is working fine from application,after installing msi then only this problem is coming.
i tried a lot for this,but iam unable to find the solution.
I ran into a similar problem a while back. Do you have the crystal reports prerequsite checked?
If not, do this:
1. Go to solution explorer.
2. Right click on your setup project and hit properties.
3. A form should popup with the projects properties, find the button that says: Prerequsites.
4. From the list that appears check: Crystal Reports for .Net Framework 2.0.
Build the setup project and your done!
Now if you go to the setup folder in your project directory, you will see that it has added the necessary components to get crystal reports working on the target machine.
I have a form on which there is a textbox and a datagrid. Both the text box and datagrid are bound to some data sources. There are only two columns in the datagrid. The text box basically displays a column of the datagrid. When the user clicks on the New or Modify button, he is able to edit the value in the text box or add a new one which is added to the bound grid. But the problem is that the Text property of the text box becomes equal to empty string before it is added to the database or the grid. I have checked the source code many time but i dont know why it happens. I have faced the same problem previously but at that time, it became equal to empty string when AcceptChanges() method of the datatable was called. Any kind of help or suggestion please...
Put a Chatroom in your site easily and free!
Doesn't requiere other apps runing on server. Very simple to implement.
It uses the same ISS as the chat server so you don't need to run other apps. The client is your web browser. Very easy to implement and to expand to build on. And free!:
is there a way to utilize media encoder and make a new video comprised from segments of the same video - encoder should run 'behind the scenes. i'm having trouble loading the profile for encoder as well as getting encoder to accept a session... thanks
I'm developing software for a class that takes a video and records instances of that video using time stamps. I was wondering how to create individule files of those instances from those time stamps. thanks.
I have Access 2003 installedand the database I'm trying to connect to via C# was probably created using Access 97. I don't have the option to upgrade the database and must remain in Access 97 format. The database is protected by a workgroup ID. The command line option for spawning the database is:
MSACCESS.EXE c:\master.mdb /wrkgrp c:\master.mdw /user foo /pwd bar
This brings up the database, but I get an error stating:
You can't make changes to the database objects in the database 'master.' This database was created in an eariler version of Microsoft Office Access....
Problem 1: Read-only connection
If I try and connect to this database from c#, I get the following error.
System.Data.OleDb.OleDBException: Cannot start your application. The workgroup information file is missing or opened exclusively by another user.
Since I can open the database using the command line above, I suspect in order to read the database, I need to somehow specify read-only access within the connection string. Here's my connection string:
im searching for Methods to compare Images. But i dont want only such simple things like comparing files byte for byte. I want to find pictures that are nearly same.
I have many pictures that have sequences of similar images eg. a series of images that show the same scene but someone moves around a bit or moves an arm up and down. So i want to do some checking for pictures that are not completely the same.
How can i do that or where can i find components that does that?
I have a text file with rows of lines that look like this:
I would like to know if there is way for me to read the values between the delimiters, which are the semicolons. I know that I can read one character at a time, but that means that I have to add each character to an array slot. I am hoping to be able to read from the beginning of the line to the first semicolon, add that string to an ArrayList, read the next value between the semicolons, add that value to the ArrayList, and so on until I reach the end of the line. I would really appreciate any help, thanks.