Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi my friends.

i have program in vb.net and i use stimulsoft for reporting.

when i click report button for first time , it work but in secend time , report doesnt show nothing.
what is the problem.
this is my code.

VB
Dim pc As New PersianCalendar
Dim ShamsiDate As String
ShamsiDate = pc.GetYear(DateTime.Now).ToString + "/" + pc.GetMonth(DateTime.Now).ToString() + "/" + pc.GetDayOfMonth(DateTime.Now).ToString()
Dim ShamsiTime As String = pc.GetHour(DateTime.Now).ToString + " : " + pc.GetMinute(DateTime.Now).ToString
Report1.Dictionary.Variables.Add((New StiVariable("Date", "Time", CType(GetType(String), Type), ShamsiTime, False)))
Report1.Dictionary.Variables.Add((New StiVariable("Date", "ShamsiDate", CType(GetType(String), Type), ShamsiDate, False)))

Dim da3 As New SqlDataAdapter
Dim dtuser As New DataTable
da3 = New SqlDataAdapter("select * from Tbl_NewUser order by family", con)
da3.Fill(dtuser)

Dim ds As New DataSet
ds.Merge(dtuser)
ds.Tables(0).TableName = "dtuser"
Report1.RegData(ds)
Report1.Show()
Report1.Load("Report1.mrt")
Posted
Updated 3-Apr-15 22:03pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900