Dim report As New BizportReports.PreBill(rcb_BillNo.SelectedValue)
report.ReportParameters(0).Value = "New Text"
Me.ReportViewer1.Report = report
Report Code - two constructors
Public
Sub New()
InitializeComponent()
Try
Me.DataSetTableAdapter1.Fill(Me.DataSet1.vTable)
Catch ex As System.Exception
System.Diagnostics.Debug.WriteLine(ex.Message)
End Try
End Sub
Public Sub New(ByVal p_BillID As Int16)
InitializeComponent()
Try
Me.DataSetTableAdapter1.FillWithParameters(Me.DataSet1.vTable, p_BillID)
Catch ex As System.Exception
System.Diagnostics.Debug.WriteLine(ex.Message)
End Try
End Sub
Lastly report parameter is accessed through;
Me
.Report.ReportParameters(0).Value
I tried removing the second constructor to make the BillID a Report Parameter as well, however the same issue occurred and the BillID was always reset.
Any ideas?
Cheers,
Karin
protected void Page_Load(object sender, EventArgs e)
{
ReportViewer1.Report = new LibUserReport();
}
protected void Button1_Click1(object sender, EventArgs e)
{
Label1.Text = "Datasource is null";
}
this is my ascx file
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table width="500">
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text="Designation"></asp:Label>
<asp:TextBox ID="tbDesignation" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Preview" OnClick="Button1_Click1" />
</td>
</tr>
<tr>
<td>
<telerik:ReportViewer ID="ReportViewer1" runat="server" />
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
Pag-Ibig Loan Remittance from “Start Date” to “End Date” |
Start Date: 01/01/2006 End Date: 01/31/2006
Pag-Ibig Loan Remittance form 01/01/2006 to 01-31/2006
because as of now i try it and the output have time and it should be date only..
if are there any new function in telerik reporting?
such as getting the first,secong,third and fourth value in a data like a Parameter which is datatype is an integer?
sample: my parameter is : Pay Year (datatype is integer)
and input a 2006 in the parameter
the output should be shown on a 4 datafield and every filed there should be one value
like
2 |
0 |
0 |
6 |