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. Asking Credential on every time in C# windows application that contains Crystal Report

Asking Credential on every time in C# windows application that contains Crystal Report

Scheduled Pinned Locked Moved C#
csharpdatabasemysqlcom
3 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.
  • U Offline
    U Offline
    User 13870713
    wrote on last edited by
    #1

    When I run my C# windows form application that contains Crystal Report. It's asking me to enter the credential for the MySQL db every time. Even though I entered the correct user name and password. it is saying my user name or password is wrong. I have checked the credential many times and entered password is correct. Code :

        private void cmdPrintReport\_Click(object sender, EventArgs e)
        {
    
            CrystalReport\_Quotation1.SetDatabaseLogon("DB\_USER\_AFDR", "1237894560");
            crvQuotation.ReportSource = CrystalReport\_Quotation1;
            crvQuotation.Refresh();
    

    }

    L 2 Replies Last reply
    0
    • U User 13870713

      When I run my C# windows form application that contains Crystal Report. It's asking me to enter the credential for the MySQL db every time. Even though I entered the correct user name and password. it is saying my user name or password is wrong. I have checked the credential many times and entered password is correct. Code :

          private void cmdPrintReport\_Click(object sender, EventArgs e)
          {
      
              CrystalReport\_Quotation1.SetDatabaseLogon("DB\_USER\_AFDR", "1237894560");
              crvQuotation.ReportSource = CrystalReport\_Quotation1;
              crvQuotation.Refresh();
      

      }

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      you able to login with these same credentials to your database directly?

      1 Reply Last reply
      0
      • U User 13870713

        When I run my C# windows form application that contains Crystal Report. It's asking me to enter the credential for the MySQL db every time. Even though I entered the correct user name and password. it is saying my user name or password is wrong. I have checked the credential many times and entered password is correct. Code :

            private void cmdPrintReport\_Click(object sender, EventArgs e)
            {
        
                CrystalReport\_Quotation1.SetDatabaseLogon("DB\_USER\_AFDR", "1237894560");
                crvQuotation.ReportSource = CrystalReport\_Quotation1;
                crvQuotation.Refresh();
        

        }

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Contact Crystal Reports on their forum[^].

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

        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