|
|
I m working on a c# and sql server based application...
I m fetching data from csv file and saving it's record One by one in to the database.
there is a column colled Description in my csv file as well as Sql server table.
In Sql i have given the data type "text" for the description column...
And it's working fine on my local machine but on server description gets truncated...
I have checked the csv file There is no comma in description
Everything is same StoredProcedure...DLLs...
I m not getting this...
If any one has any idea abt this pls help me out...
thanx & regards
Anuj Kamthan
Software Developer
Solversa Technologies,
Pune - 411007, India.
http://www.solversa.com
|
|
|
|
|
Try to change column type of Description from text to varchar(255)//varchar (increase by yourself)
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
Nop Body,
I have tried this also...
Same result working fine on local machine but not on server.
Anuj Kamthan
Software Developer
Solversa Technologies,
Pune - 411007, India.
http://www.solversa.com
|
|
|
|
|
How did you come to the conclusion that the data gets truncated? Did you check the data in the database, and if so, what program did you use?
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I have problam with convert.tostring(),
this function take alot of CPU power.
there is anather function or way to do this
action?
thank you
and have a nice Day!!:
|
|
|
|
|
if you try to convert byte to string try this:
Convert.ToString(your bytes)
or can you explain more your problem????
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
this is what I doing
---
byte Number;
convert.tostring(number);
Number++;
---
in thread
and the CPU Process is over working
|
|
|
|
|
if variable Number increase by one try to sign in for loop, example
string s="";
for(byte Number=0;Number<=15;Number++)
{
s=Convert.Tostring(Number);
}
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
|
Hi
Try this
<br />
byte Number;<br />
<br />
Number.ToString();<br />
<br />
Number++;<br />
Ahmad Shaban
|
|
|
|
|
i try this way
and the problam not fix
but thank you anyway.
|
|
|
|
|
Hi
maybe you should check your loop
Ahmad Shaban
|
|
|
|
|
I recommand you to not use muc variables because your project grows and becomes big procces in CPU.
Check ur code and insetad variables use dirctly code.
Use as little bit number of vraiables as is possiblity.
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
You have to look for the code that causes the cpu load somewhere else in your program. Converting a byte to a string is a very simple task that will take mere microseconds to perform.
---
b { font-weight: normal; }
|
|
|
|
|
How can I convert binary data to image then converted binary data i want to save as jpeg or another format
regards...
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
Hi
Load the data into a MemoryStream , then use Image.FromStream . Then use Image.Save .
BTW, you must keep the MemoryStream open until you have finished with the Image .
----------------------------
Be excellent to each other
EasiReports[^] My free reporting component for WinForms.
|
|
|
|
|
Thanks and it works perfectly...
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
hello, im building a web browser in visual c# (vs2005) and while it works fine i cant do it to open new windows in my application, it opens them using external ie windows, any idea how i can force it to pen them in new windows of my application instead of ie windows?
D.M
|
|
|
|
|
Go into the articles section and look for articles in the C# COM Interop section. There are two articles that talk about interaction betweeen IE and a Windows Form application including my article. You probably want to have the IE code fire an event back into the WinForm code which would then cause the WinForm code to open a new window of itself.
|
|
|
|
|
I want to use a font from any where except Windows installed fonts.
I don't want to draw the text, I want to use the font as it is, so is there any way out?!!
alaa
|
|
|
|
|
Hi there,
i have a usercontrol with an image/canvas. When i add it to a form it goes bezerk. The form flashes some 10 times and in the top of the InitializeComponent it adds stuff like Size and some other parameters like RectangleF.
'Normal' behaviour would be that it would add it like:
this.myControl1 = new Demo.MyControl();
but it also adds
MyDotNet.MyMath myMath1 = new MyDotNet.MyMath();
and later on in the InitializeComponent:
this.myControl1.Cursor = System.Windows.Forms.Cursors.Cross;<br />
this.myControl1.Dock = System.Windows.Forms.DockStyle.Fill;<br />
myMath1.Value1 = true;
myMath1.Value2 = 100;
this.myControl1.Math = myMath1;
The myMath1 above is added by the designer [C# Visual Express] and i cannot see why this happens.
In my control i have the following events:
* Load
* Resize
* SizeChanged
Basically when the usercontrol size is changed i set the size of the image to be the same as the usercontrol.
Anyone knows what could be going on here?
Thanks,
Jan
|
|
|
|
|
anyone,...?
i cannot tackle it, debugging skips it
|
|
|
|
|
hi there. I have a problem.
I want to select a row from the datagrid en put that in tekstboxes in a new form.
this is what i've got so far:
<br />
public delegate void CustomRowHandler(object sender, CustomRowEventArgs e);<br />
<br />
<br />
public static event CustomRowHandler CustomRow;<br />
----------------------------------------------------------<br />
<br />
public void dataGrid_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)<br />
{<br />
<br />
int rowIndex = dataGrid.CurrentRowIndex;<br />
if (CustomRow != null)<br />
{<br />
<br />
<br />
CustomRow(this, new CustomRowEventArgs(barry11,dataGrid, rowIndex));<br />
<br />
----------------------------------------------------------------<br />
<br />
public class CustomRowEventArgs : EventArgs<br />
{<br />
<br />
Barry1 barry11;<br />
DataGrid grid;<br />
int row;<br />
<br />
public CustomRowEventArgs(Barry1 DSet,DataGrid Grid,int Row)<br />
{<br />
<br />
barry11 = DSet;<br />
grid = Grid;<br />
row = Row;<br />
<br />
}<br />
public Barry1 DSet<br />
{<br />
get { return barry11; }<br />
}<br />
public DataGrid Grid<br />
{<br />
get { return grid; }<br />
}<br />
public int Row<br />
{<br />
get { return row; }<br />
}<br />
<br />
----------------------------------------------------
and on my second form..
-----------------------------------------------------
<br />
private void customHandler_CustomRow(object sender, WindowsApplication30.CustomRowEventArgs e)<br />
{<br />
<br />
<br />
Barry1 DSet = e.DSet;<br />
DataGrid grid = e.Grid;<br />
int row = e.Row;<br />
<br />
editLASTNAME.Text = e.DSet.Tables[0].Rows[e.Row]["Firstname"].ToString();<br />
<br />
}<br />
<br />
<br />
InitializeComponent();<br />
Form1.CustomRow += new<br />
WindowsApplication30.CustomRowHandler(customHandler_CustomRow);<br />
<br />
<br />
public DataForm1(Barry1 barry11, DataGrid dataGrid, int rowIndex)<br />
<br />
so.. if i put this peace of code from the second form in to my first form..
it words...
if i put this peace of code in to my first form..
public void dataGrid_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
int rowIndex = dataGrid.CurrentRowIndex;
if (CustomRow != null)
{
CustomRow(this, new CustomRowEventArgs(barry11,dataGrid, rowIndex));
DataForm1 frm = new DataForm1 (barry11,dataGrid, dataGrid.CurrentRowIndex);
frm.Show();
he opens the second form (DataForm1).
he fills the textfield that was on the first form..
but he doesn's fill the textfield on the second form...
can someone please help me
|
|
|
|
|
Dear sir
For an important company in Abu Dhabi I am sending this mail. We are developing an important software.We are using C# as teh programming language. We want video to be displayed .So we are using DirectShow and VMR9. We want facility of recording, playback etc.
Qusetions
1.Can we use C# for that or we must C++ to get the advanced facility of DirectShow. 2.If we are using DirectShow+c#+VMR9 can we get managed code.
3.Good video progarms can be got either by C++,or C# if we use DirectShow.
Expecting your support in the earliest
Litty Thomas
|
|
|
|