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. C#
  4. Crystal Report Deployment in C#

Crystal Report Deployment in C#

Scheduled Pinned Locked Moved C#
csharpquestionvisual-studiosysadminhelp
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
    aarontan
    wrote on last edited by
    #1

    Hi all, I got a pressing question which i needed help answering. I have develop a crystal report in vs 2003.net using c#. I am able to run it smoothly on the development machine. However when i deploy it at the client side, the crystal report keep prompting me to log in although i have hardcoded the logOnInfo. A part of the code: CrystalReport1 rsource = new CrystalReport1(); rsource.SetDatabaseLogon("uid", "pwd", "server1","db1"); this.crystalReportViewer1.LogOnInfo = new TableLogOnInfo(); this.crystalReportViewer1.LogOnInfo.Add(logOnInfo); this.crystalReportViewer1.ReportSource = rsource; Any idea wat went wrong? :confused:

    C 1 Reply Last reply
    0
    • A aarontan

      Hi all, I got a pressing question which i needed help answering. I have develop a crystal report in vs 2003.net using c#. I am able to run it smoothly on the development machine. However when i deploy it at the client side, the crystal report keep prompting me to log in although i have hardcoded the logOnInfo. A part of the code: CrystalReport1 rsource = new CrystalReport1(); rsource.SetDatabaseLogon("uid", "pwd", "server1","db1"); this.crystalReportViewer1.LogOnInfo = new TableLogOnInfo(); this.crystalReportViewer1.LogOnInfo.Add(logOnInfo); this.crystalReportViewer1.ReportSource = rsource; Any idea wat went wrong? :confused:

      C Offline
      C Offline
      CooperWu
      wrote on last edited by
      #2

      try it -- ReportDocument *rptdoc = new ReportDocument(); rptdoc->Load("c:\temp\1.rpt"); //crystal report template filename rptdoc->SetDatabaseLogon("userid", "password", "server", "database"); this->crystalReportViewer->ReportSource = rptdoc; -- hoping this help.

      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