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. Web Development
  3. ASP.NET
  4. Crystal Report Path

Crystal Report Path

Scheduled Pinned Locked Moved ASP.NET
help
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.
  • A Offline
    A Offline
    aransiola
    wrote on last edited by
    #1

    I am writing a crystal report webform. I ve droped my reportviewer control on teh form .I also have my .rpt file in the Reports subfolder of my project's root folder. I specify the report source as follows Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim oReport As New ReportDocument oReport.Load(".\Reports\ProjList.rpt") oViewer1.ReportSource = oReport oViewer1.DataBind() but it gives teh error The system cannot find the file specified. I changed the backslash to fron slash, also i used mappath() function no head way any help will be appreciated t.aransiola

    D 1 Reply Last reply
    0
    • A aransiola

      I am writing a crystal report webform. I ve droped my reportviewer control on teh form .I also have my .rpt file in the Reports subfolder of my project's root folder. I specify the report source as follows Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim oReport As New ReportDocument oReport.Load(".\Reports\ProjList.rpt") oViewer1.ReportSource = oReport oViewer1.DataBind() but it gives teh error The system cannot find the file specified. I changed the backslash to fron slash, also i used mappath() function no head way any help will be appreciated t.aransiola

      D Offline
      D Offline
      daisylh
      wrote on last edited by
      #2

      oReport.Load(server.mappath(".\Reports\ProjList.rpt"))

      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