Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting from Crv8.5 to V10 and running from VB6

Status
Not open for further replies.

AndrewForrest

Programmer
Jan 27, 2004
43
AU
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.
 
Have look at my "Changing database @ Runtime" FAQ (faq768-5374). It's got more info than you probably need, but just look at the stuff that's relevant to you (Viewer.ReportSource, Viewer.ViewReport).

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top