Click here to Skip to main content
16,006,605 members
Home / Discussions / C#
   

C#

 
GeneralRe: create objects from xml Pin
pmarfleet4-Dec-07 19:40
pmarfleet4-Dec-07 19:40 
GeneralRe: create objects from xml Pin
Mustafa Ismail Mustafa4-Dec-07 19:44
Mustafa Ismail Mustafa4-Dec-07 19:44 
GeneralRe: create objects from xml Pin
Nouman Bhatti4-Dec-07 19:54
Nouman Bhatti4-Dec-07 19:54 
GeneralRe: create objects from xml Pin
netJP12L5-Dec-07 18:06
netJP12L5-Dec-07 18:06 
Questionhow to send sms messages to mobiles through C#.net application [modified] Pin
Smithakrishnan4-Dec-07 18:23
Smithakrishnan4-Dec-07 18:23 
GeneralRe: how to send sms messages to mobiles through asp.net application Pin
Christian Graus4-Dec-07 18:35
protectorChristian Graus4-Dec-07 18:35 
GeneralRe: how to send sms messages to mobiles through asp.net application Pin
Vasudevan Deepak Kumar4-Dec-07 18:47
Vasudevan Deepak Kumar4-Dec-07 18:47 
Generalplz anyone solve the crysttal report problem [modified] Pin
infi_20074-Dec-07 18:21
infi_20074-Dec-07 18:21 
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;

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;
    //private CrystalReportTest crReportDocument = new CrystalReportTest();
    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.DatabaseName = "";
        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 ;
    }
}



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 findthe 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


asp.net using c#

modified on Wednesday, December 05, 2007 12:40:11 AM

GeneralForm Closing warning message Pin
VenkataRamana.Gali4-Dec-07 18:19
VenkataRamana.Gali4-Dec-07 18:19 
GeneralRe: Form Closing warning message Pin
N a v a n e e t h4-Dec-07 18:22
N a v a n e e t h4-Dec-07 18:22 
GeneralRe: Form Closing warning message Pin
VenkataRamana.Gali4-Dec-07 18:53
VenkataRamana.Gali4-Dec-07 18:53 
GeneralRe: Form Closing warning message Pin
CKnig4-Dec-07 19:05
CKnig4-Dec-07 19:05 
GeneralRe: Form Closing warning message Pin
Luc Pattyn5-Dec-07 0:14
sitebuilderLuc Pattyn5-Dec-07 0:14 
GeneralAccess data in treeview control using multithreading Pin
D i x y4-Dec-07 17:50
D i x y4-Dec-07 17:50 
GeneralRe: Access data in treeview control using multithreading Pin
CKnig4-Dec-07 18:23
CKnig4-Dec-07 18:23 
GeneralTHIS IS VERY FRUSTRATING... Pin
Pankaj - Joshi4-Dec-07 17:45
Pankaj - Joshi4-Dec-07 17:45 
GeneralRe: THIS IS VERY FRUSTRATING... Pin
Christian Graus4-Dec-07 18:39
protectorChristian Graus4-Dec-07 18:39 
GeneralRe: THIS IS VERY FRUSTRATING... Pin
Colin Angus Mackay4-Dec-07 22:07
Colin Angus Mackay4-Dec-07 22:07 
Generalgroup rows of excel using c#. Pin
lucluv4-Dec-07 17:27
lucluv4-Dec-07 17:27 
GeneralRe: group rows of excel using c#. Pin
Abhijit Jana4-Dec-07 18:11
professionalAbhijit Jana4-Dec-07 18:11 
GeneralRe: group rows of excel using c#. Pin
Abhijit Jana4-Dec-07 18:15
professionalAbhijit Jana4-Dec-07 18:15 
GeneralRe: group rows of excel using c#. Pin
lucluv5-Dec-07 19:14
lucluv5-Dec-07 19:14 
QuestionHow to get the client IP address? Pin
Khoramdin4-Dec-07 17:09
Khoramdin4-Dec-07 17:09 
AnswerRe: How to get the client IP address? Pin
mav.northwind4-Dec-07 22:56
mav.northwind4-Dec-07 22:56 
Generaladdress of specify process Pin
MAHDIEHES4-Dec-07 17:05
MAHDIEHES4-Dec-07 17:05 

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.