Hello there!
I'm trying to make a simple sample program that will print a report when clicking a button.

I'm using Visual Dataflex 16.1, Crystal Reports XI and DB2 for my database.

Below is the source code for the program:
Code:
Use Windows.pkg
Use DFClient.pkg
Use cPAISDataDictionary.dd
Use DFEntry.pkg
Use cCrystal.pkg

Deferred_View Activate_oTeste1 for ;
Object oTeste1 is a dbView
    Object oPAIS_DD is a cPAISDataDictionary
    End_Object

    Set Main_DD to oPAIS_DD
    Set Server to oPAIS_DD

    Set Border_Style to Border_Thick
    Set Size to 200 300
    Set Location to 2 2

    Object oPAIS_SIGLA_PAIS is a dbForm
        Entry_Item PAIS.SIGLA_PAIS
        Set Location to 68 100
        Set Size to 13 20
        Set Label to "SIGLA PAIS:"
    End_Object

    Object oPAIS_DESCRICAO is a dbForm
        Entry_Item PAIS.DESCRICAO
        Set Location to 84 100
        Set Size to 13 155
        Set Label to "DESCRICAO:"
    End_Object
    
    Object oCrystalReport is a cCrystal
        String lsCaminho
        
        Get psDataPath of (phoWorkspace(ghoApplication)) to lsCaminho 
        Move (lsCaminho + "\TESTE1.rpt") to lsCaminho
        
        Set psReportName to lsCaminho
        
        Procedure OnInitializeReport Handle hoReport
            Forward Send OnInitializeReport
        End_Procedure
         
    End_Object

    Object oButton1 is a Button
        Set Location to 120 100
        Set Label to 'Imprimir'
        
    
        // fires when the button is clicked
        Procedure OnClick
            Send RunReport of oCrystalReport
        End_Procedure
    
    End_Object

Cd_End_Object
The problem is: when it runs the report, sometimes it asks for the password.

Click image for larger version. 

Name:	prompt.jpg 
Views:	171 
Size:	30.7 KB 
ID:	13094


How do I make it so that it saves the login and password and stops asking for it?