It looks to me that the problem is not with the report but with the temp folder on your PC. Try to delete as much as possible from your temp folder, restart the PC and then try refreshing the report again.
So if it’s not working then you can list all document variables (with their formulas) using for example this VBA procedure:
Sub DocVariables()
Dim i As Integer
Dim vars As DocumentVariables
Dim var As DocumentVariable
Set vars = ActiveDocument.DocumentVariables
MsgBox "There are " & vars.Count & " variables in the report"
i = 1
For i = 1 To vars.Count
Set var = vars.Item(i)
Debug.Print "variable " & i & ":" & vbCrLf & _
"name:" & var.Name & vbCrLf & _
"formula:" & var.Formula
Debug.Print ""
Next i
Set vars = Nothing
Set var = Nothing
End Sub
Can you guys tell me how to get the list of all variables provided by Business Objects such as
DocumentVariables,
ActiveDocument.DocumentVariables
that you have used in the utility. I would like to know all the variables exposed by BO so that I can create my own utility. Also, there might be a equivalent class and objects in .NET or Java. Where do I get the complete listing for that??
Would really appreciate your help as these can help me write some very usefull utilities.
What I am currently looking is to (document) list all the variables along with its formulas on multiple reports within a directory. the name that our reports are conditioning has changed in the database which is why I need to see the codes of the user created variables so I can change it. So instead of manually opening hundreds of reports and going through all the variables I can just go through my list and find out which ones need change.
Thanks
KC
Thansk Marek,
I did see the results but it seems like it has the limitation in terms of how many line of data are visible at a time once it was done running. I tried it on a report that had 206 variables. and I can only see from 157 -206. I saw it run but I could not see them all lines. So i guess I want someother means to display the reports… perhaps in an Excel or word.
However I need to run these for hundreds of reports and I wish there is a code that would go through the folders and reports and list it.