Click here to Skip to main content
15,918,976 members

infi_2007 - Professional Profile



Summary

    Blog RSS
3
Debator
5
Editor
9
Enquirer
119
Organiser
429
Participant
0
Author
0
Authority
s/w devloper working in asp.net technology

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
Generalanybody takes this challenge Pin
infi_20076-Dec-07 19:12
infi_20076-Dec-07 19:12 
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#

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.