borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (DB Connection)Next Topic (Crystal reports resource) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Preview CR Files
Poster Message
pracho
Level: Big Cheese

Registered: 03-08-2004
Posts: 19

icon Preview CR Files

How Can I display different .rpt [Crystal Reports File] in same CRViewer control?

31-08-2004 at 11:22 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Preview CR Files

One of yhe ways would be to create a public sub/function that will receive all the info that you require for eport to be prinetd (like report name, recordsource, etc). Then in Select Case statement you will make new instance of your reportt like

    Select Case rptName
        Case "Oz"
            Set rpt = New rptOz
        Case "Opj"
            Set rpt = New rptOpj
        Case "Od"
            Set rpt = New rptOd
        Case "Od1"
            Set rpt = New rptOd1
        Case "Rek"
            Set rpt = New rptRek
        Case "ZbirniOz"
            Set rpt = New rptOz
        Case "Bank"
            Set rpt = New rptBank
        Case "Nalog"
            Set rpt = New rptPay
    End Select


This is due to most of the report properties are the same for all reports you print.

____________________________
If you find the answer helpful, please mark this topic as solved.

31-08-2004 at 04:03 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Preview CR Files
Previous Topic (DB Connection)Next Topic (Crystal reports resource) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder