PC Review


Reply
Thread Tools Rate Thread

calling crystal report

 
 
Hrvoje Voda
Guest
Posts: n/a
 
      26th Sep 2005
How to call a crystal report ?

Hrcko


 
Reply With Quote
 
 
 
 
Ayaz Ahmed
Guest
Posts: n/a
 
      26th Sep 2005
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
using CrystalDecisions.ReportSource;
using CrystalDecisions.Reporting.WebControls;


public class ParamterForm : System.Web.UI.Page
{

protected CrystalDecisions.Web.CrystalReportViewer CRViewer;

private Tables crTables;

private CrystalDecisions.CrystalReports.Engine.Table crTable;

private TableLogOnInfo crTableLogOnInfo;

ReportClass crReportDocument;

private ConnectionInfo crConnectionInfo = new crReportDocument= new
CrystalReport1();


databaseServer = "Test";
databaseName = "Test";
databaseUser = "Test";
UserPassword = "Test";

crConnectionInfo.ServerName = databaseServer;
crConnectionInfo.DatabaseName = databaseName;
crConnectionInfo.UserID = databaseUser;
crConnectionInfo.Password = UserPassword;

crTables = crReportDocument.Database.Tables;

for (int i = 0; i < crTables.Count; i++)
{
crTable = crTables [i];
crTableLogOnInfo = crTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
crTable.ApplyLogOnInfo(crTableLogOnInfo);
//Response.Write( crTable.Location +"<BR>" );
crTable.Location =
crTable.Location.Substring(crTable.Location.LastIndexOf (".") + 1) ;
//Response.Write( crTable.Location +"<BR>");
//Response.Write(
crTable.Location.Substring(crTable.Location.LastIndexOf (".") + 1)
+"<BR>");
}
CRViewer.ReportSource = crReportDocument;




Regards,

Ayaz Ahmed
Project Manager
Creative Chaos (Pvt.) Ltd.
"Managing Your Digital Risk"
http://www.csquareonline.com
Mobile +92 300 2280950
Office +92 21 455 2414
Email: (E-Mail Removed)
(E-Mail Removed)

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
Ayaz Ahmed
Guest
Posts: n/a
 
      26th Sep 2005
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
using CrystalDecisions.ReportSource;
using CrystalDecisions.Reporting.WebControls;


public class ParamterForm : System.Web.UI.Page
{

protected CrystalDecisions.Web.CrystalReportViewer CRViewer;

private Tables crTables;

private CrystalDecisions.CrystalReports.Engine.Table crTable;

private TableLogOnInfo crTableLogOnInfo;

ReportClass crReportDocument;

private ConnectionInfo crConnectionInfo = new crReportDocument= new
CrystalReport1();


databaseServer = "Test";
databaseName = "Test";
databaseUser = "Test";
UserPassword = "Test";

crConnectionInfo.ServerName = databaseServer;
crConnectionInfo.DatabaseName = databaseName;
crConnectionInfo.UserID = databaseUser;
crConnectionInfo.Password = UserPassword;

crTables = crReportDocument.Database.Tables;

for (int i = 0; i < crTables.Count; i++)
{
crTable = crTables [i];
crTableLogOnInfo = crTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
crTable.ApplyLogOnInfo(crTableLogOnInfo);
//Response.Write( crTable.Location +"<BR>" );
crTable.Location =
crTable.Location.Substring(crTable.Location.LastIndexOf (".") + 1) ;
//Response.Write( crTable.Location +"<BR>");
//Response.Write(
crTable.Location.Substring(crTable.Location.LastIndexOf (".") + 1)
+"<BR>");
}
CRViewer.ReportSource = crReportDocument;




Regards,

Ayaz Ahmed
Project Manager
Creative Chaos (Pvt.) Ltd.
"Managing Your Digital Risk"
http://www.csquareonline.com
Mobile +92 300 2280950
Office +92 21 455 2414
Email: (E-Mail Removed)
(E-Mail Removed)

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Crystal Report, another try Alex Microsoft C# .NET 10 4th Feb 2008 09:43 PM
Calling a crystal report from within vb.net with an Active x objec =?Utf-8?B?R2VyYWxkaW5lIEhvYmxleQ==?= Microsoft VB .NET 0 18th Oct 2004 08:59 AM
Change Crystal Report Zoom Level using percentages in Crystal Report Viewer (Dotnet) Alex Stevens Microsoft Dot NET 1 30th Jun 2004 12:34 PM
Error while calling Crystal Reports -- "Invalid Report Source" Bibin Microsoft ADO .NET 2 13th Sep 2003 07:09 AM
Error while calling Crystal Reports -- "Invalid Report Source" Bibin Microsoft ADO .NET 0 11th Sep 2003 07:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:14 PM.