Hi,
I'm writing a macro which loops through the columns and rows of a simple list report with some filters applied. I use the following code to do that:
rowcount=objImpRep.RetrieveAll + 1
colcount=objImpRep.QueryItems.Count
For rc = 1 To rowcount
For cc = 1 To colcount
fieldvalue = objImpRep.GetDataValue(cc, rc)
Next cc
Next rc
This worked fine until I applied the filters: They seeme to be a queryitem too. But these columns are not displayed.
Is there a collection which returns just the visible columns or is it possible to detect whether a column is visible or not (without selecting the frame or .SelectedFrames).
I'm writing a macro which loops through the columns and rows of a simple list report with some filters applied. I use the following code to do that:
rowcount=objImpRep.RetrieveAll + 1
colcount=objImpRep.QueryItems.Count
For rc = 1 To rowcount
For cc = 1 To colcount
fieldvalue = objImpRep.GetDataValue(cc, rc)
Next cc
Next rc
This worked fine until I applied the filters: They seeme to be a queryitem too. But these columns are not displayed.
Is there a collection which returns just the visible columns or is it possible to detect whether a column is visible or not (without selecting the frame or .SelectedFrames).