I have seen alot of messages and still don't have the answer I am looking for.

VB6 with access backend
Need to be able to create CR Reports and print them via VB6, but need to be able to push the path to the report.

Example code that prints CR Report, but I can't change the path if someone creates the reports and doesn't have the right path.
VB Code:
  1. Dim objReport As Crystal.CrystalReport
  2. Set objReport = Me.CrystalReport1
  3. Dim strReport As String
  4. Dim strTemp As String
  5.     Dim strSQL As String
  6.  
  7.     strSQL = "SELECT tblTempBidPrice.* "
  8.     strSQL = strSQL & "FROM tblTempBidPrice;"
  9.  
  10. strReport = Me.dgridReport.Columns(2) ' Stores the Path
  11. strReportName = Me.dgridReport.Columns(3) ' Sote ReportName
  12. strTemp = gconAppl.Properties.Item("Data source")
  13.  
  14. Set crxApplication = New CRAXDRT.Application
  15. Set report = crxApplication.OpenReport(strReport)
  16. CrystalReport1.ReportSource = strReport 'Trying to change path on the fly???
  17. CRViewer91.ReportSource = strReport
  18. CRViewer91.ViewReport
  19. CRViewer91.Top = 0
  20. CRViewer91.Left = 0
  21. CRViewer91.Height = ScaleHeight
  22. CRViewer91.Width = ScaleWidth
  23.  
  24. End sub