Skip to Content
0
Aug 22, 2023 at 07:43 AM

Passing a value to crystal date parameter using Python

105 Views Last edit Aug 21, 2023 at 03:51 PM 2 rev

Hi SAP community,

I am using Crystal report 13, and in order to print the generated report with a specific parameters using python (v3.10), and the pywin32 library (v23) where the parameters have been passed via code using report.ParameterFields.GetItemByName(key).SetCurrentValue(value, valuType)

i am finding difficult passing values to parameters with type Date and i got this error :

pywintypes.com_error: (-2147352567, 'Une exception s’est produite.', (0, None, None, None, 0, -2147352571), 3)

Any Help?

Thanks in advance.