Click here to Skip to main content
16,007,277 members
Home / Discussions / C#
   

C#

 
QuestionHow to make viewstate work for inactive textbox? Pin
bochno4-Dec-07 4:07
bochno4-Dec-07 4:07 
GeneralRe: How to make viewstate work for inactive textbox? Pin
bochno4-Dec-07 21:13
bochno4-Dec-07 21:13 
GeneralNullReferanceException when using a callback and Invoke Pin
Member 38482694-Dec-07 3:36
Member 38482694-Dec-07 3:36 
GeneralRe: NullReferanceException when using a callback and Invoke Pin
J4amieC4-Dec-07 5:39
J4amieC4-Dec-07 5:39 
QuestionWhat this error ? Pin
E_Gold4-Dec-07 3:05
E_Gold4-Dec-07 3:05 
AnswerRe: What this error ? Pin
Judah Gabriel Himango4-Dec-07 7:52
sponsorJudah Gabriel Himango4-Dec-07 7:52 
GeneralTCP/IP (Server To Server) Pin
half-life4-Dec-07 3:02
half-life4-Dec-07 3:02 
Questioninvalid report file path of crystal Report Pin
infi_20074-Dec-07 2:40
infi_20074-Dec-07 2:40 
hi,
i take one data set using ado.net(sql server 2000), i take one crystal reporti,that is name is crystalreportTest,its file path is c:\Test\CrystalReportTest.rpt,my web application in c:\Test,
my dataset name is DataSetTest,i use this dataset in my crystal Report,i take crystalviewer1 & set the report source which is CrystalReportTest.rpt,
following code are used for solve the login problem(in crystalviewer property i remove logon prompt properties)
my code is as follows-----


using CrystalDecisions.CrystalReports.Engine.Migration ;
using CrystalDecisions.Shared;
using CrystalDecisions.Shared.Interop;
using System.Data.SqlClient;
using CrystalDecisions.Web;
using CrystalDecisions.Enterprise;
using CrystalDecisions.ReportAppServer;
using CrystalDecisions.Reporting.WebControls;
using CrystalDecisions.ReportSource;
using CrystalDecisions.CrystalReports;
using CrystalDecisions.Web.Services;
//using CrystalDecisions.CrystalReports.Engine.Table ;
    
 //using System.Web.UI.WebControls.

public partial class _Default : System.Web.UI.Page
{   
     
    //ReportDocument objtemp = new ReportDocument();

    TableLogOnInfo crTableLogOnInfo = new TableLogOnInfo();
    ConnectionInfo crConnectionInfo = new ConnectionInfo();

    //Crystal Report Properties 

    CrystalDecisions.CrystalReports.Engine.Database crDatabase;
    CrystalDecisions.CrystalReports.Engine.Tables crTables;
    CrystalDecisions.CrystalReports.Engine.Table crTable;
    
    CrystalDecisions.CrystalReports.Engine.ReportDocument crReportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
   

    protected  void Page_Load(object sender, EventArgs e)
    {
        
        crConnectionInfo.ServerName = "SERVER";

        crConnectionInfo.DatabaseName = "RESERVATION";
               crConnectionInfo.UserID = "sa";
        crConnectionInfo.Password = "sa";
        crDatabase = crReportDocument.Database;
        //crTable.Location = "RESERVATION.dbo.MB_TripSheetMaster";
        crTables = crDatabase.Tables;
        crReportDocument.Load(@"C:\Test\CrystalReportTest.rpt");
       for (int i = 0; i < crTables.Count; i++)

      {
         crTable = crTables [i];
         crTableLogOnInfo = crTable.LogOnInfo;
         crTableLogOnInfo.ConnectionInfo =crConnectionInfo;
         crTable.ApplyLogOnInfo(crTableLogOnInfo);
        crTable.Location = "RESERVATION.dbo." + crTable.Location.Substring(crTable.Location.LastIndexOf(".") + 1);

         
           


       }
                CrystalReportViewer1.ReportSource = crReportDocument ;
    }
}
<\pre>

i use ReportDocument because in my application crystal report object is not set,when run my code it shows Invalid report file path.i don't know what is happinning ,i have done lot of research on it but i  don't find the right solution,i don't know what is my mistak when i run this code ,plz help me anybody
thank you very much for your support
</\pre>


asp.net using c#

GeneralCreating Website in SharePoint using C#/ASP.NET Pin
md Nazeem4-Dec-07 2:32
md Nazeem4-Dec-07 2:32 
GeneralC# Interop problem under Vista Pin
Stevo Z4-Dec-07 2:22
Stevo Z4-Dec-07 2:22 
GeneralHelp on changing color of a listbox item Pin
Kyle Maldonado4-Dec-07 2:12
Kyle Maldonado4-Dec-07 2:12 
QuestionHow to programmatically change the icon of the application .exe Pin
Member 47491754-Dec-07 2:06
Member 47491754-Dec-07 2:06 
AnswerRe: How to programmatically change the icon of the application .exe Pin
PIEBALDconsult4-Dec-07 3:40
mvePIEBALDconsult4-Dec-07 3:40 
GeneralRe: How to programmatically change the icon of the application .exe Pin
Member 47491754-Dec-07 22:12
Member 47491754-Dec-07 22:12 
QuestionHow to start a single instance of application through selected multiple associated files Pin
Lyfkcd4-Dec-07 1:35
Lyfkcd4-Dec-07 1:35 
GeneralRe: How to start a single instance of application through selected multiple associated files Pin
Skippums4-Dec-07 12:03
Skippums4-Dec-07 12:03 
GeneralRe: How to start a single instance of application through selected multiple associated files Pin
Lyfkcd11-Dec-07 5:19
Lyfkcd11-Dec-07 5:19 
Generalmultilingual installation setup and custom program EXE selection in single setup in C# 2.0 (Visual Studio 2005) Pin
Sundarapandian.Balasubramanian4-Dec-07 1:30
Sundarapandian.Balasubramanian4-Dec-07 1:30 
Generalanchor and dock properties Pin
chithra.r4-Dec-07 1:18
chithra.r4-Dec-07 1:18 
GeneralRe: anchor and dock properties Pin
dan!sh 4-Dec-07 5:25
professional dan!sh 4-Dec-07 5:25 
QuestionHow to Add Image to Multiline text box in C# Win Forms Pin
sribachana4-Dec-07 1:14
sribachana4-Dec-07 1:14 
AnswerRe: How to Add Image to Multiline text box in C# Win Forms Pin
Pete O'Hanlon4-Dec-07 1:31
mvePete O'Hanlon4-Dec-07 1:31 
AnswerRe: How to Add Image to Multiline text box in C# Win Forms Pin
Vikram A Punathambekar4-Dec-07 1:31
Vikram A Punathambekar4-Dec-07 1:31 
AnswerRe: How to Add Image to Multiline text box in C# Win Forms Pin
Giorgi Dalakishvili4-Dec-07 1:34
mentorGiorgi Dalakishvili4-Dec-07 1:34 
QuestionHow to move scroll bar thumb on click of button. Pin
Chintan.Desai4-Dec-07 1:14
Chintan.Desai4-Dec-07 1:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.