Crystal Report 10 add parameter
-
There is some good spirit that knows the correct way to pass the parameters to a report I explain myself better.... I have created the following objects: . . . . try { // Creazione istanza m_pApplication.CreateInstance("CrystalRuntime.Application"); // Apro il report m_pReport = m_pApplication->OpenReport((LPCTSTR)m_sFileRpt); // Lista parametri report IParameterFieldDefinitionsPtr pParamFieldDefinitions = m_pReport->GetParameterFields(); LONG lCount = pParamFieldDefinitions->GetCount(); // Ciclo sui parametri del report for(LONG lItem = 1; lItem <= lCount; lItem++) { // Puntatore oggetto parametro IParameterFieldDefinitionPtr pParamFieldDefinition = pParamFieldDefinitions->GetItem(lItem); . . . . I am successful to read the parameters set up in the report but not to save them...any example in the net is in VB but not in VC++.. DateTime param or Other correctly... Thanks in advance..