|
When I went to collage I learned that you should always create a new Excel Object without using Interop, as different Excel versions wouldnt be compatible otherwise, i.a. programming without intellisence. I did some internal programming for a company, and I can tell you that it was a nightmare with just 10 useres... When I found out that one of them had Excel 2003 and the rest had Excel 2005 (or soemthing like that) I just included the dll, the Library 12, and It all worked as expected. However I would never recomend doing this on a massive scale...
|
|
|
|
|
which office version i should add to C# application as reference to work with excel 2007 and higher keeping the excel 2007 to be installed as prerequisite to run the application.
|
|
|
|
|
In my experience (which is not perfect in this area) I would target the 2007 version of Excel, add this version as a DLL resource that follows the exe file you produce. That way it should be able to write files that are compatible with any newer excel file, however you might have a problem in reading newer excel files this way....
|
|
|
|
|
Create a Primary Interop Assembly (PIA) with an old version of Excel (2007 or older), and use that for your coding. Newer version are normally backwards compatible. I use a PIA generated with Office XP, and do not encounter problems with Office 2010.
|
|
|
|
|
Not claiming any expertise on this, but instead of:
Microsoft.Office.Interop.Excel.Application app = new Excel.Application();
you may want to try this code sequence. I believe this will find the relevant info from the system for the installed PIA's and create the appropriate instance.
Type ExcelType = System.Type.GetTypeFromProgID("Excel.Application");
Microsoft.Office.Interop.Excel.Application app;
app = (Microsoft.Office.Interop.Excel.Application)System.Activator.CreateInstance(ExcelType);
I think this is the method [^]Kenneth described.
|
|
|
|
|
Hi,
I need to build a system that detects the availability of the parking space for 2/4 wheelers.
I will not be using the RFID to detect the availibity though.
The points that I have in my mind are :
1.The pressure sensors (or any other sensor) to be installed on the parking place.
2.The space will show green when no car is park on the monitor installed at the entry of the parking
3.As soon as the car gets parked on the space, the area will be marked as red on the screen which means the space is no more vacant.
The purpose of the system will be to save time looking out for the parking spaces and wasting precious fuel
Hope I get some help here
Regards
Ashu
|
|
|
|
|
This is a solved problem, there are systems out there that tell you how many spaces are left in a parking station, although I wonder if they are simply working on a count in/out.
Why not consider surveillance camera with some sort of recognition algorithms that detect an object in a specified area. How are you going to display the vacant spaces for a driver, a bloody big screen somewhere or are you going to send it to a mobile device.
Once you work out the hardware infrastructure the building the application is trivial!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
How do you plan to interface the pressure sensors with the software? You are going to need a microchip and a ton of ADC's, among other things, then to write firmware for the uC and then the easy part is sending the data via USB to the C sharp application.
|
|
|
|
|
I think you would need to consult a civil engineering design firm for this one.
The reason you don't see this widely implemented already is because of its cost. You're not going to get away with using simple microcontrollers and pressure sensors.
The loads you need to deal with are far greater. What's the heaviest weight of a single axle of the heaviest vehicle your parking lot will accommodate? In the U.S., a 1-ton pickup (a 6,000lb vehicle) can put well over 3,000lbs on the front axle alone, and therefore that much weight on the sensor under the pavement in the parking spot.
The cost of one of those load cells is about $200+ in the U.S.
You'd also need to have considerations for motorcycles (can be less than 400lbs) and how people park them in a park spot, possibly missing your load cell altogether.
Then there's the cost of installation of a single load cell in a single parking spot.
Total up what it takes to install them, per parking spot, and you've got an enormous cost. Compare that to the expected cost savings to the business for telling people what spots are open. Oh! That's right! The owner of the parking spot didn't buy the gas for the customers! So, that savings for the owner of the parking spot is ZERO!
That's why you don't see this being widely used anywhere.
|
|
|
|
|
Dave Kreskowiak wrote: Total up what it takes to install them, per parking spot,
Which is going to be quite a bit less than what it costs to maintain them over time.
|
|
|
|
|
Well, I didn't want to scare him too bad!
|
|
|
|
|
I agree with Mycroft that the best solution is probably an image processing solution.
You could start with the Aforge library and make use of IP webcams.
Or checkout my Opensource webcam movement detection system [^]that is IP webcam enabled which makes use of Aforge.
(Warning the code is an example of how not to write .Net code however it was written around 5 years ago and I have learned a lot since...)
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
I Want that My logic in my dll file should be hidden just.
|
|
|
|
|
Screaming out in angst will not get you a different answer than you got the other day. Obfuscation is what you are looking for. It will stop the casual inspection of the logic in your DLL.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Actually My work is that I have an Website in VB .NET.
I Want To convert it into C# and asp.net website.
My business logic is in a separate class file.So I want to convert it into a dll file.
My question is that is it possible to run both website pages simultaneously i.e.(asp. net and vb .net website) on same domain.
I want to convert the vb .net website in asp.net C# website side by side so that the vb. net website would not affect the task.
|
|
|
|
|
|
We already told you what your choices are. Reposting the same question (and still yelling about it) will only get you flagged as "abusive".
|
|
|
|
|
So what do you want? Could you explain it more correctly?
Don't you know the method of make DLL?
|
|
|
|
|
any someone can give me some solution about plate recognition with c# any reference or some code for me .,.,.,please Help me.,.,.,.,
|
|
|
|
|
Plate as in something used when eating, a thing inserted into the mouth by a dentist, a slab of building material, a thing displayed on a vehicle.
Be clear what you are asking we are not telepathic. Now try and explaining in MUCH more detail what you want to achieve and maybe someone can point you to an article.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I'm trying to create a C sharp application that can run under elevated credentials and give full mailbox access or remove full mailbox access for groups.
I cannot get system.management.automation to work in Visual Studio as a reference, so most likely any solution involving that is out of the question. It displays a yellow triangle and exclamation point when I add it as a reference.
Thanks
|
|
|
|
|
What version of the .NET Framework are you targeting? I have seen that icon when I was using, say, a .NET 4.0 assembly in a .NET 3.5 project.
AFAIK, PowerShell 3.0 requires .NET 4.0 and PowerShell 4.0 requires .NET 4.5 (I am not sure though)
Keep Clam And Proofread
--
√(-1) 23 ∑ π...
And it was delicious.
|
|
|
|
|
I did not check that and I really hope that is it.
When I get to work tomorrow I will check that and any other ideas that anyone here posts.
|
|
|
|
|
I was targeting 3.5.
I changed it to 2.0 just for the heck of it and it broke 4 references instead of 1, so I'm back to 3.5.
Any other thoughts?
|
|
|
|
|
I found something interesting, I have an older project where this worked and will still compile.
The reference is to
C:\Windows\assembly\GAC_MSIL\System.Management.Automation\1.0.0.0__31bf3856ad364e35\System.Management.Automation.dll
But when I try and reference that, I cannot do so directly, but instead can only browse to
C:\Windows\assembly\ and when I see System.Management.Automation, I cannot select it?
Under properties, security is different, but most everything else is the same? Maybe you can't include that to a WPFBrowser application?
[edit]
I just created a generic forms application and then added the dll and it is still failing, so I guess it has nothing to do with the WPFBrowser application portion.
|
|
|
|