First ever Report 
Author Message
 First ever Report

I am new to both VB and CR
I have a report.  How do I call it from a command button on a form?  Maybe
some sample code would help.


thanks!!!



Thu, 17 May 2001 03:00:00 GMT  
 First ever Report
VB comes with a sample app that uses CR (in VB4 it's CRVBXSAM.MAK, I
don't know what version you are using).  Also lookup crystal in the VB
help file.

Jim

Quote:

> I am new to both VB and CR
> I have a report.  How do I call it from a command button on a form?  Maybe
> some sample code would help.


> thanks!!!



Sat, 19 May 2001 03:00:00 GMT  
 First ever Report
Here is a come code, i hope this will usefully for you
        mdiPrincip00.rptGral.ReportFileName = "..\Partes01.rpt"

        '   Configura la frmula de seleccin de registros
        wSelFormula = "{Partes.Cia_Id} = '" & wCia_Id & "' AND " _
            & "{Partes.Categ_Id} in '" & wRptFact_Ini & "' to '" &
wRptFact_Fin _
            & "'"

        mdiPrincip00.rptGral.SelectionFormula = wSelFormula
        mdiPrincip00.rptGral.DiscardSavedData = True
        mdiPrincip00.rptGral.WindowState = crptMaximized
        mdiPrincip00.rptGral.WindowTitle = wRptTitle & " de: " & wCia_Name
        mdiPrincip00.rptGral.SortFields(0) = "+{Partes.Cia_Id}"
        mdiPrincip00.rptGral.SortFields(1) = "+{Partes.Part_Id}"

        frmExports.MousePointer = vbHourglass
        DoEvents
        tmrMousePointer.Enabled = True

        mdiPrincip00.rptGral.Action = 1
        mdiPrincip00.rptGral.SelectionFormula = ""
        mdiPrincip00.rptGral.SortFields(0) = ""
        mdiPrincip00.rptGral.SortFields(1) = ""



Wed, 30 May 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Csn Crystal Report ever plot a Scatter plot?

2. Display the First 10 records of a Query/Report only

3. Crystal reports select expert can only read first 300 records from sybase

4. URGENT: Report works the first time, but not the second time

5. Report with 2 Charts using RDC displays only the first chart

6. CR 8.5 - Displaying first report detail while supressing the rest

7. Failed to open Rowset if I try to see after first page of Report

8. Parameter on first position of select in Crystal reports

9. Crystal Reports stuck @ first page! =o(

10. Newbies first report problem.

11. Displays *only* first page of report

12. report populates header but not details on first run

 

 
Powered by phpBB® Forum Software