|
|
hi all...
ParameterField paramField = new ParameterField();
ParameterFields paramFields = new ParameterFields();
ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();
paramField.ParameterFieldName = "yazi";
paramDiscreteValue.Value = dt.Columns["Yazi"]; ***
paramField.CurrentValues.Add(paramDiscreteValue);
paramFields.Add(paramField);
r.rv.ParameterFieldInfo = paramFields;
r.rv.ReportSource = postaCeki; //this is the report object..
this code doesn't work. it blows on the *** row. i need to load crystal report parameter from datatable or datagrid but i can't how can i do that?? many thanks...
|
|
|
|
|
Hi
PLs tell me how can i use TAPI with C#
In my application I have winform which contains Four Text box and one button
First button-- Tel no of server
Second button-- Server name
Third button --- UID of server
Foruth button-- PWD of Server
When i press the button it should connect with the database server through modem . I want to implement this using C#
Pls every one should share his thoughts for implementing this product,
I need to implemen urgently
waiting for the response with code in c#
regards
sanjeev
|
|
|
|
|
well, there are two basic parts of this product,
first is to connect 2 pcs using tapi via tlephone line,
2nd is to make a messaging protocol which will connect ur aplication to the dtabase server on remote system. there should also a service running on remote system(server) which will recieve messages.
i can help u in 1st part that how can u connect to remote system using TAPI in c#. in few days i'll upload an article on codeproject regarding this. in meanwhile u can mail me n i can help u in this regard
so cheers
|
|
|
|
|
Hi,
I have already implemented Remoting connection of SQL Server Using C#
There are basically three textbox on WinForms and one Button First one is Address and Second one is UID and PWD of Server.
When the user press the submit button it connects with server and fetches all the Databases into Tree View
all the computers are connected on LAN.
I urgently need to Implement same thing Using TAPI in C#.
More one Field needs to Entered for Telephone no and it will detect modem of Computer Automatically after pressing submit button Please help me with the code (Connection with TAPI for dialup using modem in C#)
I have to start this application I am stuck now
Which sdk i should download
my email id is sanju10001000@yahoo.com
sanju10001000 and yahoo and com
Waitingh for your response
regards
sanjeev
|
|
|
|
|
Hi,
I need to Convert XML file into CSV file format
Pls forwad me the code for that in C# or vb,net
Regards,
sanjeev
|
|
|
|
|
I don't know about others, but I can only guide you to the right direction. I don't think that asking for the complete source code is a good idea.
I would:
1. Load the XML file into a table in a dataSet
2. Construct a new file on the disk giving it the extension .CSV
3. Loop through that table and copy each of its records into a new line of a text file by comma separating each column's content.
4. Save the file (close File streams)
5. Destroy dataSet
6. That's it
Hope this helps
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
Hi
I need to convert Xml data to Excel file.
Format of Xml is as given below
a.xml
---------
<newdataset>
<emp>
<eno>1
<ename>rajiv
<sal>10000
<emp>
<eno>2
<ename>manoj
<sal>2000
<emp>
<eno>3
<ename>sankar
<sal>4000
<emp>
<eno>4
<ename>Raj
<sal>6000
Waiting for the response with Code
Regards
sanjeev
|
|
|
|
|
Since Ms Excel can automatically load CSV files why don't you convert your XML file into a CSV one instead? (Now that I think about it, doesn't it load XML files automatically as well?)
Anyways, if you do decide to convert your XML file into a CSV one, take a look at these steps as they were suggested on the previous post:
1. Load the XML file into a table in a dataSet
2. Construct a new file on the disk giving it the extension .CSV
3. Loop through that table and copy each of its records into a new line of a text file by comma separating each column's content.
4. Save the file (close File streams)
5. Destroy dataSet
6. That's it
Hope this helps
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
can anyone help me out how to save word document using applicationObject
i need to save the current document to local location?( i am using addin for this within addin it shuld work)
|
|
|
|
|
Take a look here[^].
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
I got a problem with a C# app trying to access files/folders on a LAN
When I try a Directory.Exists(foldername) it always returns false.
Directory.GetCreationTime(folder.Name) gives me a System.IO.IOException: Could not find a part of the path.
I can access all files on the network perfectly but just not with my C# app.
Any ideas on how to fix this?
|
|
|
|
|
Can you be a bit more specific on the way use for trying to access network files through C#? E.g. a sample portion of your code?
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
After some debugging etc. It seems that its a custom windows service thats trying to access those files (Service is setuped to use my user account details instead of local account).
Basically when I tried Directory.GetCreationTime(path) (C# App which is called by the services at certain timeperiod), it results in that error. I have an other C# app (with no ties to the services) and it works fine.
Any idea how to fix this?
|
|
|
|
|
Is your service running under the Local System account? THe Local System account doesn't have any rights to network resources. You have to go into the Services manager and chagne the account it's running under to one that has rights to the network files your trying to get at.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yes , I have done that. It stills gives the same error. The user acount which the services uses has no problem accessing any network resources unless I use that C# program with the same services.
|
|
|
|
|
If the application works as a normal application, the account you THINK your using isn't the one your actually using for the service. Did you include the Domain in the username portion? Like MYDOMAIN\useraccount ...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yes I did that aswell, it even wouldnt allow me to register using only my username (so I did made that mistake). The code which is trying to access the files is a dll, if I am right its loaded into the memory space of the service so it isnt the app trying to access it.
|
|
|
|
|
Hey!
I am displaying everything that comes in on the serialPort in a RichTextBox.
I have made a stress test program that sends as much as it can to my program through the serialPort.
The Performance startas out as normal, but after a while I notice that it goes from 10% up to 100% of CPU usage in about 2 min (depending on the threshold of the RecivedDataEvent(in this case 32 bits))?
On the RichTextBox i am using a scrool to bottom code like this:
<br />
rtIncomeLogg.AppendText(inData);<br />
<br />
if (AUTOSCROLL)<br />
{<br />
rtIncomeLogg.HideSelection = false;<br />
rtIncomeLogg.Select(rtIncomeLogg.TextLength, 0);<br />
}<br />
I have tryed do unhook the rtIncomeLogg.AppendText(inData); so no data is appended to the textbox, and by doing this it lays on 10%-15% CPU usage.
I thougt that maby the textbox is becoming full and have problem appending text at the bottom, so a tryed to remove data so the lenth not exided 5000, but i dident got this to work(used the richTextBox.text.remove(0,nrOver5000).
I realy need to display data little by little.
Do you got any ide how to fasten this up? Maby clipboard is an ide? Maby regular textbox is betther then richtextbox?
Best Regards
Jimmy
|
|
|
|
|
The RichTextBox definitely isn't the best choice for this kind of output!
You could use a plain TextBox or, what I'd consider the best solution, a ListBox , where you can add entries, make the last entry visible and remove entries from the beginning of the list without too much trouble.
That way you can keep your logging entries to 100, 500, or whatever suits your needs.
mav
|
|
|
|
|
Thanks!
I will test the plain TextBox. The ListBox would be some problems for me, the input on the serial port is not readed by row but read exisiting, this means that the rows will be strange.
Best Regards
SnowJim
|
|
|
|
|
I bet your RecivedDataEvent comes in through a non UI thread. You must not call AppendText or for that matter any method/property at all on the textbox from within that thread.
You need to call BeginInvoke or Invoke to marshal the call to the UI thread. Have a look at http://www.codeproject.com/useritems/begininvoke.asp[^]. It explains why you need to do that and also tells you how to use BeginInvoke .
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Yes i am using Invoke, i know that only the creating thread would be operating on the object/control.
I have no tested the plain textbox and its MUCH faster it semes like, but it also uses alot more CPU.
now its starts on 50% and it increase a little.
I will run more testst.
The problem with plain textbox simes to be that it is not using the \r\n propperly? insted it becomes a square??
Is there any setting for this? in richtextbox this works fine!
Best Regards
SnowJim
|
|
|
|
|
|