|
Dear
I have explained my problem as best as i can.
I was meant to say that i was able to explain better if there was a support of pasting image
Rajesh : did you start reading my post from bottom
|
|
|
|
|
WinSolution wrote: I have explained my problem as best as i can.
Unfortunately not well enough for us to understand exactly what it is you are trying to do. I'm wondering whether you're trying to run Excel in your app, or convert information from Excel to C# code, which you want to compile and run. Or perhaps something else...
WinSolution wrote: I was meant to say that i was able to explain better if there was a support of pasting image
There are several free image hosting sites where you can upload your images and provide links to them.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
I am working in an organization in which i update the record to a central tracker. Mostly data provided to me is in Excel.
I pick the data from excel paste it into first TextBox. Data cosist of Two Columns as mentioned below
________________________
Site ID | DN Received |
------------------------
MDWH2813 | 10-May-08 |
MDWH2814 | 10-May-08 |
MDWH2739 | 10-May-08 |
------------------------
i will copy data excluding the header area from the upper section and paste it into 1st textbox that looks like as follow
MDWH2813 10-May-08
MDWH2814 10-May-08
MDWH2739 10-May-08
Then i click on a button and i generates a C# code as under and set as text on 2nd TextBox
updateCentralTracker("MDWH2813","10-May-08");
updateCentralTracker("MDWH2814","10-May-08");
updateCentralTracker("MDWH2739","10-May-08");
currently i copy the generated code from 2nd TextBox. copy it to my solution and rebuild & execute and then i click on the second button that executes the code and data is updated to the Central Tracker.
but i want when i generate the code on first run then i click on the second button and it should run that code at run time
i hope its now understandable
let me know if any query
|
|
|
|
|
Instead of trying to recompile on the fly, why don't you just parse the data you are already pasting into the box and issue your command to upload...all in one step?
Maybe I am missing the point but it looks like you are trying to make a simple solution as difficult as possible.
|
|
|
|
|
|
Do you want to automatically compile and run the text you outputted to your second textbox?
That's entirely possible, but before I look up an article about runtime compilation for you I'd like to know whether this was really what you had in mind..
|
|
|
|
|
Yes you are right
i dont want to compile but only execute.
but pasting it at desired place where currently i paste it manually
ignore the last line if you are not able to understand its about sequence/placement of auto. generated code.
|
|
|
|
|
|
WinSolution wrote: Then i click on a button and i generates a C# code as under and set as text on 2nd TextBox
updateCentralTracker("MDWH2813","10-May-08");
updateCentralTracker("MDWH2814","10-May-08");
updateCentralTracker("MDWH2739","10-May-08");
currently i copy the generated code from 2nd TextBox. copy it to my solution and rebuild & execute and then i click on the second button that executes the code and data is updated to the Central Tracker.
but i want when i generate the code on first run then i click on the second button and it should run that code at run time
Is it not possible to use the information from the text box directly? Something like "updateCentralTracker(string1, string2);"?
Is there some reason you have to create explicit string constants for the parameters?
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Thanks for your valuable contribution. both (Searril & molesworth )
Yes that is possible but as this data is going to be update in central tracker and is copy pasted from excel file and there are chances that it can break my algorithm in some conditions when data is not provided to me in expected format. so i want to confirm it once time by watching it.
another point ; i am generating code to avoid loop in case i don't generate code i have to go through each line and apply my algo on it and then to send update to tracker and i cannot also verify it visually.
so it will be best solution to the problem if i can rum my code at runtime in my opinion else there are 101 way to do it.
|
|
|
|
|
hi
I am using one C++ dll in my C# compact frame work application
C#
private void button1_Click(object sender, EventArgs e)
{
try
{
Message("vijay");
//OpenDatabase(hDB, guid);
}
catch (DllNotFoundException de)
{
MessageBox.Show(de.Message, "Dll not found");
}
catch (EntryPointNotFoundException ent)
{
MessageBox.Show(ent.Message, "Entry point ex");
}
catch (MissingMethodException me)
{
MessageBox.Show(me.Message, CallingConvention.Winapi.ToString());
}
}
____________________
C++ dll:
#include "windbase.h"
#include <string.h>
CEOID CeOid = 0;
CEGUID guid;
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
return TRUE;
}
extern "C" __declspec(dllexport) void __stdcall Message(TCHAR* p_szMessage)
{
MessageBox(NULL, p_szMessage, _T("Message from DLL"), MB_OK);
}
_________
This is my code but it is showing that message missing exception.
Can Any one help me in figuring out the error area.
Thanks in Advance
|
|
|
|
|
Hi all,
I want to run .ppsm file in slideshow window using c# in web based application without opening presentaion in powerpoint. I was given anchor link like following -
<a href="CD-12 Open Value Module EMEA and Latam BlackWhite.ppsm"> Open/Save </a>
When I open html page in IE8 & click on "Open/Save" link it launch a open/Save dailog box and when click on Open button it open the .ppsm file in powerpoint application but not run the file in slideshow window.
So please help me How to run the .ppsm file using C# in web based application.
Please give me an example if these are possible in any way.
Thanks in Advance
Regards,
Anil Dwivedi
|
|
|
|
|
Don't cross post please.
The web development (you posted there as well) or the asp.net forum is a better forum for this question.
|
|
|
|
|
Sorry for cross post. I didn't know which one is more appropriate.
Sorry once again
|
|
|
|
|
Hi Guys. I am working on a HTML editor. How do I retrieve the code from the selected element.
e.g. The user selects some text on the HTML editor, how do I retrieve the code
p> the selected text /p>
Thank you
modified on Thursday, May 28, 2009 6:32 AM
|
|
|
|
|
... maybe "whateverYourEditControlIsCalled.SelectedText" ?
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
A webbrowser does not support SelectedText
|
|
|
|
|
In your original post you said :-
jammmie999 wrote: The user selects some text on the HTML editor
From which I guessed meant he was selecting some text area in the editor you're writing.
However, if you're looking for a way to copy text from a browser window, including the HTML formatting tags that go with it, then I'm not too sure about that, as it's not an area I've looked at.
I think (but may be wrong) that using drag and drop you might be able to specify that you want to keep HTML formatting. Possibly paste operations can do something similar.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Hi Expert
i have a project of .Net last Month i give it to my Client after one month i want to stop Project To run at client Side but i am not any change in the .exe i.e i am not replace or re-installed the Software then how i can stop software at client end.
but the one thing is that my database is Common it is also not change in this period
|
|
|
|
|
If I am reading your question right:
1) A montha ago, you gave your client an EXE program you had written.
2) Now, you want to stop it working.
3) You cannot change the EXE file at the client site.
4) You have a database which both of you share.
If so, then you cannot stop the software running, unless you coded it to do that before you gave it to your client. You could remove the database, or remove the clients' access to the database, but I do not know what effects that would have on you, your client, or other persons.
I take it the client does not wish to pay the bill?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Not sure what you mean.
This is what I understood from it:
You deployed a program to a client's pc.
Now a month has passed and you want to stop the program from working.
You don't want / can't install a new version of the program.
The program uses a database that is common for all your clients.
If the above is correct then I don't think you can stop the program from working.
You could deny the clients IP from accessing your db (depending on your setup), that would render the program useless I guess.
If the above is incorrect then please explain more clearly.
|
|
|
|
|
Sometimes the dross questions are really awful that you just feel like chewing off a finger or two!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: chewing off a finger or two
Don't do that (to much) or you'll be unable to answer the non-dross questions
But have to agree the level of the questions has gone down dramatically. I was just in a good mood so figured I'd give him the benefit of the doubt sort of speak.
Good mood is over now unfortunately, a elusive bug will do that
|
|
|
|
|
Disabling his access to the database server would be a first step to stop him from storing / reading information, that is if he doesn't have access to the database configuration string.
Even if he does he'd need the database structure to recreate the database on another server so that's a good step. Hold out on the database information until he fronts his bill.
|
|
|
|
|
Set up an access control list on your router to deny the customer's IP address.
|
|
|
|