V
Victor
Hi, i have a simple report with 1 parameter and i want to send it to
the printer without use the crystalreportviewer but it shows me an
exception "Parameter value is needed",maybe the problem can be in the
way to pass it the parameter.
CrystalReport1 cr = null;
try
{
cr = new CrystalReport1();
cr.FileName="C:\\Proyectos .Net\\crystal\\CrystalReport1.rpt";
cr.Load();
cr.SetParameterValue("person","000002");
cr.PrintOptions.PrinterName = "\\\\ACTEA3\\lj4000";
cr.Refresh();
cr.PrintToPrinter(1,false,0,0);
}
Any idea would be apreciated.
the printer without use the crystalreportviewer but it shows me an
exception "Parameter value is needed",maybe the problem can be in the
way to pass it the parameter.
CrystalReport1 cr = null;
try
{
cr = new CrystalReport1();
cr.FileName="C:\\Proyectos .Net\\crystal\\CrystalReport1.rpt";
cr.Load();
cr.SetParameterValue("person","000002");
cr.PrintOptions.PrinterName = "\\\\ACTEA3\\lj4000";
cr.Refresh();
cr.PrintToPrinter(1,false,0,0);
}
Any idea would be apreciated.