AndrewForrest
Programmer
I know that converting from v8.5 to v10 can be done by running V10. However i have inherited support of some vb code that ran CRViewer V8.5 without using the runtime and want to convert it to use the runtime, from the FAQ section I have got some of the info needed however I can't get the viewer to work I am trying to use the activxviewer is this the right one? how do you load the file into it
The old version =
CrystalReport1.ReportFileName = "r:\P&E\PricingDirect.rpt"
CrystalReport1.ReportTitle = "Components Pricing Report"
'selection formula
s = sql statment
CrystalReport1.ReplaceSelectionFormula s
'close form
Me.Tag = "OK"
Me.Hide
CrystalReport1.Action = 1
CrystalReport1.PageZoom (1) 'Page Width
""""""""""""""""""""""""""""""""""""""""
New Version, just trying to show a simple report without SqlStatement.
Dim crxApplication As New CRAXDRT.Application
Dim crxReport As CRAXDDRT.Report
Public Report As New CRAXDRT.Report
------------------------------------------
Set Report = crxApplication.OpenReport(App.Path & "\Inventory Report.rpt")
' print report
Report.PrintOut False, 1
View report ???????
form2.load
form2.show
' form2 has a CrystalReoprtActiveXviewer
But what code to view, have tried several variation with out any sucess.
The old version =
CrystalReport1.ReportFileName = "r:\P&E\PricingDirect.rpt"
CrystalReport1.ReportTitle = "Components Pricing Report"
'selection formula
s = sql statment
CrystalReport1.ReplaceSelectionFormula s
'close form
Me.Tag = "OK"
Me.Hide
CrystalReport1.Action = 1
CrystalReport1.PageZoom (1) 'Page Width
""""""""""""""""""""""""""""""""""""""""
New Version, just trying to show a simple report without SqlStatement.
Dim crxApplication As New CRAXDRT.Application
Dim crxReport As CRAXDDRT.Report
Public Report As New CRAXDRT.Report
------------------------------------------
Set Report = crxApplication.OpenReport(App.Path & "\Inventory Report.rpt")
' print report
Report.PrintOut False, 1
View report ???????
form2.load
form2.show
' form2 has a CrystalReoprtActiveXviewer
But what code to view, have tried several variation with out any sucess.