Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2003, 07:10 PM
Authorized User
 
Join Date: Jul 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Tere
Default Filter Report by a formulate field

Hi!!
I am using VB6.0, CR8.0, Wind2000, Oracle9.2i

When I run my CR from VB I want to made a filter, but not a filter from a specific field ( thing that I do using a select...from...where) I want to filter for a formulate colum of my crystal report.
Is there any way to use something like the SelectExpert that Crystal have using VB code?
This is my code

Case "cr_RotaTie"
        ' Saca query para el reporte, articulos con existencia en 0
        Set adoRS = New ADODB.Recordset
        adoRS.Open gstrSQL, gcnOracle, adOpenForwardOnly, adLockReadOnly, adCmdText
        If adoRS.EOF And adoRS.BOF Then 'No encontro

            Screen.MousePointer = vbDefault
            Exit Sub
        Else
            Set crRep_RotaTie = New cr_RotaTie
            crRep_RotaTie.ParameterFields(1).AddCurrentValue gstrParameter1
            crRep_RotaTie.ParameterFields(3).AddCurrentValue gstrParameter5
            crRep_RotaTie.ParameterFields(2).AddCurrentValue gstrParameter4
            crRep_RotaTie.Database.SetDataSource adoRS
            CRViewer1.ReportSource = crRep_RotaTie
            If gblnGenArchivo = True Then
                If gstrTipoArch = "RPT" Then
                    crRep_RotaTie.ExportOptions.DestinationType = crEDTDiskFile
                    crRep_RotaTie.ExportOptions.DiskFileName = "T:\CODIGOO\QUATRO\" + gstrParameter3 + "." + gstrTipoArch
                    crRep_RotaTie.ExportOptions.FormatType = crEFTCrystalReport 'crEFTExcel50
                    crRep_RotaTie.Export False
                Else
                    crRep_RotaTie.ExportOptions.DestinationType = crEDTDiskFile
                    crRep_RotaTie.ExportOptions.DiskFileName = "T:\CODIGOO\QUATRO\" + gstrParameter3 + "." + gstrTipoArch
                    crRep_RotaTie.ExportOptions.FormatType = crEFTExcel50
                    crRep_RotaTie.Export False
                End If
            End If

        End If
....








Similar Threads
Thread Thread Starter Forum Replies Last Post
Filter results by value in a gridview field cesemj ASP.NET 2.0 Basics 2 February 20th, 2008 11:39 PM
multiple field filter url help ddnk77872 PHP Databases 1 January 22nd, 2007 12:05 AM
table field filter jpenn Reporting Services 1 July 11th, 2006 10:24 AM
How to filter Date field using DataView.RowFilter jkusmanto VB.NET 2002/2003 Basics 1 April 18th, 2006 12:48 AM
objRS.Filter (Multiple Field Filters) egerdj Classic ASP Basics 1 March 10th, 2004 04:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.