on 07-19-2010 12:27 PM
Dear All,
Please let me know how can I add a Crystal report through SDK and open that report on a click menu. Is it possible or not ?
Regards,
Noor Hussain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Closed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Noor,
The following is the code that I use. Have a look at that.
Dim objFrmLabelDisplay As New frmLabelDisplay
objFrmLabelDisplay.WindowState = FormWindowState.Maximized
objFrmLabelDisplay.iniViewer = AddressOf objFrmLabelDisplay.GenerateReport
objFrmLabelDisplay.iniViewer(dsBarCodeLabels, rptLabelDispaly)
objFrmLabelDisplay.ShowDialog()
And for generate report in windows form class..
Public Sub GenerateReport(ByVal SourceDataSet As System.Data.DataSet, ByVal RptClass As CrystalDecisions.CrystalReports.Engine.ReportClass)
Try
RptClass.SetDataSource(SourceDataSet)
CrystalReportViewer1.ReportSource = RptClass
CrystalReportViewer1.Refresh()
Catch ex As Exception
Throw (ex)
Finally
RptClass = Nothing
End Try
End Sub
Marco is using Active X i guess, which i do not use.
Regards,
Vasu Natari.
Edited by: vasu natari on Jul 22, 2010 8:15 AM
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.