Sv Community El Salvador

Soporte y TecnologĂ­a => Programación => .NET => Topic started by: Darkness on September 25, 2008, 03:35:54 pm

Title: CReports+VS.NET ayuda
Post by: Darkness on September 25, 2008, 03:35:54 pm
Me esta dando problemas un formato de fechas

estoy usando
Visual Studio 2005
Crystal Reports 10
Base de Datos MSSQL server 2005


Tengo un reporte en CR y le quiero pasar unos parametros desde un form de VB.NET
los parametros son fechas el scrip va asi (para mandar los parametros)

Quote
orptmyreporte.RecordSelectionFormula() = "{factura.fecha} = '" & Me.txtfecinic.Text & "' to'" & Me.txtfecfin.Text & "'"

        Me.CrystalReportViewer1.ReportSource = oRptmyreporte

aki les pongo las screenshots

este es el form que va a hacer el reporte

(http://img403.imageshack.us/img403/9885/dibujodb0.th.jpg) (http://img403.imageshack.us/my.php?image=dibujodb0.jpg)(http://img403.imageshack.us/images/thpix.gif) (http://g.imageshack.us/thpix.php)
http://img403.imageshack.us/my.php?image=dibujodb0.jpg (http://img403.imageshack.us/my.php?image=dibujodb0.jpg)

y cuando intento generar el reporte me da este error


(http://img444.imageshack.us/img444/7144/errorbn3.th.jpg) (http://img444.imageshack.us/my.php?image=errorbn3.jpg)(http://img444.imageshack.us/images/thpix.gif) (http://g.imageshack.us/thpix.php)

http://img444.imageshack.us/my.php?image=errorbn3.jpg (http://img444.imageshack.us/my.php?image=errorbn3.jpg)

pero al hacer este procedimiento (seleccionar por clientes por ejemplo) si me funciona bien, estoy mal con los formatos de la fechas vea... pero como lo arrego

ayuda please
Title: Re: CReports+VS.NET ayuda
Post by: tekun on September 25, 2008, 06:00:00 pm
por el error que te aparece, supondrĂ­a que el campo fecha en la tabla factura tiene formato timestamp... por ello que requiere un valor igual.....