Click here to Skip to main content
15,899,825 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionFileUpload Problem Pin
Niungareamit21-Apr-09 20:06
Niungareamit21-Apr-09 20:06 
Questionpostback trigger for Dynamical Controls Pin
sekannak21-Apr-09 19:51
sekannak21-Apr-09 19:51 
QuestionRefreshing a dropdownlist in a FormView Template Pin
Jogenshu21-Apr-09 19:35
Jogenshu21-Apr-09 19:35 
Questiongridview Pin
trimandir prajapati21-Apr-09 18:46
trimandir prajapati21-Apr-09 18:46 
AnswerRe: gridview Pin
Abhijit Jana21-Apr-09 19:10
professionalAbhijit Jana21-Apr-09 19:10 
GeneralRe: gridview Pin
trimandir prajapati21-Apr-09 20:41
trimandir prajapati21-Apr-09 20:41 
AnswerRe: gridview Pin
trimandir prajapati21-Apr-09 20:39
trimandir prajapati21-Apr-09 20:39 
QuestionChanging Crystalreport server in run time Pin
The_Collector21-Apr-09 17:55
The_Collector21-Apr-09 17:55 
hello everybody,

I descovered lately that SetDatabaseLogon will not allow us to change the server name.... i find some blogs but all of it ends up n vain.... my code below encountered an error "Procedure 'gg_TestSource' expects parameter '@pServer', which was not supplied"....

im almost running out of time with myu project deadline.... i need someone who could help..... please please please... tnx n advance....


using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;


public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
ParameterDiscreteValue discreteBranch = new ParameterDiscreteValue();
ParameterFields paramFields = new ParameterFields();

ReportDocument rpt = new ReportDocument();
rpt.Load(Server.MapPath("~/MyCrystalReport.rpt"));


// changing my testing servername to production servername

Database crSubDB;
Tables crTables;

ConnectionInfo cInfo = new ConnectionInfo();
cInfo.ServerName = "ProductionServer";
cInfo.UserID = "myUserID";
cInfo.Password = "myPassword";
cInfo.DatabaseName = "MyTable";

crSubDB = rpt.Database;
crTables = crSubDB.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
{
TableLogOnInfo crTableLogOnInfo = crTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo = cInfo;
crTable.ApplyLogOnInfo(crTableLogOnInfo);
}

///

ParameterDiscreteValue paramDiscreteBranch = new ParameterDiscreteValue();
ParameterField paramFieldBranch = new ParameterField();
paramFieldBranch.Name = "@pServer";
paramDiscreteBranch.Value = "XX";
paramFieldBranch.CurrentValues.Add(paramDiscreteBranch);
paramFields.Add(paramFieldBranch);
rpt.SetParameterValue("@pServer", paramDiscreteBranch);

CrystalReportViewer1.ParameterFieldInfo = paramFields;

CrystalReportViewer1.ReportSource = rpt;
}
}

xxx

QuestionHow to export images to Excel/PDF/WORD in ASP.NET using VB? Pin
leungoiyu21-Apr-09 15:51
leungoiyu21-Apr-09 15:51 
AnswerRe: How to export images to Excel/PDF/WORD in ASP.NET using VB? Pin
Christian Graus21-Apr-09 15:53
protectorChristian Graus21-Apr-09 15:53 
GeneralRe: How to export images to Excel/PDF/WORD in ASP.NET using VB? Pin
leungoiyu21-Apr-09 16:00
leungoiyu21-Apr-09 16:00 
GeneralRe: How to export images to Excel/PDF/WORD in ASP.NET using VB? Pin
Yusuf21-Apr-09 16:14
Yusuf21-Apr-09 16:14 
GeneralRe: How to export images to Excel/PDF/WORD in ASP.NET using VB? Pin
leungoiyu21-Apr-09 16:31
leungoiyu21-Apr-09 16:31 
GeneralRe: How to export images to Excel/PDF/WORD in ASP.NET using VB? Pin
Yusuf21-Apr-09 17:14
Yusuf21-Apr-09 17:14 
GeneralRe: How to export images to Excel/PDF/WORD in ASP.NET using VB? Pin
leungoiyu21-Apr-09 17:21
leungoiyu21-Apr-09 17:21 
GeneralRe: How to export images to Excel/PDF/WORD in ASP.NET using VB? Pin
Christian Graus21-Apr-09 18:25
protectorChristian Graus21-Apr-09 18:25 
GeneralRe: How to export images to Excel/PDF/WORD in ASP.NET using VB? Pin
leungoiyu21-Apr-09 20:10
leungoiyu21-Apr-09 20:10 
GeneralRe: How to export images to Excel/PDF/WORD in ASP.NET using VB? Pin
Ashfield21-Apr-09 21:05
Ashfield21-Apr-09 21:05 
QuestionHow to pass array in asp.net(c#) from one page to other? Pin
pradeepsimha21-Apr-09 15:40
pradeepsimha21-Apr-09 15:40 
AnswerRe: How to pass array in asp.net(c#) from one page to other? Pin
Yusuf21-Apr-09 15:53
Yusuf21-Apr-09 15:53 
AnswerRe: How to pass array in asp.net(c#) from one page to other? Pin
Christian Graus21-Apr-09 15:54
protectorChristian Graus21-Apr-09 15:54 
AnswerRe: How to pass array in asp.net(c#) from one page to other? Pin
pradeepsimha21-Apr-09 16:10
pradeepsimha21-Apr-09 16:10 
AnswerRe: How to pass array in asp.net(c#) from one page to other? Pin
jai_10121-Apr-09 16:55
jai_10121-Apr-09 16:55 
GeneralRe: How to pass array in asp.net(c#) from one page to other? Pin
pradeepsimha22-Apr-09 1:55
pradeepsimha22-Apr-09 1:55 
QuestionFootball Application Pin
sjmclean21-Apr-09 12:23
sjmclean21-Apr-09 12:23 

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.