|
DBNull.Value ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks for the prompt response but ..
this.correspondenceTableAdapter.FillBy(myclubDataSet.Correspondence, DBNull.Value);
results in:
Error16 Argument '2': cannot convert from 'System.DBNull' to 'System.DateTime?'
Glen Harvy
|
|
|
|
|
OK, you're using table adapters. I don't think there's such a thing as an empty DateTime, it has to have a value, and so you'd need to have your database table accept nulls for this column, in order to store a meaningful 'empty' date time value.
There is no such thing as DateTime.Empty.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I fixed it by amending the Select command in the tableadapter itself so that no parameter is passed at all.
Glen Harvy
|
|
|
|
|
Hi all
I am new to Visual Studio 2005 Windows Mobile development, please bear with me for some questions.
I have exe file installed in the device.
1.The Application launching very slow.When I double click the exe. file, I need to register to SIP Server,then load the Login form.its taking 4 to 5 sec for loading login-form.
2.Right now Iam connecting to internet thru GPRS before I launch the application.Is there any way to connect to internet on clicking Login -button?
3.I am trying to Exit the application many ways, but its not closing ,still running at the back-ground.
Please help me.
regards
|
|
|
|
|
We need to dynamically fetch text from the PNG files using C#.NET code. The application would load the image in memory and extract(return) the text out of it. We are aware that it is png specific ocr process. But I am unable to find a solution for it. The other requirement is that the solution for the above mentioned problem should not use any executables. Instead if it uses any COM dll, then the problem is rectified.
Thanks in advance,
Rgds
Amit
|
|
|
|
|
Is the text stored in metadata associated with the image, or in the actual image itself ? That is, can you see the text when you view the image ? If so, this is a pretty big task
Jatin Kakkar wrote: The other requirement is that the solution for the above mentioned problem should not use any executables. Instead if it uses any COM dll, then the problem is rectified.
So you're basically looking for an OCR library ? I believe Atalasoft has one for sale.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks Christian for a prompt reply. I am looking for some free source code(downloadable) for achieving the same. Buying a tool will take a lot more time to be approved. Any help in this direction will be highly appreciated.
|
|
|
|
|
OCR is never perfect. According to the google page someone linked you to:
It also doesn't do well on grayscale and color documents, and it's not nearly as accurate as some of the best commercial OCR packages out there. Yet, as far as we know, despite its shortcomings, Tesseract is far more accurate than any other Open Source OCR package out there
I take that to mean - good luck. If you need to use something free, then this is your best bet, perhaps you can turn the images to 1 bit first ? Anyhow, realistically, if you want any sort of guarentee, or any sort of support, you need to buy a library. You certainly don't want to be writing one.
Also, be aware that OCR performs very poorly when the text is not lined up exactly, or has background noise.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks again... As correctly mentioned by you that OCR-ing is not a perfect way of achieving the above mentioned task. Is there any other way out to extract the text from the PNG files. Buying a library seems to be the last resort for ur as the approval wfor the same would take a long time.
|
|
|
|
|
No, OCR is the only way. The text does not exist anymore, except as pixels that have no knowledge of their meaning to the human eye, so you need OCR to recognise them and pull them out.
Why would it take a long time ? Is this a commercial project ? If so, are your managers living in a fantasy ? OCR is a complex task, if they are being paid for this work, then a commercial library is the only choice that makes sense, unless you happen to get lucky with a free one.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks once again. The text which needs to be captured from the image file is actaully the part of the image (the text is visible in the image). I need to capture that text.
|
|
|
|
|
Google has a free OCR library, Tesseract[^]. Does that suit your requirements?
|
|
|
|
|
hello
I have bought the matlab building for .net.
in Matlab there is a Polyfit function who does
linear fitiing
how can I do a polyfit function in Cs?
|
|
|
|
|
Hi,
I have a page that has a list of wineries. If a winery is selected, then it displays a list of wine for that winery. No I can go an choose which one of the wine I want to add to the order.
Beneath the winery dropdown and wine selection, I have a gridview that displays all the order items.
Here is my confusion, when I add the wine as an order item to the OrderItems table, it works fine, but the gridview still displays the orderitems up to the last inesert. It's as if it does not refresh the gridview. I have to press F5 to have the news items added to display in the grid view.
Is there a way of refreshing the grisview when the items are added, because it does make a round trip to the server to insert the order items.
Please can some help. If there is confusion, please ask and I will try to explain better.
Regards,
ma se
|
|
|
|
|
Hi,
I have created windows service in c#. I would like to schedule windows service manually or by coding .How can I do this.
Any help is appreciated .
Regards,
Rajesh
rajesh
|
|
|
|
|
Actually, I am looking for
My Service should start every day at 9’o clock in the morning and after some time My service should be stopped. As Microsoft has provided a Schedule Task in windows XP, where we can schedule any exe . In the same way how can I schedule any windows service to execute on specified time?
Regards,
Rajesh
|
|
|
|
|
Hi!
There's a ServiceController component you can use for this purpose.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
hi,
i have a datagrid displaying a database,
i want to use certain cell values to for example make a sum, the result i want to display on a second datagrid in a specified cell for example column 2 row 3
im not sure how to do this
my first thought is to somehow copy the database showing on the first grid an use these to calculate.
any tips on how i shoud get this working?
thx
|
|
|
|
|
Are there any API's for interacting with Bluetooth devices using C#.NET 2.0 (Desktop).
Is there any guide/tutorial/book out there that deals with this subject?
Here's what I want to end up being able to do - I have a bluetooth USB device and I want to communicate with it using C# 2.0
Any sort of help would be greatly appreciated.
There is no patch for ignorance
|
|
|
|
|
Hi, How do I create a comma delimited text file and write data from SQL database in it using C#?
|
|
|
|
|
The System.IO.File class has all you need to create a file. Not sure if there are any APIs apart from reading your table and writing it out with commas added.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I have an MDI in which on the left side is a tree view, and on the right side, i have forms. I open those forms upon selection of nodes from the tree. Now i have a form on the right-side in which i have some buttons. I want that when i click on a button, a relevant tree node can be selected and also the form related to that node can be opened on the right side.
Can anyone guide me how can i do that?
sAqIb
|
|
|
|
|
I have an MDI in which on the left side is a tree view, and on the right side, i have forms. I open those forms upon selection of nodes from the tree. Now i have a form on the right-side in which i have some buttons. I want that when i click on a button, a relevant tree node can be selected and also the form related to that node can be opened on the right side.
Can anyone tell me how can i do that?
sAqIb
|
|
|
|
|
Good morning, I would like to know if it is possible to use a streamwriter and write user input (string) to a specific cell in a worksheet in excel. If not a streamwriter, is there another class that might be able to do it ? Im not talking about writing comma delimeted files which you can open in excel, i want to write a string directly to an excel worksheet to a specific cell so that i can use the formulas created in it.
Any help will be appreciated.
Thank you.
|
|
|
|