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. Login Problem with CrystalReports

Login Problem with CrystalReports

Scheduled Pinned Locked Moved C#
csharphelpquestiondatabasesysadmin
1 Posts 1 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.
  • N Offline
    N Offline
    Narendra Reddy Vajrala
    wrote on last edited by
    #1

    Hi Experts, In my VisulaStudio2008 c#.net windows Apllication i have a crystalReport(Main) it have 5 subreports. i did this report in my local machine so i gave datasource, database name and other credentials i set as local only but from coding i set database login details dynamically to get data from required source my code is like this ShiftSummaryReport report = new ShiftSummaryReport(); ReportDocument crSubreportDoc; Sections crSections; ReportObjects crReportObjects; SubreportObject crSubreportObject; report.SetDataSource(shiftSummaryDataset.Tables[0]); report.SetDatabaseLogon(user, password, server, database); crSections = report.ReportDefinition.Sections; foreach (Section crsection in crSections) { crReportObjects = crsection.ReportObjects; foreach (ReportObject crreportobject in crReportObjects) { if (crreportobject.Kind == ReportObjectKind.SubreportObject) { crSubreportObject = (SubreportObject)crreportobject; crSubreportDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName); crSubreportDoc.SetDatabaseLogon(user, password, server, database); } } } i kept debug and checked, values coming to those variables and executing fine. but still it is asking for database login. how can i solve this? please help me out Thanks In Advance --Naren

    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