|
-
Oct 18th, 2007, 04:14 AM
#1
Thread Starter
Fanatic Member
How to prevent new print report...
hi, here is my problem everytime press print button it always open new form how to prevent it..?
i want to refresh it instead..
here is my codes..
private sub formload
Dim newRep As New CrystalReportFillBy
OpenConnection()
GetRecords(UsePrintRSONO_rpt)
newRep .SetDataSource(ds)
newRep .Refresh()
CrystalReportViewer1.RefreshReport()
getRsoNoToBePrint()
cboPrintRsoNo.Text = ""
end sub
private sub buttonPrint
If cboPrintRsoNo.Text = "" Then
MessageBox.Show("Please Put RSONO Number to print The Data")
Exit Sub
End If
Dim fr As New PrintFinal
fr.UsePrintRSONO_rpt = Me.cboPrintRsoNo.Text
fr.Show()
end sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|