|
I created an Animal class, then I created a Dog class and a Cat class that inherited from the Animal class. Then the Dog class ate my homework.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
|
Hi
Wonder if anyone out there can help me.
I have been working on retrieving data from xls files using ole and have had no problems until i received a file that is causing me considerable greif.
The file in question is 26k in size and is a simple headed workbook with 2 pages.
When I connect to the file and try to retreive schema info (using schema = GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] { null, null, null, "TABLE" })) no table rows (pages) are found (ie schema.Rows is null).
If I open the file in Excel and click on the save button (without making any changes) the file grows by 10k in size and the data can then be retrieved without any problems!!???
Has anyone out there ever experienced an issue of this nature and if so, could you possibly explain what is making this happen.
Many thanks in advance to anyone who can help,
Steve
|
|
|
|
|
Now you begin to understand why most devs avoid Excel like the plague. We force the supplier to send us CSV files, this would mean you get 2 files for multiple pages.
Excel OLEDB connections are too fragile in my opinion, you have no control over the excel sheet, I could go on for many additional reasons not to use Excel. This is not helping you, sorry.
You may end up in the position where you need to read in each cell from each sheet.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I work with this:
conn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables_Info, null);
check the excel version maybe it is related
Natza Mitzi
|
|
|
|
|
{"DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'UserId'."}
|
|
|
|
|
It looks like you have a control (e.g. GridView) for which you have specified a column with the DataItem UserId but the UserId does not exist in the object you are binding to the gridview. Check your gridview data source contains a UserId column/property.
|
|
|
|
|
The answer is the same as it was yesterday. And the day before.
You need to do three things:
- Read what people have said.
- Take action based upon it.
- Discover magical fairy la la land where your grade school code works.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
|
It means you're too stupid to use a computer. Put it in it's box, take it back to the store, and choose a different course.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
You really need to read the answers from your last post. And get a book about data binding!
|
|
|
|
|
It means the psychic link has failed to update your code to supply a UserId.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
The error code will be 119047 (convert it to hexadecimal to read it). It means that something bad happened. Don't panic, if it doesn't run well it probably won't be shipped (unless the lead developer is the CEO's relative) and people won't have to maintain it
Additional option: plug the error message into Google
Final option: blame someone else. It works in government all the time
|
|
|
|
|
|
Just use a loop to read out the array and add every element to the existing string.
|
|
|
|
|
string[] arr = new string[] { "one", "2", "three", "IV" };
string x = String.Join("\", \"", arr);
|
|
|
|
|
|
"Cattle!"???
- you joined CP just to say that? (您加入處長只是說?)
Translation provided by Google Translate[^]
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hi,
Is it possible to adorn a visual like a rectangle, ellipse, ...?
Help about the adorner class says: "Abstract class that represents a FrameworkElement that decorates a UIElement.". I know a visual is not a UIElement but can you work around this?
Hope someone can give me a link with an example if it is possible.
Thanks,
Bart
|
|
|
|
|
i am using Process Class to execute a batch file.The batch file contains compiling code of C.i wanted to get the compilation output in string format.how can i do this?is any function for that?
modified on Thursday, April 23, 2009 3:02 AM
|
|
|
|
|
Use the "StandardOutput" property of the process class. This will give you a stream to read the output generated by the running process.
|
|
|
|
|
I am using the following code...
how can i get the compilation result in string format.
Process myProcess;
// myProcess = new Process();
// myProcess = Process.Start(BatchFile);
// myProcess.WaitForExit(240000);
// myProcess.Close();
|
|
|
|
|
|
|
You can rewrite the dlls that house the APIs to add some sort of logging that you can refer to. Otherwise, no.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|