|
You still haven't answered my question. What is the exact exception message??
The old Err.Number says that it's an "Invalid procedure call or argument". Since the old meanings are so vague, I can only guess that the column your trying to assign a value to is not a number type or you're trying to assign a floating point value to an integer type column.
|
|
|
|
|
Sorry, I am still a bit rusty with the .Net stuff. I done the following which returned the following. Hope this is what you require.
? ex
{System.Data.DataException}
[System.Data.DataException]: {System.Data.DataException}
HelpLink: Nothing
InnerException: Nothing
Message: "Cannot set Rate."
Source: "System.Data"
StackTrace: " at System.Data.DataRowView.SetColumnValue(DataColumn column, Object value)
at System.Data.DataColumnPropertyDescriptor.SetValue(Object component, Object value)
at System.Windows.Forms.DataGridColumnStyle.SetColumnValueAtRow(CurrencyManager source, Int32 rowNum, Object value)
at System.Windows.Forms.DataGrid.set_Item(Int32 rowIndex, Int32 columnIndex, Object value)
at Valuation.frmPropertyDetails.cmdApply_Click(Object sender, EventArgs e) in C:\Code\NET\project\frmArea.vb:line 4602"
TargetSite: {System.Reflection.RuntimeMethodInfo}
|
|
|
|
|
Sorry, I am still a bit rusty with the .Net stuff. I done the following which returned the following. Hope this is what you require.
? ex
{System.Data.DataException}
[System.Data.DataException]: {System.Data.DataException}
HelpLink: Nothing
InnerException: Nothing
Message: "Cannot set Rate."
Source: "System.Data"
StackTrace: " at System.Data.DataRowView.SetColumnValue(DataColumn column, Object value)
at System.Data.DataColumnPropertyDescriptor.SetValue(Object component, Object value)
at System.Windows.Forms.DataGridColumnStyle.SetColumnValueAtRow(CurrencyManager source, Int32 rowNum, Object value)
at System.Windows.Forms.DataGrid.set_Item(Int32 rowIndex, Int32 columnIndex, Object value)
at Valuation.frmArea.cmdApply_Click(Object sender, EventArgs e) in C:\Code\NET\project\frmArea.vb:line 4602"
TargetSite: {System.Reflection.RuntimeMethodInfo}
|
|
|
|
|
It looks like the Rate column in your dataset is ReadOnly, or the value you passed isn't of the proper type and cannot be converted to the type expected by the Rate column.
|
|
|
|
|
How to create folder ?
How to test exist folder or file(duplicate) ?
VB.Net
|
|
|
|
|
Use System.IO namespace which contains the function to create folder and files in VB.NET
The System.IO.File.FileExist function used to check for an existing file it will return the boolean value.
With Regards
Yogesh Agarwal
|
|
|
|
|
But i would like to know the function which can create folder.
Thank you for your help.
Best Regards,
VB.Net
|
|
|
|
|
try this
System.IO.Directory.CreateDirectory("c:\read the help files")
|
|
|
|
|
hello.. i want to know how to make fingerprint software using vb.net
actually i will focus on fingerprint enhancement and ridge reconstruction only
can anyone help me or maybe just let me know where to find the source
thanks,
faz
|
|
|
|
|
Start at a eLancing website.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
This:
ayie wrote: just let me know where to find the source
is a direct contradiction to this:
ayie wrote: i want to know how to make fingerprint software using vb.net
Noone is just going to hand over that kind of project to you. Since that kind of technology is usually very proprietary and expensive. You're going to have to Google this one yourself. I'd searching for "fingerprint enhancement", or maybe "fingerprint ridge reconstruction algorithms".
I hope you're brushed up on your math skills.
|
|
|
|
|
How can I check whether a specific area (rectangle) on a panel
is blank or not?
I have a panel on which a graph is drawn.
I also want to print text on this graph.
However I do not want my text to interfere with my plot.
Therefore I need to check in advance if the area, where
I want to print my text, is blank or not. If not, I can
move my text so that there is no interference.
scubapro32
|
|
|
|
|
I do not know if there is any short cut but there is a long way but it works..
U will be knowing the back color of ur plot...
Traverse thought the plot and compare the color of all the point with ur plots back color
Plz do let me know if u find some thing which is a better method
Good luck...
|
|
|
|
|
Thanks for your reply...
The 'blank' backcolor of my panel is white.
The plot is black.
But how do I traverse through the plot?
Getpixel does not work with panels!
|
|
|
|
|
A faster method would be to do the math that calculates the largest area available, based on the line graph itself. Going pixel-by-pixel won't do you much good and is a very expensive operation.
Things to consider are what is the total available area in the graph? What is the biggest possible size you want the textarea to be?? Where does the graph intersect that area?
Once the graph passes to the right of the area you want the text in, you can stop looking at resizing the text area.
Basically, you'e calculating the intersection between two lines. Does the line you're drawing for a point on the graph intersect the line that is the bottom of the text area?? If so, then you either have to move the textarea or resize it to fit in the space between where your textarea starts and the intersection of those two lines.
Google for "calculate intersection of two lines" for the math to help you do this.
|
|
|
|
|
Thanks Dave,
but I think mathematics won't do the trick here.
First of all it's not a line graph, but more
a 'random' plot of peaks as seen in an 'chromatogram'.
Therefore a function of the line, and the chromatogram
(sums of near Gaussic functions) is not available.
|
|
|
|
|
Scubapro wrote: but I think mathematics won't do the trick here.
BS. Your drawing code still has to draw something from point A to point B. Whatever that something is, even if it's just a single point, you can still test for an intersection between either a line and a point (which side of the line the point is on), or if the point falls inside the area of the textarea.
|
|
|
|
|
The problem is I have over 6000 points and lines that are drawn first.
Then each textrectangle (100+) has to be printed at the right place.
|
|
|
|
|
I am already finish do my report, but I don't know how to connect my application VB.net to Crystal Report 10, may be anyone can help me please?
|
|
|
|
|
Hi,
You may try the below mentioned code snippet to connect your VB.Net application to Crystal Report using ADO.Net.
-------------------------------------------------------------------------
BEGIN CODE
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim rpt As New CrystalReport1() 'The report you created.
Dim myConnection As SqlConnection
Dim MyCommand As New SqlCommand()
Dim myDA As New SqlDataAdapter()
Dim myDS As New Dataset1() 'The DataSet you created.
Try
myConnection = New SqlConnection("Data Source=localhost;Integrated Security=SSPI;" & _
"Initial Catalog=northwind;")
MyCommand.Connection = myConnection
MyCommand.CommandText = "SELECT * FROM Customers"
MyCommand.CommandType = CommandType.Text
myDA.SelectCommand = MyCommand
myDA.Fill(myDS, "Customers")
rpt.SetDataSource(myDS)
CrystalReportViewer1.ReportSource = rpt
Catch Excep As Exception
MessageBox.Show(Excep.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub
END CODE
-------------------------------------------------------------------------
I hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
I have a code to print text which prints perfectly when i print through regular printer but when i use the same code to print through a point of sale printer it doesnot print at all.It seems like it has been in the continuous loop.
I am using e.Graphics.DrawString(.......) to print.
Does anybody has some idea in this topic? Can we use e.graphics.drawstring method to print through the point of sale application by changing some settings or something...???
|
|
|
|
|
It has nothing to do with the application itself, rather it would depend entirely on the printer you're using, how it's connected to the machine, are there drivers installed for it, and how you want to print.
Somehow, of all the POS printers I've seen used, very seldom would you go through the Windows printing system to print a page on one of these things. Normally, I've just seen direct printing to either a COM port or LPT port the printer is connected to. You can even printer to a USB based printer if it's drivers expose it on a COM port to applications.
|
|
|
|
|
Hi,
I am stuck on VB.NET 2005, in VB6 i was able to load objects at run-time.
Problem is I am asking user how many textboxes they want and then system will create an array of those textboxes.
Here's the code I was using in VB6. I already had one textbox on form and the index was set to 0.(can't even do that vb.net)
For i = 1 to iSelectedNum
Load TextBox(i)
TextBox(i).Visible = True
TextBox(i).Top = TextBox(i - 1).Top + TextBox(i - 1).Height
TextBox(i).Left = TextBox(i - 1).Left
TextBox(i).Text = ""
Next i
I tried Code Upgrade function from VS 2005 but did not worK!!! Anyone please HELP!!
|
|
|
|
|
Control arrays don't exist under VB.NET.
However, you can create your own quite easily.
Dim myTextBoxes As New List(Of TextBox)
For i = 1 to iSelectedNum
Dim newTextBox As New TextBox()
With newTextBox
.Top = calculated Top value
.Left = calculated Left value
.Text = "whatever text you want"
End With
myTextBoxes.Add(newTextBox)
Me.Controls.Add(newTextBox)
Next
|
|
|
|
|
Thanks a lot Dave. But there's one more question now!? How can i access them (textboxes)?
|
|
|
|