I have noticed that the Crystal Report Viewr witin .NEt does not show the printer button or the export file button.
However the Crystal Reports ActiveX Viewer Control does show the buttons. I want to be able to include the ActiveX Control in a .NET ASP application. I am able to make a reference to the ActiveX Control in my WebForm but when I load the report (which loads successfully) the viwer does not display the report. I did try this in a normal .NET Windows application and it works just fine...but in the Web application it does not work.
Here is the code within my Test.aspx page:
==========================================
(I have references set to the COM objects CRViewerLib and CRAXDRT....on the COM Tab they are:
Crystal Report Viewer Version 8.0
Crystal Report 8 ActiveX Design Time Library )
Public Class Test
Inherits System.Web.UI.Page
Protected CRXViewer As New CRVIEWERLib.CRViewer()
Protected CRReport As New CRAXDRT.Report()
Protected CRApp As New CRAXDRT.Application()
Private Sub Page_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
CRReport = CRApp.OpenReport("c:\\Report1.rpt"
CRXViewer.ReportSource = CRReport
CRXViewer.ViewReport()
End Sub
End Class
I added the ActiveX Control to my toolbox in the WebForm and dragged it into the webform in design mode...gave the object an ID=CRXViewer. The code in my Test.aspx.vb does not seem to be able to reference the CRXViewer object in the designed form. It seems the CRXViewer object created in the vb code is not the same as the object on the form.
The application runs fine without any errors but does not display the report in the client browser. (I designed the report in Crystal 8.0 and not the .Net Crystal designer.
Again this works just fine as a .NET Windows application.
Basically I want to be able to use the ActiveX Crystal Viewer Control(which includes printer button and export buttons)within a Web Form in .NET
However the Crystal Reports ActiveX Viewer Control does show the buttons. I want to be able to include the ActiveX Control in a .NET ASP application. I am able to make a reference to the ActiveX Control in my WebForm but when I load the report (which loads successfully) the viwer does not display the report. I did try this in a normal .NET Windows application and it works just fine...but in the Web application it does not work.
Here is the code within my Test.aspx page:
==========================================
(I have references set to the COM objects CRViewerLib and CRAXDRT....on the COM Tab they are:
Crystal Report Viewer Version 8.0
Crystal Report 8 ActiveX Design Time Library )
Public Class Test
Inherits System.Web.UI.Page
Protected CRXViewer As New CRVIEWERLib.CRViewer()
Protected CRReport As New CRAXDRT.Report()
Protected CRApp As New CRAXDRT.Application()
Private Sub Page_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
CRReport = CRApp.OpenReport("c:\\Report1.rpt"
CRXViewer.ReportSource = CRReport
CRXViewer.ViewReport()
End Sub
End Class
I added the ActiveX Control to my toolbox in the WebForm and dragged it into the webform in design mode...gave the object an ID=CRXViewer. The code in my Test.aspx.vb does not seem to be able to reference the CRXViewer object in the designed form. It seems the CRXViewer object created in the vb code is not the same as the object on the form.
The application runs fine without any errors but does not display the report in the client browser. (I designed the report in Crystal 8.0 and not the .Net Crystal designer.
Again this works just fine as a .NET Windows application.
Basically I want to be able to use the ActiveX Crystal Viewer Control(which includes printer button and export buttons)within a Web Form in .NET