Please, look for this simple example:
Dim as Object
Dim Rows as Variant
Set cdoRowSet = CreateObject("CrystalDataObject.CrystalComObject"
...
'Filling array Rows
...
cdoRowSet.AddRows Rows
CrystalTable.SetPrivateData 3, cdoRowSet
What's wrong? - Nothing. It's work in 99,9% cases. I use this schema more than year. But two days ago my program got stuck on flat place - "Automation error - Unspecified error"
cdoRowsSet coudn't eat one ,absolutly usual, record. I checked data types, values - everithing.
But I solved this problem simply by forming array Rows in reverse order !!!
If someone saw something like that - please, let me know.
Dim as Object
Dim Rows as Variant
Set cdoRowSet = CreateObject("CrystalDataObject.CrystalComObject"
...
'Filling array Rows
...
cdoRowSet.AddRows Rows
CrystalTable.SetPrivateData 3, cdoRowSet
What's wrong? - Nothing. It's work in 99,9% cases. I use this schema more than year. But two days ago my program got stuck on flat place - "Automation error - Unspecified error"
cdoRowsSet coudn't eat one ,absolutly usual, record. I checked data types, values - everithing.
But I solved this problem simply by forming array Rows in reverse order !!!
If someone saw something like that - please, let me know.