I Solve Myself:
my code is below
step:1
create a simple rdlc report add 2 textbox's and set the parameter in textbox1 and textbox2 the name of name1 and name2.
step:2
go to form 1 and add report viewer1,double click the form and paste the below code.
Imports Microsoft.Reporting.WinForms
Imports System.IO
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim param(1) As ReportParameter
param(0) = New ReportParameter("name1", "abc")' name1=parameter in relc report, "abc"= 'value of name1"
it's user defined"
param(1) = New ReportParameter("name2", "abc")'same as name1
Me.ReportViewer1.LocalReport.SetParameters(param)
Me.ReportViewer1.RefreshReport()
Me.ReportViewer1.LocalReport.DataSources.Clear()
Dim byteViewer As Byte() = ReportViewer1.LocalReport.Render("PDF")
Dim saveFileDialog1 As New SaveFileDialog()
saveFileDialog1.Filter = "*PDF files (*.pdf)|*.pdf"
saveFileDialog1.FilterIndex = 2
saveFileDialog1.RestoreDirectory = True
Dim newFile As New FileStream("C:\Users\SathishKumar\Desktop\New folder\myReport.pdf", FileMode.Create)
newFile.Write(byteViewer, 0, byteViewer.Length)
newFile.Close()
End Sub
<pre lang="vb">
End Class
step: 3
Enjoy Coding:)