When I am generating report using following code from reportviewer my reportviewer showing the following message.
'A data instance has not been supplied for the data source 'Dataset1_customers'.
Can any one solve the problem?
Public Class Form1
Dim con As New SqlConnection
Dim str As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim da As SqlDataAdapter
Dim ds As New DataSet
str = "Integrated Security=SSPI; User Id=sa;Initial Catalog=Northwind; Data Source = suman"
con.ConnectionString = str
str = "select * from customers"
da = New SqlDataAdapter(str, con)
ds.DataSetName = "customers"
RV.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local
RV.LocalReport.ReportPath = "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WindowsApplication4\WindowsApplication4\Report1.rdlc"
RV.LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource("customers", ds.Tables(0)))
RV.DocumentMapCollapsed = True
How is authentication and authorisation through forms achieved in VB.NET? Are the membership classes available like in ASP.NET? If not, are there other resources available to facilitate role management or is it a manual process to manage users of Windows applications?
The application I'm developing is fairly standard, it's a CRM application which requires different levels of users, i.e. administrators, general users, super users etc. In ASP.NET I would have used the membership classes to handle this, however, I'm not sure whether these are available in VB.NET (I am new to VB.NET winforms BTW).
Hi I need to kwon how to build a message board using vb.net 2005/2008. I know there a lot of free samples but i just want to know what happens behind so that i can expand my knowlegde on how this is accomplished. If there's any article or link where i can learn how to do this i'll appreciate. Thanks
I'd say the best way to learn how one works is to study the source code of a good one. The best .NET one I know of is YetAnotherForum[^]. It's C# instead of VB but the logic behind it shouldn't be difficult to follow.
As probably a simpler example and as an article, you might want to see this[^]. That's an article describing the discussion board used on CodeProject.
I have DataGridView that had 2 column from master table and some column from detail table
I have comboBox od the one of the column from master I need by changing the value of combo the value of second column chenge
table 1 product : code , title
table 2 Order : quantity , size ...
i want to fill the title by chenging the value of combo(code)
how can i do that
please help me.
I have no idea what you're talking about. I'd say if you're aware of it, you probably should consider learning it.
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
In many other projects I've seen textboxes, say, where the very long string has been truncated with three dots added to show that it has been trimed - (This is a very long ...). I assumed this was a feature of .NET. It doesn't seem to be, though. Has anyone got any suggestions as to the best way of doing this?
I am developing phone application. Which will have a dial pad and a display.
In the display the customer wants to have details of (call duration, number being called, status when call is connected and disconnected).
Number being called should be in the top left, Status button left, call duration button right.
I am just wondering what is the best method to go about this.
I was thinking of making a new control and inherit from the text box class. And this textbox will contain the 3 text boxes I need to display the different details. That way they can be aligned correctly in the display.
Any other suggestions or ideas would be most helpfull,