|
hi to everyone.. anyone suggest me the method to read .mpp file content using C#. and also how we can store content to oracle database.
|
|
|
|
|
Does the office toolkit give you the ability to bridge to project ? If not, then you need to find out the file format and work out how to read it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
In .NET 2.0, assume that I have some SQL written along the lines of:
Select child.name, parent.name
From person child, person parent
On child.ParentId = parent.Id
Where child.category = 55
I now have to convert this SQL so that it selects from a cached DataTable of people instead of directly from the database.
Is there an elegant way to convert this SQL using DataTable.Select (or some other DataTable method)? (I realize that if there was just one Person in the SQL statement this would be simple.)
|
|
|
|
|
If you've got relationships setup, you'll need to do something found at:
Select Statement Syntax[^]
Look for the section - "PARENT/CHILD RELATION REFERENCING"
|
|
|
|
|
I repeatedly am running into the same problem. I do scientific work where we use images, video, and sound files to record events. The time of the creation of the file is very important to us as often a file shows what happened at one moment in time and the next file shows what happened maybe only several seconds later. Since image files, video files, and sound files are all tagged with the date/time of their creation we have a record of when the file was created allowing us to make many observations as we know when the event happened. These files are created by many types of devices cameras, audio recorders, camcorders, etc. The problem I have is that when these files are copied the creation date becomes the date of the copy and the original “real” creation date is lost. Understanding this and I have resorted to using a drive mirroring pieces of software to copy my files from devices so the the “real” creation date is preserved as the date of the copy is of no importance to me.
I am looking for ideas about how to go about writing a C# program to copy files and preserve the “real” creation date/time.
|
|
|
|
|
Hi George,
I did tell you a couple of hours ago, modification datetime is the one to use.
In Windows creation time is when you create the container, not the contents;
modification time (or lastwrite time) is when you fill the container or in any way change the contents of the container.
So if you create a new document at 9 o'clock, edit it again at 10, and copy the file at 11 o'clock using Explorer, then the original will have created=9 modif=10, and the copy will have created=11 modif=10. So looking at modif time, they are the same; looking at creation time you would get confused indeed.
I set Windows Explorer to not show creation times and always show modification times.
So it will not confuse me, the datetime I see is about the content; I don't care about container times.
Of course, on top of the above, as you well know, some file types have a datetime information embedded in the data itself, such as the "picture taken" time inside a JPEG picture.
|
|
|
|
|
Hi guys I have noticed same result by trying two different approach.
1). I am simply opening a myfile.html inside a windows form and viewing it through the PrintPrviewDialog. What i have noticed is that if i change the text to some lite blue colour when i do a print preivew the colour isn't the same. It's blue but little dark. I am wondering if this is the default behaviour or is there any possible solution around to it. Has anyone ever noticed that.
2). simply open a html file inside a internet explorer having lite text colour. Do a print preview and u will colour aren't same.
What can be done to get the same colour while print previewing
Thanks in advance
|
|
|
|
|
Maybe something to do with web safe colors? Perhaps you should ask in a different forum. Not sure C# people can help
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
I have a large .net application (.net 2.0). It runs smoothly under win 2000 and xp sp2. But it will hang under win XP SP3 and vista once it is idled for 20 minutes.
Does anyone know what is the potential problem?
Also is there any good way to find out what cause the problem under vista?
|
|
|
|
|
It's called "the debugger".
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Sincerely Samer Abu Rabie
Note: Please remember to rate this post to help others whom reading it.
|
|
|
|
|
Don't cross post.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Maybe something is being garbage-collected?
|
|
|
|
|
(his application?)
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
hey,
two weeks ago i found this code:
HTMLDocument myDoc = new HTMLDocumentClass();
myDoc = (HTMLDocument)ie.Document;
// a quick look at the google html source reveals:
// <INPUT maxLength="256" size="55" name="q">
//
HTMLInputElement otxtSearchBox = (HTMLInputElement)myDoc.all.item("username", 0);
otxtSearchBox.value = "??????????";
HTMLInputElement otxtSearchBox2 = (HTMLInputElement)myDoc.all.item("password",0);
otxtSearchBox2.value = ""??????????";";
HTMLInputElement btnSearch = (HTMLInputElement)myDoc.all.item("oSubmit", 0);
btnSearch.click();
so I wanted to add a little gadget which checks if i got new mails.
So i found the HTTPWEBREQUEST consept :
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create("http://newmail.walla.co.il/");
// execute the request
HttpWebResponse response = (HttpWebResponse)
request.GetResponse();
// we will read data via the response stream
Stream resStream = response.GetResponseStream();
The PROBLEM is I can't get into my mail with HTTPWEBREQUEST because it sends me to the login page.
The login page ,as long as i know uses GET method and i can't find a way to pass trough.
could someone help me somehow ? how can i fill these fields?
i was looking for the answers like 4 hours , trying changing cookies , NetworkCredential, Headers ,WSSE ..... with no success( i just don't know what to do)..
|
|
|
|
|
Go easy on the bold face text, please.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
After login, you get the cookie back. Save the cookie and use it in the new request. This often contains the login info.
|
|
|
|
|
How do i login with this code:
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create("http://newmail.walla.co.il/");
// execute the request
HttpWebResponse response = (HttpWebResponse)
request.GetResponse();
// we will read data via the response stream
Stream resStream = response.GetResponseStream();
???
you said "After you login" , can you explain what should i write to achieve that login?
if you meant that i will mix the first code with this , could you explain me either?
|
|
|
|
|
Hello,
I have an application (application1.exe) which do shows an popup at spicific event.
I want to create an application that will be able to hearing for application1.exe. when the event is occure I want to get the popup information into my application.
I want just clue, How will I do this?
I hope someone GURU will guide me.
Regards
nidostyle
|
|
|
|
|
Unless the app exposes some kind of external notification system, there is no event that you can listen for. The only possibility you have is using Windows Hooks, I believe the CBT hook specifically, and watch for the pop up window to be created. But, this is NOT a trivial thing to do. Then, getting the data from that window is the next difficult task. How you do this depends on the window, how it's structured, and if the controls it hosts responds to the WM_GETTEXT message. You might want to Google for "WM_GETTEXT" for examples.
|
|
|
|
|
i want to convert this vb.net code to c# code but i have problem with oledbdatareader i have missing code or i cannot convert this line into C# Me.Label1.Text = reader.Item(0).ToString.
code with vb is working code:
Dim con As New OleDbConnection
Dim scom As New OleDbCommand
Dim reader As OleDbDataReader
While reader.Read
Me.Label1.Text = reader.Item(0).ToString
End While
code with c# is not working missing line
scom.Parameters.AddWithValue("@A", textBox1.Text);
scom.CommandText = "Select Name from Table1 where (id=@A)";
scom.CommandType = CommandType.Text;
scom.Connection = conn;
OleDbDataReader reader = scom.ExecuteReader();
while (reader.Read()=true)
{
label1.Text= reader.; //probem is here coannot found item()
};
property item(0) not found in C# code can any one help me
Ahmed hassan
|
|
|
|
|
hassanasp wrote: cannot convert this line into C# Me.Label1.Text = reader.Item(0).ToString
If you're using indexers in vb they are in parenthesis but in c# they are in [].
So have a try with
Label1.Text = reader.Item[0].ToString
hassanasp wrote: while (reader.Read()=true)
In C# equality is == so:
while (reader.Read()==true)
or
while (reader.Read())
|
|
|
|
|
the problem is when write(reader.)no property item found in C# but in vb is found
label1.Text = reader.Item[0].ToString;
Error 1 'System.Data.OleDb.OleDbDataReader' does not contain a definition for 'Item'
Ahmed hassan
|
|
|
|
|
Item property isn't language specific. It exists in the framework, not in the language see: OleDbDataReader.Item Property (Int32)[^].
One problem you have is that ToString is a method so it must have parenthesis so:
label1.Text = reader.Item[0].ToString();
or
label1.Text = reader[0].ToString();
|
|
|
|