Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Problem opening Crystal Report in vb.net

Problem opening Crystal Report in vb.net

Scheduled Pinned Locked Moved Visual Basic
helpdatabasecsharp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    saneng
    wrote on last edited by
    #1

    Hello I m using crystal report 9 in my vb.net Application my problem is that when i Called the Report whose Data Source is a text file, from my vb.net application the system gives me the runtime error Query Engine error :HY000 [MICROSOFT][ODBC TEXT DRIVER] THE MICROSOFT JET DATABASE IS CANNOT OPEN THE FILE (UNKNOWN).IT IS ALREADY OPEN EXCLUSIVELY BY ANOTHER USER OR U NEED PERMISSION TO VIEW ITS DATA ERROR IN FILE C:\DOCUMEN~1\USER\LOCALS~1\TEMP\CRRPT.RPT QUERY ENGINE ERROR however i m using the code to for crystal report viewer control as Me.CrystalReportViewer1.Refresh() Dim strPathName As String Dim reportDocument1 As New CrystalDecisions.CrystalReports.Engine.ReportDocument strPathName = "D:\CrReport.rpt" reportDocument1.Load(strPathName) Me.CrystalReportViewer1.ShowExportButton = True Me.CrystalReportViewer1.ShowPageNavigateButtons = True Me.CrystalReportViewer1.ReportSource = reportDocument1 please please help me out

    D 1 Reply Last reply
    0
    • S saneng

      Hello I m using crystal report 9 in my vb.net Application my problem is that when i Called the Report whose Data Source is a text file, from my vb.net application the system gives me the runtime error Query Engine error :HY000 [MICROSOFT][ODBC TEXT DRIVER] THE MICROSOFT JET DATABASE IS CANNOT OPEN THE FILE (UNKNOWN).IT IS ALREADY OPEN EXCLUSIVELY BY ANOTHER USER OR U NEED PERMISSION TO VIEW ITS DATA ERROR IN FILE C:\DOCUMEN~1\USER\LOCALS~1\TEMP\CRRPT.RPT QUERY ENGINE ERROR however i m using the code to for crystal report viewer control as Me.CrystalReportViewer1.Refresh() Dim strPathName As String Dim reportDocument1 As New CrystalDecisions.CrystalReports.Engine.ReportDocument strPathName = "D:\CrReport.rpt" reportDocument1.Load(strPathName) Me.CrystalReportViewer1.ShowExportButton = True Me.CrystalReportViewer1.ShowPageNavigateButtons = True Me.CrystalReportViewer1.ReportSource = reportDocument1 please please help me out

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Well, I don't use CrystalReports. By the error message either the file you gave the report doesn't exist (or the path to it is wrong), or the file is already held open by some other code in your app or some other external application. Did your code open this file somewhere else and not close it??

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups