1Custom Function:
2Dim InvNo as integer =0
3Function GetInvNo(InvoiceNo as integer)
4If(InvNo=0)
5 InvNo = InvoiceNo
6Else
7 InvNo = InvNo + 1
8End If
9return InvNo
10End Function
11
12Calling Reports
13ASPX.CS
14btn_Click()
15{
16....
17Url.Append("<Script language='javascript'>");
18
19Url.Append("OpenReport('" + reportserverurl + "')");
20
21Url.Append("</Script>");
22
23ClientScript.RegisterStartupScript(typeof(Page), "Url", Url.ToString());
24
25}
26
27
28Javascript ASPX
29function OpenReport(Path)
30
31{
32
33RptObj=window.open(Path,"Report", "width=750,height=600,left=25,resizable=yes,top=25,screenX=" +window.screenLeft+",screenY=" +window.screenTop+",scrollbars=yes");
34
35RptObj.focus();
36
37}
38