Click here to Skip to main content
15,913,361 members
Home / Discussions / C#
   

C#

 
AnswerRe: Can I pass binary data of a file to WebBrowser control? Pin
Luc Pattyn10-Jun-10 8:19
sitebuilderLuc Pattyn10-Jun-10 8:19 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
AspDotNetDev10-Jun-10 13:52
protectorAspDotNetDev10-Jun-10 13:52 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Luc Pattyn10-Jun-10 14:46
sitebuilderLuc Pattyn10-Jun-10 14:46 
QuestionProblems setting vertical scrollbar value in a datagrid (old one, not the better DataGridView). Pin
NitzanJ9-Jun-10 23:56
NitzanJ9-Jun-10 23:56 
QuestionHOW TO Install SQLSERVER32 at installation Pin
MayukhSen9-Jun-10 23:54
MayukhSen9-Jun-10 23:54 
QuestionC# Polymorphic object comparison Pin
Benny_Lava9-Jun-10 23:37
Benny_Lava9-Jun-10 23:37 
AnswerRe: C# Polymorphic object comparison Pin
Łukasz Nowakowski9-Jun-10 23:41
Łukasz Nowakowski9-Jun-10 23:41 
GeneralRe: C# Polymorphic object comparison Pin
Benny_Lava10-Jun-10 0:55
Benny_Lava10-Jun-10 0:55 
AnswerRe: C# Polymorphic object comparison Pin
OriginalGriff9-Jun-10 23:47
mveOriginalGriff9-Jun-10 23:47 
GeneralRe: C# Polymorphic object comparison Pin
Łukasz Nowakowski10-Jun-10 0:31
Łukasz Nowakowski10-Jun-10 0:31 
GeneralRe: C# Polymorphic object comparison Pin
Benny_Lava10-Jun-10 0:57
Benny_Lava10-Jun-10 0:57 
AnswerRe: C# Polymorphic object comparison Pin
LookSharp11-Jun-10 13:13
LookSharp11-Jun-10 13:13 
Questioncrystal reports and c# (report directly with parameters). Pin
Absoluto9-Jun-10 22:10
Absoluto9-Jun-10 22:10 
Hello everybody!!!

we have a problem with crystal reports and c#.
we would like to pass the data to the report directly with parameters, but we don't know how to add the pages in the report.

this is the code we have. we pass the parameters to the report witin a forreach, but we just get a report with only one page and with values of the last row of the dataset in the report.

Any idea please???

try
{
SqlDataAdapter daCategory = new SqlDataAdapter();
daCategory.SelectCommand = new SqlCommand();
daCategory.SelectCommand.CommandType = CommandType.StoredProcedure;
daCategory.SelectCommand.Connection = kon.SqlConn;

daCategory.SelectCommand.CommandText = "asp_admin._DatosReport";

SqlParameter parameter = daCategory.SelectCommand.Parameters.Add("@numero", SqlDbType.Int);
parameter.Value = instalazioa;
parameter = daCategory.SelectCommand.Parameters.Add("@Fecha", SqlDbType.DateTime);
parameter.Value = Convert.ToDateTime(FechaElegida);


DataSet ds = new DataSet();
daCategory.Fill(ds, "Termico");

if (ds.Tables["Termico"].Rows.Count > 0)
{
ParameterValues CurrentParameterValues = new ParameterValues();

foreach (DataRow rw in ds.Tables["Termico"].Rows)
{
NInst = new ParameterDiscreteValue();
Rep = new ParameterDiscreteValue();
Dev = new ParameterDiscreteValue();

datosActuales.NInstalacion = Convert.ToInt32(rw["NInstalacion"]);
datosActuales.NRepetidor = Convert.ToInt32(rw["NRepetidor"]);
datosActuales.NDevice = Convert.ToInt32(rw["NDevice"]);

//meter los valores de las variables
NInst.Value = datosActuales.NInstalacion;
//reporte.SetParameterValue("Instalacion", NInst);
Rep.Value = datosActuales.NRepetidor;
//reporte.SetParameterValue("Rep", Rep);
Dev.Value = datosActuales.NDevice;
// reporte.SetParameterValue("Dev", Dev);

CurrentParameterValues.Add(NInst);
CurrentParameterValues.Add(Rep);
CurrentParameterValues.Add(Dev);
}
}
}
finally
{
kon.closeConexion();
}

//se crea el report en pdf
reporte.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, "Termico");
}

AnswerRe: crystal reports and c# (report directly with parameters). Pin
Adam R Harris10-Jun-10 5:52
Adam R Harris10-Jun-10 5:52 
QuestionIntelliSense bug in VS2005 Pin
Mc_Topaz9-Jun-10 21:54
Mc_Topaz9-Jun-10 21:54 
AnswerRe: IntelliSense bug in VS2005 Pin
#realJSOP10-Jun-10 4:29
professional#realJSOP10-Jun-10 4:29 
GeneralRe: IntelliSense bug in VS2005 Pin
Mc_Topaz10-Jun-10 4:38
Mc_Topaz10-Jun-10 4:38 
GeneralRe: IntelliSense bug in VS2005 Pin
dybs12-Jun-10 10:19
dybs12-Jun-10 10:19 
Question.net framework 4 Pin
michaelgr19-Jun-10 20:46
michaelgr19-Jun-10 20:46 
AnswerRe: .net framework 4 Pin
Abhinav S9-Jun-10 21:01
Abhinav S9-Jun-10 21:01 
AnswerRe: .net framework 4 Pin
Pete O'Hanlon9-Jun-10 21:38
mvePete O'Hanlon9-Jun-10 21:38 
QuestionMicrosoft sync framework Pin
hadad9-Jun-10 20:37
hadad9-Jun-10 20:37 
Questionhow to recognize the identityfing code in the image Pin
yu-jian9-Jun-10 20:16
yu-jian9-Jun-10 20:16 
QuestionTextureBrush problem Pin
Xmen Real 9-Jun-10 17:41
professional Xmen Real 9-Jun-10 17:41 
AnswerRe: TextureBrush problem Pin
Luc Pattyn9-Jun-10 17:58
sitebuilderLuc Pattyn9-Jun-10 17:58 

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.