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
_

__Manoj

@__Manoj
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • i think its easy too solve u guys...
    _ __Manoj

    hi Try this piece of code!

    ReportDocument rptDoc = new ReportDocument();
    TableLogOnInfo tblLogInf = new TableLogOnInfo();
    rptDoc.Load( <Report Path> );
    					
    foreach( Table tbl in rptDoc.Database.Tables )
    {					
     tblLogInf = tbl.LogOnInfo;
     
     tblLogInf.ConnectionInfo.ServerName = <Database Server Name>
     tblLogInf.ConnectionInfo.DatabaseName = <Database Name>
     tblLogInf.ConnectionInfo.UserID = <User ID>
     tblLogInf.ConnectionInfo.Password = < Password>
    					
     rptDoc.Database.Tables[tbl.Name].ApplyLogOnInfo(tblLogInf);
     rptDoc.Database.Tables[tbl.Name].Location = <Database Name> + .dbo. +       tbl.Name; 
    }
    

    Manoj 'Doing what u like is Freedom, Liking what u do is Happiness'

    ASP.NET question database help
  • Login

  • Don't have an account? Register

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