Turn Stuff Off
Posted: Sun Oct 05, 2008 9:54 pm
I've been playing with this demo version for a while now.. taking things slow. Any ways, I can't figure out how to turn off the the save, open, new page, and edit page buttons on the preview window, as well as, certain export features. I really just want a bare bones print preview and maybe export to pdf, jpg & tiff. I'm hopeful there's an easy way to do this using VB. Here's my current code. When I click on the print button in my Winforms app, a very simple report is generated.
Private Sub PrintToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintToolStripButton.Click
Me.Cursor = Cursors.WaitCursor
Dim report As New Stimulsoft.Report.StiReport
Dim drv As DataRowView = DirectCast(Me.MyBindingSource.Current, DataRowView)
Dim clientName As String = drv("ClientName")
Dim drv2 As DataRowView = DirectCast(Me.BindingSource2.Current, DataRowView)
Dim _locationName As String = drv2("LocationName")
report.Load("MyReport.mrt")
report.Compile()
report("ClientName") = clientName
report("LocationName") = _locationName
report.Show()
Me.Cursor = Cursors.Default
End Sub
Private Sub PrintToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintToolStripButton.Click
Me.Cursor = Cursors.WaitCursor
Dim report As New Stimulsoft.Report.StiReport
Dim drv As DataRowView = DirectCast(Me.MyBindingSource.Current, DataRowView)
Dim clientName As String = drv("ClientName")
Dim drv2 As DataRowView = DirectCast(Me.BindingSource2.Current, DataRowView)
Dim _locationName As String = drv2("LocationName")
report.Load("MyReport.mrt")
report.Compile()
report("ClientName") = clientName
report("LocationName") = _locationName
report.Show()
Me.Cursor = Cursors.Default
End Sub