|
What is this? please go through the question before you answer..... ok?
My small attempt...
|
|
|
|
|
I explained how you can show data from excel file in your application. If you want to open ms excel then use Process class and specify the path of file you want to open.
|
|
|
|
|
i just want to open the Excel file.... as (double cick).............. just to see the file
My small attempt...
|
|
|
|
|
Have a look at Process class
|
|
|
|
|
|
you can also take a look here.
Your problem is perhaps not so simple as you assume....
Ariadne
|
|
|
|
|
It was very easy and i did that.................
Process.Start(d:/..../sample.xls);
will solve the probelm
My small attempt...
|
|
|
|
|
Can any one help me how to do the validation for the Dynamically added control in the page which need to be validate?
for example i need to validate the textbox is empty ot not if empty i need to alert the user fill it out.
With Regards
Ganesan.S
Software Engineer
|
|
|
|
|
Hi,
Yaar use RequiredFieldValidator.
But before it add attribute runat, server for the dynamically added control -here your textbox.
Naresh Patel
|
|
|
|
|
Hi,
Thanks yaar,
We used javascript to validate the dynamic control by getting it's Content ID which will create at runtime.
With Regards
Ganesan.S
Software Engineer
|
|
|
|
|
HELLO Friends,
My objective is to make a neive compiler as my semester project!
i have decided to make compiler which is capable of converting C-language to
C# (it will convert some basic codes not the complete language).
According to the requirments i have to present a documentation of my project in such a way that it includes complete lexical analysis(class and value part table) of my compiler.
I just need an idea which can lead me to the begining of the documentation.
If anybody can tell me as soon as possible i will be very thankful!
THANKING YOU!
Regards,
SANA.
$@N@
|
|
|
|
|
Gosh. It's urgent. That's highly original of you. We'd never have realised it was any more urgent than the thousands of other "urgent" messages without you telling us.
There's this wonderful tool called Google that may have slipped your attention. It might just help solver your problem. Clickety[^]
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
Language Processors[^] is an excellent book on the subject. You might want to read it.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
All messages in this thread have been voted down!
Why?
All the best,
Martin
|
|
|
|
|
Not anymore they haven't
Both answers were totally valid and I voted them both 5.
|
|
|
|
|
|
Hello,
J4amieC wrote: Both answers were totally valid
true
J4amieC wrote: and I voted them both 5.
Me too!
I was just wondering why somebody voted '1'!
All the best,
Martin
|
|
|
|
|
Martin# wrote: I was just wondering why somebody voted '1'!
Because most people are dicks!
|
|
|
|
|
Because we didn't do his coursework for him.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: Because we didn't do his coursework for him.
Maybe, but even the question got downvoted at the same time.
All the best,
Martin
|
|
|
|
|
The message was downvoted before Pete or I got to it.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
Ahhhhhhhhh, ok!
Now it's clear, and Pete hits the Bullseye!
All the best,
Martin
|
|
|
|
|
Hello everyone. I am having quite a problem with this. I am developing a project board that uses a Microchip PIC, and up until now I was using the general Microchip provided dll along with some snippets of code I bunched together. All I needed was a way to send 64bytes of data out and receive 64 bytes of raw data. That is it. That is still all I need.
If you want to jump ahead to the problem look for "===========PROBLEM===========" below... Otherwise this is the full story.
The problem is that Vista does not play nice with this dll. So I am forced to use WinUSB which is fairly new and very little documentation I can find. And to compound the situation, the little code I find, is all written for C++ or contained in header files.
I need to get this working in C#, and I need to do it soon. If anyone can help I would greatly appreciate it.
From my understanding I need to first crete the inf file, with the correct co-installers as well as a unique GUID. This I have already done and it is successfully recognized by Vista and XP.
Then in my program I need to search the registry for a particular GUID (the general USB hub for some reason), and then iterate through each one found until I find one that contains my vid/pid in its description using SetupDiGetClassDevs and SetupDiEnumDeviceInterfaces from the setupapi.dll. I believe I have this working as I can iterate through and find my device.
Then I need to Create a file of some sort to interface with. From my searching I found this is what I should use: Intptr TheWindowHandle = CreateFile(strPath, GENERIC_READ | GENERIC_WRITE, 0, IntPtr.Zero, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, IntPtr.Zero);
Then I must initialize this file by passing in the IntPtr I get with that, to WinUsb_Initialize which spits out some other IntPtr. I take that pointer and call WinUSB_WritePipe and WinUSBRead_Pipe.
I have no way of really knowing if I have this correct unless someone is to chime in and support this. My problem though is this:
===========PROBLEM===========
I do not know how to declare the [DllImport] of winusb.dll for WinUsb_WritePipe and WinUSB_ReadPipe nor what values they take or return.
I would gladly appreciate any and all help on this and specifically C# examples. If you are willing to write the small snippet of code needed, I can compensate you for it. If you need any more information about my source code or the winusb dll or the application, just let me know.
I thank everyone in advance for the help.
|
|
|
|
|
[DllImport("winusb.dll", SetLastError = true)]
internal static extern Boolean WinUsb_WritePipe(Int32 InterfaceHandle, Byte PipeID, ref Byte Buffer, UInt32 BufferLength, ref UInt32 LengthTransferred, IntPtr Overlapped);
[DllImport("winusb.dll", SetLastError = true)]
internal static extern Boolean WinUsb_ReadPipe(Int32 InterfaceHandle, Byte PipeID, ref Byte Buffer, UInt32 BufferLength, ref UInt32 LengthTransferred, IntPtr Overlapped);
|
|
|
|