I have a form in C# where user inputs @Receivername, @StartDate and @ Enddate.
Now i have this stored procedure to run my reportviewer.
create proc GenerateInvoice
@StartDate date ,
@EndDate date ,
@ReceiverName varchar(30)
AS
SELECT Waybills.SenderName, Waybills.SenderAddress, Waybills.SenderContact, Waybills.ReceiverName, Waybills.ReceiverAddress,
Waybills.ReceiverContact, Waybills.UnitDescription, Waybills.UnitWeight, Waybills.DateReceived, Waybills.Payee,
Payments.Amount, Payments.PaymentDate, Cycle.CycleNumber, Cycle.StartDate, Cycle.EndDate
FROM Waybills CROSS JOIN
Payments CROSS JOIN
Cycle
WHERE Waybills.ReceiverName = @ReceiverName
AND (Waybills.DateReceived BETWEEN (@StartDate) AND (@EndDate))
GO
How to i link this sp to my reportviewer
My 3 textboxes is already linked to my parameter in my form like this:
this.WaybillsTableAdapter.Fill(this.DataSet1.Waybills, textBox1.Text, textBox3.Text, textBox4.Text)
What am i missing to link