sparky2708
Programmer
How do I use the API to query whether there is any data in the report that I am trying to execute? I tried:
long test = 10;
VARIANT arr;
VariantInit(&arr);
arr = crRpt->GetNextRows(0, &test);
if (test > 0)
crRpt->Export(var);
For some reason "test" is always 1. Even if there are no records it gets set to 1. My logic behind this was that this function would return -1 or 0 if it couldn't fetch any records and a number greater than that if there were rows it could fetch. How else can I do this?
long test = 10;
VARIANT arr;
VariantInit(&arr);
arr = crRpt->GetNextRows(0, &test);
if (test > 0)
crRpt->Export(var);
For some reason "test" is always 1. Even if there are no records it gets set to 1. My logic behind this was that this function would return -1 or 0 if it couldn't fetch any records and a number greater than that if there were rows it could fetch. How else can I do this?